Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ryanpitts/2648576 to your computer and use it in GitHub Desktop.
Save ryanpitts/2648576 to your computer and use it in GitHub Desktop.
while true; do 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\&max_id=200303011078213633\&count=1 | grep '<description>.*</description>' | sed -e 's/<\/*description>//g' -e 's/ \/ wmhartnett//g' -e 's/Twitter updates from William M. Hartnett//g' -e 's/wmhartnett: //g' | sed 's/.*://g' | say -v $voice; sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment