Last active
July 3, 2017 13:44
-
-
Save techouse/22e3c76f68587a8e759f727f0905cb73 to your computer and use it in GitHub Desktop.
Make your Linux distro verbally insult you.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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