This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; .emacs | |
(setq user-mail-address "user@example.com") | |
;; turn off default init | |
(setq inhibit-default-init t) | |
;; text mode default for new buffers | |
(setq default-major-mode 'text-mode) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; backup-dir.el --- allow backup files to live in some other directory(s). | |
;;; Author: Greg Klanderman <greg.klanderman@alum.mit.edu> | |
;;; Version: 2.9 | |
;;; Date: January 8, 1999 | |
;;; Created: Spring 1992 | |
;;; Keywords: backup file | |
;;; Copyright (C) 1992-98 Greg Klanderman | |
;;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import time, sys | |
epoch = float(sys.argv[1]) | |
ans = time.localtime(epoch) | |
if ans.tm_year > 3000: | |
ans = time.localtime(epoch/1000.0) # milliseconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import json | |
import fileinput | |
text = "".join(line for line in fileinput.input()) | |
data = json.loads(text) | |
print(json.dumps(data, sort_keys=True, indent=4)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
™ | |
ಠ_ಠ | |
¯\_(ツ)_/¯ | |
✓ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while [ 1 ]; do | |
find ~ | perl -MList::Util=shuffle -e 'print shuffle<STDIN>' | head -n 1 | xargs xxd -c 32 | |
sleep 2 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am cjdurkin on github. | |
* I am cdurkin (https://keybase.io/cdurkin) on keybase. | |
* I have a public key whose fingerprint is A5CF DB68 4A95 D9AB 05B2 71E1 15C6 84BF 25FD 8C06 | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE=${1:-README.md} | |
fn=$(mktemp /tmp/md-$(uuidgen).html) | |
pandoc --from markdown --to html $FILE --output $fn | |
open $fn |