Take a picture from webcam everytime you commit(Shell version)
Well i have seen two of the variant , one in ruby , other in perl.Here is mine in simple shell script.
First you need to install uvccapture,
sudo apt-get install uvccapture
then, copy this code inside your post_update commit hook and it will do the job just as well.
mkdir -p ~/.gitpix && uvccapture -m -x640 -y480 -o$HOME/.gitpix/pic-$(date +%s).jpg
Written by Vinit Kumar
Related protips
1 Response
lol. it's really cool & fresh feature, must be integrated in the git! ;)
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
khasinski
591.1K
dmichaelavila
500.4K
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#