Friday 16 May 2014

Push It!

Earlier today, Alex Couper presented me with a challenge on a captainhook issue:
I want to play "push it" by salt n pepa on every push.
Challenge accepted.

If you are using a sufficiently recent version of git (i.e. one which supports the pre-push hook) and have youtube-dl, mplayer and curl installed, then dropping this in to .git/hooks/pre-push for a repo will play Push It (in its entirety) on every push:

#!/bin/sh
curl -s "$(youtube-dl -g http://www.youtube.com/watch\?v\=vCadcBR95oU)" | mplayer -really-quiet -cache 8192 -vo null - > /dev/null 2>&1 &

1 comment:

  1. Casino games Archives | suncity888.net
    Casino games Archives. July 12, 2018. Casino games. Aug 29, 2018. Casinos & Games. August 4, 2018. Games. October 5, 2018. Games. November 퍼스트카지노 6, 선시티카지노 2018. Casinos & Games.

    ReplyDelete