This file contains 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
EXAPUNKS | |
Notation | |
R Register | |
N Number | |
L Label | |
O Operand | |
Registers | |
X General |
This file contains 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
{ | |
"policies": { | |
"CaptivePortal": false, | |
"DNSOverHTTPS": { | |
"Enabled": false, | |
"Locked": true | |
}, | |
"DisableFeedbackCommands": true, | |
"DisableFirefoxAccounts": true, | |
"DisableFirefoxStudies": true, |
This file contains 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 bash | |
p () { | |
declare USAGE="${FUNCNAME[0]} [-h] [-0] [--] [ARGS ...]" | |
declare NL='\n' | |
declare -i OPTIND=1 | |
while getopts h0 OPT; do | |
case "$OPT" in | |
'h')printf 'Usage: %s\n' "$USAGE";return;; | |
'?')printf 'Usage: %s\n' "$USAGE">&2;return 1;; |
This file contains 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
APPNAME=exchange.sh | |
p () { printf '%s\n' "$@";} | |
: "${XDG_CACHE_HOME:=$HOME/.cache}" | |
cachedget () { | |
URL=$1 | |
CACHEDIR="$XDG_CACHE_HOME/$APPNAME/curl/GET-$(base64 -w0 <<< "$URL")" | |
mkdir --parents "$CACHEDIR" | |
curl -sS \ |
This file contains 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
const filters = [ | |
/^Running script with [0-9]+ thread\(s\), pid [0-9]+ and args/, | |
] | |
function findProp(propName) { | |
// stolen from talamond | |
for (let div of eval("document").querySelectorAll("div")) { | |
let propKey = Object.keys(div)[1]; | |
if (!propKey) | |
continue; |
This file contains 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
function shuffleArray(array) { | |
for (let i = array.length - 1; i > 0; i--) { | |
const j = Math.floor(Math.random() * (i + 1)); | |
[array[i], array[j]] = [array[j], array[i]]; | |
} | |
return array | |
} | |
/** @param {NS} ns **/ | |
export async function main(ns) { | |
let args = ns.flags([ |
This file contains 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 bash | |
DATADIR=$(pwd) | |
TEMPDIR= | |
trap 'cd ~;rm -fr -- "$TEMPDIR"' EXIT | |
TEMPDIR=$(mktemp -d) | |
cd -- "$TEMPDIR" | |
mkdir {html,json}{-compressed,-dictionary,} |
This file contains 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 bash | |
shopt -s extglob | |
: ${WEBHOOK:?Requires envvar WEBHOOK} | |
for C in jq curl; do | |
if command -v "$C" > /dev/null; then | |
echo "Requires $C to be installed" | |
exit 1 | |
fi | |
done |
This file contains 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 | |
detect_color_resolution() { | |
# 24bit | |
if [ "$COLORTERM" = "truecolor" ] | |
then | |
printf '%s\n' 24 | |
return | |
elif [ "$COLORTERM" = "24bit" ] | |
then |
NewerOlder