Skip to content

Instantly share code, notes, and snippets.

@pleasemarkdarkly
Last active January 1, 2020 14:24
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 pleasemarkdarkly/ea5116f4f7248cdee6eccec3e9a2e567 to your computer and use it in GitHub Desktop.
Save pleasemarkdarkly/ea5116f4f7248cdee6eccec3e9a2e567 to your computer and use it in GitHub Desktop.
Bash script to parse Chuck Norris jokes for presentation in terminal. I use it for shoving into cowsay.
#!/bin/bash
curl -s http://api.icndb.com/jokes/random/ | python -c 'import sys, json; print "\n"+json.load(sys.stdin)["value"]["joke"]+"\n\n"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment