Skip to content

Instantly share code, notes, and snippets.

@hockeybuggy
Last active December 11, 2015 23:28
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 hockeybuggy/4676444 to your computer and use it in GitHub Desktop.
Save hockeybuggy/4676444 to your computer and use it in GitHub Desktop.
#!/bin/sh
#### GITSHOTS ####
# to install place in the hooks directory of a git repo and make it executeable.
# requires fswebcam: https://github.com/fsphil/fswebcam
gitshotsDir="/home/douglas/media/pictures/.gitshots"
logFile="gitshots.log"
fswebcam --no-banner $gitshotsDir/`date +'%s'`.jpg -r 1280x720 -S 10 --log $gitshotsDir/$logFile
@hockeybuggy
Copy link
Author

I am not backgrounding the process because I currently get a small error and would rather have it print with the commit text rather then a new line...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment