The sad thing about these pranks was that occasionally someone else would do a more malicious one, and we'd get blamed :( But there's still so much fun to be had from finding ways to shake things up.
This tweet by Coding Horror's Jeff Atwood gave me the idea for the next one:
by law, every fifth push to DVCS must be followed by this video link http://www.youtube.com/watch?v=vCadcBR95oU
Naturally, the youtube link plays this:
Gotta love the 80's.
Were I still there, I would love to institute this. But for now, I'm setting it up on my machine, to keep things from getting too boring. To do this yourself you'll need the following:
- mpg123, a simple command-line mp3 player. Easily installable.
- An mp3 of Salt-n-Pepa's Push It
Given all this, the rest is easy as pie. There are surely more elegant solutions than what I did:
- Store the number of pushes in an external file echo "1" > how_many_pushes.txt
- Write a script to keep track of and increment that number as time goes on. Here's my Ruby script:
- Execute git config --global alias.psh !push_wrapper.rb.
Now just use git psh instead of git push, and have a surprise every now and then ^_^
No comments:
Post a Comment