$argon2id$v=19$m=512,t=256,p=1$AxD20DJbxdktjim3l3zeEQ$RFeW/Q8qaDj7vmuLg6jdpFFWgJGpG152EufvZK4gYTA
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
#!/usr/bin/env nix-shell | |
#! nix-shell --pure -i python3 -p nix python3 python3Packages.requests | |
import argparse | |
import requests | |
import subprocess | |
from pathlib import Path | |
# https://nix.dev/manual/nix/2.24/store/store-path | |
DIGEST_SIZE_BYTES = 32 | |
STORE_PATH = "/nix/store" |
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
let | |
pkgs = import <nixpkgs> { | |
config = { }; | |
overlays = [ ]; | |
}; | |
inherit (pkgs) lib; | |
# Packages we want to build optimized versions of | |
packages = lib.getAttrs [ | |
"hello" # Test package |
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
/* | |
Once in the VM, you will also need to setup pacman's keyring, which you can do with the following: | |
``` | |
curl -Lo archlinux-keyring.tar.zst https://archlinux.org/packages/core/any/archlinux-keyring/download | |
tar -xf archlinux-keyring.tar.zst | |
sudo pacman-key --init | |
sudo pacman-key --populate --populate-from usr/share/pacman/keyrings/ | |
``` | |
*/ |
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
{system ? "x86_64-linux", ...}: let | |
nixpkgs = builtins.getFlake "nixpkgs/3e52e76b70d5508f3cec70b882a29199f4d1ee85"; | |
pkgs = nixpkgs.legacyPackages.${system}; | |
in | |
pkgs.callPackage ({ | |
ffmpeg_6-full, | |
fetchFromGitHub, | |
}: | |
ffmpeg_6-full.overrideAttrs (prev: { |
openpgp4fpr:0E15C4B54D8FFEBD3A5FDF73D31BD0D494BBEE86
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
// getchoo's cs{go,2} config | |
sensitivity "1.3" | |
zoom_sensitivity_ratio_mouse "0.818933027098956" | |
cl_crosshairstyle "4" | |
cl_crosshaircolor_r "0" | |
cl_crosshaircolor_g "255" | |
cl_crosshaircolor_b "255" | |
cl_crosshairsize "4.4" |
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
let | |
commit = "2c627d9c702202d75746fd45045d20008bf7ed86"; | |
nixpkgs = import (builtins.fetchTarball { | |
url = "https://github.com/RaitoBezarius/nixpkgs/archive/${commit}.tar.gz"; | |
sha256 = "sha256:002sz5nqsr7nvwp6bdapwmb691snhrcwdlp4flbhwgqgfzzpyksc"; | |
}) {system = "x86_64-linux";}; | |
inherit (nixpkgs.llvmPackages_16) stdenv; | |
inherit (nixpkgs.pkgsi686Linux) gperftools; | |
in |
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/sh | |
# fardfetch: a posix information tool | |
echo "$(id -un)@$(uname -n)" && printf "distro: " && grep -E '^NAME=' /etc/os-release | sed "s/NAME=//;s/\(\"\|'\)//g" && printf "kernel: " && uname -r && printf "uptime: " && uptime | cut -d" " -f 2 && printf "installed packages: " && opkg list-installed | wc -l && echo "shell: $SHELL" && printf "cpu model: " && grep -m 1 'cpu model' /proc/cpuinfo | awk '{for (i = 4; i <= NF; i++) printf "%s ",$i}' && printf "\n" && printf "memory: " && free -h | awk '{print $3,"/"$2}' | sed '1d;3d' && printf "\n" || exit 1 |
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
<# | |
.SYNOPSIS | |
symlink files from a retail Team Fortress 2 build to a patched build | |
#> | |
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$TF2Dir | |
) | |
NewerOlder