Skip to content

Instantly share code, notes, and snippets.

View 100xff's full-sized avatar
🐋
chasing the flow state

Fionn 100xff

🐋
chasing the flow state
  • Hong Kong
View GitHub Profile
@100xff
100xff / .jobrc
Created September 19, 2022 05:55
export PGSSLMODE=verify-full
export PGSSLROOTCERT=~/.postgresql/global-bundle.pem
@100xff
100xff / list_git_crypt_keys.sh
Last active August 9, 2022 07:58
Hack to get the keys used for git-crypt
#!/bin/bash
set -euo pipefail
for dir in .git-crypt/keys/*; do
echo "$dir"
git log -- "$dir"/? | grep -v "Author: " | grep "@" | sed -e 's/^ *//'
done
@100xff
100xff / .macos
Last active July 8, 2022 11:30
macOS userspace parameters
defaults write com.apple.Preview ApplePersistenceIgnoreState -bool true
defaults write -g AppleFontSmoothing -int 3
defaults write com.apple.Dock show-recents -bool false
defaults write com.apple.driver.AppleBluetoothMultitouch.trackpad TrackpadCornerSecondaryClick -int 2
defaults write -g com.apple.swipescrolldirection -bool false
defaults write com.apple.terminal SecureKeyboardEntry -bool true
@100xff
100xff / Brewfile
Last active October 13, 2024 13:43
brew "bash"
brew "bash-completion@2"
brew "coreutils"
brew "curl"
brew "diceware"
brew "diffr"
brew "dog"
brew "git"
brew "gnupg"
brew "inetutils"
@100xff
100xff / mmdb.sh
Last active July 18, 2022 16:59
MMDB CLI
#!/bin/bash
set -euo pipefail
XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
mmdb_dir="$XDG_CACHE_HOME/mmdb"
anonymous_db="$mmdb_dir/GeoIP2-Anonymous-IP.mmdb"
city_db="$mmdb_dir/GeoIP2-City.mmdb"
selector="[.[].Records[]]"