sjpueq
Last Updated: February 25, 2016
·
1.66K
· vinitcool76
0474e465f54e54cc1225d67dfd5d9be5

Take a picture from webcam everytime you commit(Shell version)

git

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
Say Thanks
Respond

1 Response
Add your response

1044
Tshort

lol. it's really cool & fresh feature, must be integrated in the git! ;)

over 1 year ago ·
Filed Under

Awesome Job

20838750 ca12 11e7 8395 3d07316c018d
Overijssel,Amsterdam, Arnhem
·
Overijssel, Amsterdam, Arnhem
·
Full Time