Created
February 16, 2018 15:15
-
-
Save Vermeille/c6f7740375849a2602d5beee310d04e0 to your computer and use it in GitHub Desktop.
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/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