Skip to content

Instantly share code, notes, and snippets.

@wwqrd
Created August 15, 2013 15:26
Show Gist options
  • Save wwqrd/6241747 to your computer and use it in GitHub Desktop.
Save wwqrd/6241747 to your computer and use it in GitHub Desktop.
:-)
#!/usr/bin/env ruby
file="~/.gitshots/#{Time.now.to_i}.jpg"
unless File.directory?(File.expand_path("../../rebase-merge", __FILE__))
puts "Taking capture into #{file}!"
system "imagesnap -q -w 3 #{file} &"
end
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment