Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created May 11, 2011 15:59
Show Gist options
  • Select an option

  • Save cwarden/966743 to your computer and use it in GitHub Desktop.

Select an option

Save cwarden/966743 to your computer and use it in GitHub Desktop.
track list of twitter followers in git
13 8 * * * bash -c "(mkdir -p /home/cwarden/twitter; cd /home/cwarden/twitter; git init -q; twidge lsfollowers 2> >(egrep -v 'Bad response: (0|400)' >&2) | sort > followers; git diff followers | ifne mail -s 'New Followers' cwarden@xerus.org; test -z \"\$(git status --porcelain -z followers)\" || (git add followers; git commit -q -m'updated followers' followers ))"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment