Skip to content

Instantly share code, notes, and snippets.

View makenai's full-sized avatar

Pawel Szymczykowski makenai

  • Codingscape
  • Nagoya, JP
View GitHub Profile
#!/usr/bin/env ruby
repo = `basename \`git rev-parse --show-toplevel\``.strip
sha = `git rev-parse HEAD`.strip
file= "~/Dropbox/Code/gitshots/#{Time.now.to_i}-#{repo}-#{sha}.jpg"
puts "Taking capture into #{file}!";
system "imagesnap -q -w 3 #{file} &";
exit 0