this is a snapshot of a linkedin post i found.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| where: os.name == "linux" | |
| # https://comtrya.dev/actions.html | |
| actions: | |
| # https://comtrya.dev/files-and-directories.html#filecopy | |
| - action: file.copy | |
| from: bashrc | |
| to: "{{ user.config_dir }}/.bashrc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <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>; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 :
uses steamcmd. Yes we know. it sucks. cry me a river.
- you need
jqandsteamcmd - you need an api key: https://steamcommunity.com/dev/apikey
To download mods in a collection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export {}; | |
| type RouteConfig = { | |
| pathname: string; | |
| redirect?: { | |
| pathname: string; | |
| }; | |
| }; | |
| type ExtractPathnames<Routes extends Record<string, RouteConfig>> = { |