Skip to content

Instantly share code, notes, and snippets.

@georgy-martirosov
Created August 14, 2012 13:23
Show Gist options
  • Save georgy-martirosov/3349216 to your computer and use it in GitHub Desktop.
Save georgy-martirosov/3349216 to your computer and use it in GitHub Desktop.
Take webcam shot after each commit via post-commit hook
#!/usr/bin/env ruby
# take photo after commit ; )
file="~/.gitshots/#{Time.now.to_i}.jpg"
puts "Taking capture into #{file}!"
system "imagesnap -q -w 3 #{file}"
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment