Skip to content

Instantly share code, notes, and snippets.

@somebody32
Created October 10, 2012 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save somebody32/3865805 to your computer and use it in GitHub Desktop.
Save somebody32/3865805 to your computer and use it in GitHub Desktop.
Autopost commit photos to twitter
#!/bin/zsh
forked_image() {
mkdir -p ~/.git_shots
filename="$(date +%s)_$(basename $PWD).jpg"
imagesnap -q -w 3 ~/.git_shots/$filename
sleep 2
NOEXEC=0 rvm default do t update "New commit from @somebody32" -f ~/.git_shots/$filename >/dev/null
}
forked_image &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment