Skip to content

Instantly share code, notes, and snippets.

@georgy-martirosov
georgy-martirosov / post-commit
Created August 14, 2012 13:23
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
@georgy-martirosov
georgy-martirosov / git-diff.sh
Created November 17, 2011 12:57
external diff tool for git, uses XCode diff tool (opendiff)
echo 'opendiff $2 $5' > ~/opendiff-git.sh
chmod a+x ~/opendiff-git.sh
git config --global diff.external ~/opendiff-git.sh
@georgy-martirosov
georgy-martirosov / commit_message.txt
Created September 14, 2011 14:59
Гит без бугурта
de-misunderestimating
XNAMEX, WE WENT OVER THIS. EXPANDTAB.
XNAMEX, WE WENT OVER THIS. C++ IO SUCKS.
Some shit.
add actual words
I CAN HAZ COMMENTZ.
giggle.
Whatever.
Finished fondling.
FONDLED THE CODE