After adding current listened track into my commit message, now i’m adding the action, i take picture everytime commiting something. here’s how.
- get ImageSnap
brew install imagesnapor
port install imagesnap
- create this hook at your project .git/hooks/
#!/bin/bash COMMITID=$(git rev-parse HEAD) imagesnap -q -w 1 .gitsnap/$COMMITID.jpg`
save as post-commit (so it will run after commit)
How to stop procrastination
did you always stuck in the morning reading news, hundred of rss feed, Flipboarding(?), and last but not least, Twitter or Facebook. they can suck all of your productive time.
but there’s a way to satisfy your need to tweets or update you status. you can use the tool that [hipster(?)] developer already knows, GIT.
see, i have a record 7.777 tweets right now, and i hate to break this number. and guess what, yes, i’ve been ranting/tweeting/etc via my commit message. This way i can get both satisfaction, by writing not-all-nonsense so-called tweet and i can get productive by making change on my code, if i want to ‘tweet’, i have to change/write codes!
Read more →
Git commit and mood
many developers push their code to git repo with funny or sometimes silly comments (i do that sometimes) like this whatthecommit site, but maybe it will be more hips (like hipsters do) if i can fetch last.fm api from current listened music and add them to my commit message.
here’s the idea
$ git commit -m "fixing some bugs $(last_fm)"
the last command is to insert my last.fm current track.
so if we browse the log it will be shown
"fixing some bugs while listening to U2 - Stay". if i don’t listened any track it will return
"with no music" (or any other message).
here’s the gists on github of courseRead more →