Skip to content

Instantly share code, notes, and snippets.

@johnmoxon
Forked from knoopx/post-commit.rb
Created April 6, 2013 05:48
Show Gist options
  • Select an option

  • Save johnmoxon/5325028 to your computer and use it in GitHub Desktop.

Select an option

Save johnmoxon/5325028 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# Requires imagesnap from https://github.com/alexwilliamsca/imagesnap (brew install imagesnap)
# To assemble the video use http://www.dayofthenewdan.com/projects/tlassemble
file="~/.gitshots/#{Time.now.to_i}.jpg"
puts "Taking capture into #{file}!"
system "imagesnap -q -w 3 #{file}"
exit 0
@johnmoxon
Copy link
Author

Takes a webcam picture each time you make a git commit!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment