all repos — dotfiles-base @ main

base important configs that can safely be used almost anywhere

.config/fish/functions/hex2bin.fish

 1
 2
 3
 4
 5
 6
 7
 8
 9
# Note: has a limit of like 10k or something, I forget
function hex2bin --description ''
    if test (count $argv) -ne 1
        echo "usage: $(status current-command) [path of file containing hex digits to bindump]"
        return 1
    end

    sed 's/\([0-9A-F]\{2\}\)/\\\\\\\x\1/gI' "$argv[1]" | xargs printf
end