lolcommits (git + webcam = lol)
Takes a snapshot with your Mac's built-in iSight/FaceTime webcam (or any working webcam on Linux) 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 (Mac OS X)
You'll need ImageMagick installed. Homebrew makes this easy. Simply do:
brew install imagemagick
Then simply 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
lolcommits --disable. For a full list of options, you can do
Install dependencies using your package manager of choice, for example in Ubuntu:
sudo apt-get install mplayer imagemagick libmagickwand-dev
On Fedora, enable the rpmfusion repository (for mplayer) and run:
sudo yum install ImageMagick ImageMagick-devel mplayer
Then install the lolcommits gem:
gem install lolcommits
Then you can
lolcommits --enable in any git repo as above.
See the wiki page for Installing on Windows.
Please add your own lolcommit! Add to the People Using Lolcommits page on the Wiki.
lolcommits has some options for additional lulz. You can enable via environment variables.
- Set webcam device on mac - set
- Set delay persistently (for slow to warmup webcams) - set
LOLCOMMITS_DELAYvar to time in seconds.
- TRANZLATE YOAR COMMIT_MSG TO LOLSPEKK - do
lolcommits --config -p tranzlateand set enabled to
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Added some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request
Please, if at all possible, write a passing test for the functionality you added.
Started a FAQ.