Skip to content

Instantly share code, notes, and snippets.

@Vermeille
Created February 16, 2018 15:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vermeille/c6f7740375849a2602d5beee310d04e0 to your computer and use it in GitHub Desktop.
Save Vermeille/c6f7740375849a2602d5beee310d04e0 to your computer and use it in GitHub Desktop.
#!/bin/bash
content=$(curl -s http://feeds.feedburner.com/PornstarBirthdays | egrep 'title|link' | sed 's/<.*>\([^<]*\)<\/.*>/\1/' | tail -n+6)
idx=$(($RANDOM % ($(echo "$content" | wc -l) / 2) ))
renderer="./catimg/build/bin/catimg -r 1 -w 40"
echo "$content" | tail -n"$(($idx * 2 + 2))" | head -n2 | while read i ; do
case $i in
*http*) curl -s $(echo "$i" | tr -d '[:space:]') \
| grep headshot | sed -n 's/.*src="\([^"]*\)".*/\1/p' \
| xargs curl -s > /tmp/pornphoto && $renderer random /tmp/pornphoto;;
*) figlet $i ;;
esac
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment