Skip to content

Instantly share code, notes, and snippets.

@radubogdan
Last active August 29, 2015 14:19
Show Gist options
  • Save radubogdan/7386772796ead50df509 to your computer and use it in GitHub Desktop.
Save radubogdan/7386772796ead50df509 to your computer and use it in GitHub Desktop.
dada
#!/usr/bin/env bash
# Use prozicerisiverbatori.ro in terminal
# Put this script in /usr/local/bin and make it +x
#
# Example of output with cowsay:
# $ dada | cowsay
# _________________________________________
# / Cu obrazul gros și semeț și cată-le \
# \ și încălțare. /
# -----------------------------------------
# \ ^__^
# \ (oo)\_______
# (__)\ )\/\
# ||----w |
# || ||
curl -s http://188.166.21.170/sayings/dada_saying | perl -MJSON::PP -e 'print decode_json(<>)->{dada_saying}' 2>/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment