Skip to content
:camera: git-based selfies for software developers
Ruby Cucumber
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

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:

lolcommits --enable

Likewise, you can disable it via lolcommits --disable.

Sample images

Please add your own lolcommit to these samples! Just fork this repo, add it to this section of the README, and send me a pull request.  

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 rm /usr/local/bin/imagesnap.

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
Something went wrong with that request. Please try again.