Skip to content

Instantly share code, notes, and snippets.

@ryanpitts
Created May 11, 2011 19:11
Show Gist options
  • Save ryanpitts/967092 to your computer and use it in GitHub Desktop.
Save ryanpitts/967092 to your computer and use it in GitHub Desktop.
Let your Mac read you the latest @wmhartnett updates from Twitter
read -a choices <<<'Agnes Kathy Princess Vicki Victoria Bruce Fred Junior Ralph Albert Bahh Bells Boing Bubbles Cellos Deranged Hysterical Trinoids Whisper Zarvox'; n=${#choices[*]}; voice=${choices[$((RANDOM%n))]}; curl https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=wmhartnett | grep '<description>.*</description>' | sed -e 's/<\/*description>//g' -e 's/ \/ wmhartnett//g' -e 's/wmhartnett: //g' | say -v $voice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment