git + webcam = lol
Takes a snapshot with your Mac's built-in iSight/FaceTime webcam every time you git commit code, and archives a lolcat style image with it.
By default, the lolimages are stored by a Github style short SHA in a
~/.lolcommits directory created for you.
Installation (for new gem-y version)
We've gotten rid of most of the dependency chain, yay!
You'll need imagesnap and imagemagick installed. Homebrew makes this easy. Simply do:
brew install imagemagick brew install imagesnap
This will take care of the non-Ruby dependencies. Then do:
[sudo] gem install lolcommits
(If you're using rvm or something like that, you can/should probably omit the sudo, but the default MacOSX Ruby install is dumb and requires it.)
You're all set! To enable lolcommits for a git repo, go to the base directory of the repository, and run:
Likewise, you can disable it via
Upgrading from an old (non-gem) version?
If you used the autoinstaller, here's how to get rid of the old stuff (I think)
For all active lolrepos, go into them and do:
git hooks --uninstall
You might want to get rid of the copied binary for imagesnap and switch over to the homebrew-managed version, if so
If you want to get rid of git-hooks entirly (it won't hurt anything, but we dont use it anymore), you can also do:
rm /usr/local/bin/git-hooks rm -rf ~/.git_hooks rm -rf ~/.githooks_src