Skip to content

Instantly share code, notes, and snippets.

View mike-spainhower's full-sized avatar

Spain Train mike-spainhower

View GitHub Profile
@mike-spainhower
mike-spainhower / keybase.md
Created May 13, 2014 15:20
keybase identity assertion

Keybase proof

I hereby claim:

  • I am mike-spainhower on github.
  • I am spain (https://keybase.io/spain) on keybase.
  • I have a public key whose fingerprint is BB7D F598 206E 0C71 CD3D 803F 5AC4 25B7 3F21 5DF4

To claim this, I am signing this object:

@mike-spainhower
mike-spainhower / cowsay_ddate.sh
Last active December 25, 2015 05:19
Cowsay something fun with different eyes and a tongue! I recommend sticking it in /etc/profile.d/
#!/bin/bash
RND=`od -An -N2 -tu2 /dev/urandom`
if [ $(( $RND % 3 )) == 1 ] ; then
MESSAGE=`fortune`
else
MESSAGE=`ddate`
fi
@mike-spainhower
mike-spainhower / xpg.sh
Last active January 13, 2020 21:19
Bourne Shell script that outputs xkcd password generator passwords using secure random. http://xkcd.com/936/
#!/bin/sh
rand_num=""
tot_words="`wc -l /usr/share/dict/words | cut -f1 -d' '`"
refresh_random () {
rand_num=`od -An -N4 -tu4 /dev/random`
}
for i in `seq 1 4` ; do