Skip to content

Instantly share code, notes, and snippets.

@jreyes33
Last active November 17, 2017 16:09
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 jreyes33/04e69766642167eaf308cf87ebacd397 to your computer and use it in GitHub Desktop.
Save jreyes33/04e69766642167eaf308cf87ebacd397 to your computer and use it in GitHub Desktop.
cowquotes.sh
#!/usr/bin/env bash
set -euo pipefail
while true
do
clear
curl -s https://talaikis.com/api/quotes/random/ |
jq -r '"“\(.quote)” —\(.author)"' |
cowsay -f $( ls /usr/share/cowsay/cows/ | shuf -n 1)
sleep 15m
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment