Skip to content

Instantly share code, notes, and snippets.

@kapadia
Forked from dfm/README.md
Created August 26, 2014 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kapadia/37975f638fac06ed66b0 to your computer and use it in GitHub Desktop.
Save kapadia/37975f638fac06ed66b0 to your computer and use it in GitHub Desktop.

This will change your life. Add this as a git pre-push hook.

How, you ask?

wget https://gist.github.com/dfm/5828028/raw/772270b65a804678db70012d3406f41c79cb53a5/pre-push
chmod +x pre-push
mv pre-push /path/to/your/favorite/repo/.git/hooks
cd /path/to/your/favorite/repo
git push
♫

Where /path/to/your/favorite/repo is the path to the git repository that you want to hook up.

#!/usr/bin/env bash
osascript -e 'tell application "Spotify"
play track "spotify:track:0JyMIJYiS18147AQSac7BW"
end tell'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment