From 3420ac129577f33a29ddf2ed3dd6f4e724fed5c8 Mon Sep 17 00:00:00 2001 From: Josh Sherman Date: Mon, 19 Jan 2015 22:35:13 -0500 Subject: [PATCH] Dropped post commit hook Post commit hook was writing to sndcrd.com and taking a picture. Don't really care about either of those things at this point, so dropping the extra code. --- git/hooks/post-commit | 15 --------------- 1 file changed, 15 deletions(-) delete mode 100755 git/hooks/post-commit diff --git a/git/hooks/post-commit b/git/hooks/post-commit deleted file mode 100755 index 8372498..0000000 --- a/git/hooks/post-commit +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -# Grabs the project, kind of specific to github's format username/project -PROJECT=`git remote -v | head -1 | sed 's/.*git@.*:\(.*\).git.*/\1/'` - -# Get artist from Spotify -ARTIST=`osascript -e 'tell application "Spotify" to artist of current track'` - -# Get track from Spotify -TRACK=`osascript -e 'tell application "Spotify" to name of current track'` - -# Make it so! -curl "http://sndcrd.com/api?key=${SNDCRD_KEY}&project=${PROJECT}&artist=${ARTIST}&track=${TRACK}" > /dev/null 2>&1 - -imagesnap -q ~/.gitshots/`date +%s`.jpg &