Skip to content

Instantly share code, notes, and snippets.

View cburmeister's full-sized avatar

Corey Burmeister cburmeister

View GitHub Profile
@cburmeister
cburmeister / post-commit
Last active December 17, 2015 19:29
Simple git hook that snaps a photo every time a commit is made with http://iharder.sourceforge.net/current/macosx/imagesnap/
#!/usr/bin/env python
import os
import datetime
my_dir = os.path.expanduser('~/commit-captures')
if not os.path.exists(my_dir):
os.makedirs(my_dir)
filename = '%s/%s.jpeg' % (my_dir, datetime.datetime.now())