Skip to content

Instantly share code, notes, and snippets.

View emdantrim's full-sized avatar
🔮

em dan trim emdantrim

🔮
  • pittsburgh
View GitHub Profile
aight so this is actually really fun but simple.
so remember yr binary math (or skip this if yr confident w/ binary):
1 2 4 8 16
----------
1 0 0 0 0 = 1 in decimal
0 0 1 0 0 = 4 in decimal
1 1 1 1 1 = 31 in decimal, etc
#! /bin/bash
TZFILE=`find /usr/share/zoneinfo -iname $1|head -1`
if [ -z $TZFILE ] ; then
echo nope
else
TZ=$TZFILE date
fi
### Keybase proof
I hereby claim:
* I am emdantrim on github.
* I am emdantrim (https://keybase.io/emdantrim) on keybase.
* I have a public key whose fingerprint is 118D FCDA 865F ADF3 A001 E3AF 2F3E 8AFA 8864 1D5A
To claim this, I am signing this object: