8000 GitHub - jeffreytierney/lolcommits: Takes a snapshot with your Mac's built-in iSight webcam every time you git commit code, and archives a lolcat style image with it.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Takes a snapshot with your Mac's built-in iSight webcam every time you git commit code, and archives a lolcat style image with it.

Notifications You must be signed in to change notification settings

jeffreytierney/lolcommits

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git + webcam = lol

Takes a snapshot with your Mac's built-in iSight 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.

Prerequisites

  • ImageMagick (brew install imagemagick assuming you are on a mac using Homebrew)
  • RMagick and ruby-git gems (bundle install when in this directory)
  • ImageSnap (included)

Installation

The boring way

Copy bin/imagesnap to somewhere in your $PATH. Make lolcommit.rb a post-commit hook in the repo you want it to run for.

The awesome way (works for multiple repos)

Run rake install. This will do the following:

  • Copy imagesnap to /usr/local/bin
  • Clone and install the git-hooks project (adding it to /usr/local/bin)
  • Create 53B9 s your global user ~/.git_hooks and gives you a few directories to start (pre-commit, commit-msg, and post-commit).
  • Copies the main script here (lolcommit.rb) to your new ~./git_hooks/post-commit directory.
  • Uses bundler to install any uninstalled Gem dependencies (assuming bundler is installed, manually gem install bundler if not, we don't auto-install it to be polite.)
  • Uses homebrew to install ImageMagick (assuming Homebrew is installed, we don't auto-install it here to be polite.)

Once this is done, simply run git hooks --install while in any repository you want to use this in.

This installs git-hooks which gives you a global user hooks directory so you can set up other stuff easily as well. See their README for more details.

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.  

About

Takes a snapshot with your Mac's built-in iSight webcam every time you git commit code, and archives a lolcat style image with it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%
0