Skip to content

Instantly share code, notes, and snippets.

@techouse
Last active July 3, 2017 13:44
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save techouse/22e3c76f68587a8e759f727f0905cb73 to your computer and use it in GitHub Desktop.
Save techouse/22e3c76f68587a8e759f727f0905cb73 to your computer and use it in GitHub Desktop.
Make your Linux distro verbally insult you.
#!/bin/sh
# This script will give you a random English insult pulled from the url below.
# Evil hint: set up a cronjob :D
curl -s 'http://www.hyperhero.com/en/insults.htm' |
awk '/BEGINN INSULTS/ { show=1; next } /END INSULTS/ { show=0 } show' |
grep -oPi '^.*<br>' |
sed 's/<br>//' |
shuf -n 1 |
espeak -s 125 -v en+m3 -p 25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment