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 | |
set -euo pipefail | |
if [ "$#" == 0 ]; then | |
echo "./get_keys.sh username <key1> <key2>" | |
exit 1 | |
fi | |
keys=$(curl -s https://api.github.com/users/${@:1:1}/keys) |
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 fasd_fzf_file () { | |
fasd -f | fzf --tac --reverse --height=25% | awk '{print $2}' | |
} | |
function fasd_fzf_dir () { | |
fasd - d | fzf --tac --reverse --height=25% | awk '{print $2}' | |
} | |
alias v='vim $(fasd_fzf_file)' | |
alias d='cd $(fasd_fzf_dir)' |
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 | |
CLOUDFLARE_TOKEN= | |
CLOUDFLARE_EMAIL= | |
CLOUDFLARE_ZONE= | |
CLOUDFLARE_DNS_ID= | |
CLOUDFLARE_WEBSITE= | |
EXTERNAL_IP="$(curl icanhazip.com)" |
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 | |
# Unmount disk2 and then write iso to rdisk2 | |
diskutil unmountDisk /dev/disk2 | |
sudo dd if=$1 of=/dev/rdisk2 bs=1m |