tsx ./remix-ssg-cli --help
Same options can be provided as SSG_*
envvars.
/// <reference types="parsimmon" /> | |
/// <reference types="jest" /> | |
declare module "api/result" { | |
/** Functional return type for error handling. */ | |
export class Success<T, E> { | |
value: T; | |
successful: true; | |
constructor(value: T); | |
map<U>(f: (a: T) => U): Result<U, E>; | |
flatMap<U>(f: (a: T) => Result<U, E>): Result<U, E>; |
import { typedConfig } from './core-typed-config'; | |
describe('coreTypedConfig', () => { | |
it('should work', () => { | |
type Schema = { | |
BAR_BAZ: boolean; | |
BAR_COUNT: number; | |
REALLY_KABOOM: number; | |
} |
This script is used to manage a DayZ server. It can install mods, start the server, and start the client.
Only tested on Fedora 40.
Downloads mpmissions from :
#!/bin/bash | |
set -e | |
# list all processes using cuda | |
# output: PID, process name | |
function get_cuda_processes { | |
# run nvisia-smi to get the process id and name | |
# output is a bunch of lines in csv format that looks like: | |
# 1234, process_name |
export {}; | |
type RouteConfig = { | |
pathname: string; | |
redirect?: { | |
pathname: string; | |
}; | |
}; | |
type ExtractPathnames<Routes extends Record<string, RouteConfig>> = { |
# | |
# ~/Documents/Powershell/Microsoft.PowerShell_profile.ps1 | |
# | |
# get reference to the profile file dir | |
$HEREDIR = Split-Path -Parent $MyInvocation.MyCommand.Path | |
# add this directory/bin | |
$env:PATH += ";${HEREDIR}\bin" |
source_url "https://raw.githubusercontent.com/cachix/devenv/d1f7b48e35e6dee421cfd0f51481d17f77586997/direnvrc" "sha256-YBzqskFZxmNb3kYVoKD9ZixoPXJh1C9ZvTLGFRkauZ0=" | |
use devenv |