Instantly share code, notes, and snippets.

View git-gravatars.sh
#!/usr/bin/env bash
# Pulls down gravatars for all committers in a git repository.
if [[ ! -d .git ]]; then
echo "No .git directory found"
fi
outdir=.git/avatar
if [[ ! -d $outdir ]]; then
mkdir $outdir
View gist:abfd6e36f93a4e9e28c3
### Keybase proof
I hereby claim:
* I am jakebasile on github.
* I am jakebasile (https://keybase.io/jakebasile) on keybase.
* I have a public key whose fingerprint is 9E06 18FA 20A6 129D 1A81 88A3 0D8B F0AD BE57 0F54
To claim this, I am signing this object:
View ppedn.sh
# add this to your Zshrc (it may work in Bash, too)
function ppedn() {
local tmp=$(mktemp -p /tmp "ppedn-XXXXXXXX.clj")
echo "(require '[puget.printer :as puget])" >> $tmp
if [[ ! -z $1 ]]; then
# if given direct input, use that
echo "(puget/cprint $1)" >> $tmp
else
# if nothing was given directly, use stdin