Skip to content

Instantly share code, notes, and snippets.

View lennyjpg's full-sized avatar

Leander Herzog lennyjpg

View GitHub Profile
@lennyjpg
lennyjpg / horseNames.txt
Last active May 21, 2017 15:32
via horses-and-horse-information.com | Finding the Perfect Horse Name >>> We have complied the largest horse name list on the web. You will find many great namely titles for your irish, indian, miniature, quarter. or race horse all in one place. Whether you are looking for boy, girl, or famous horses names, there enough nicknames here to find th…
Abaccus
Abbervail Dream
Abby
Abdullah
Abercrombie
Able Master
Above and Beyond
Above The Clouds
Abracadabra
Absent
@lennyjpg
lennyjpg / recipients-sorted-by-frequency.sh
Created April 10, 2013 22:14
who you sent mail to, sorted by frequency
find ~/Library/Mail/ -name "*.emlx" -print0 | xargs -0 grep "^To:" -h | grep -o '[[:alnum:]+\.\_\-]*@[[:alnum:]+\.\_\-]*' | sort | uniq -c | sort -rn > ~/Desktop/recipients-sorted-by-frequency.txt && open ~/Desktop/recipients-sorted-by-frequency.txt
@lennyjpg
lennyjpg / mysqlbackup.sh
Last active December 7, 2018 11:34
backup mysqldump over ssh tunnel into gpg
#! /bin/sh
# open tunnel
ssh -v -M -f -N -L 3306:localhost:3306 "$1" -S /tmp/ssh-control
# dump sql, gzip, encrypt with openssl
mysqldump -u root -p"$3" "$2" --host 127.0.0.1 | gzip | openssl aes-256-cbc -salt -out mysqldump.aes -k "$4"
# close tunnel
ssh -S /tmp/ssh-control -O exit "$1"
@lennyjpg
lennyjpg / _.md
Created March 26, 2013 04:13
Tributary inlet
@lennyjpg
lennyjpg / _.md
Created March 22, 2013 14:41
Tributary inlet
@lennyjpg
lennyjpg / _.md
Created March 19, 2013 02:41
Tributary inlet