Chuck CLI
My good friend Daniel Miessler dropped a tweet the other day talking about the Chuck Norris Database API. Now as soon as I heard there is an API available I had to get it into my shell for those days when humor is all that keeps me from rm -rf / the world.
Here’s how I did it.
➜ ~ tail -n 1 ~/.oh-my-zsh/lib/aliases.zsh
alias chuck="curl -s http://api.icndb.com/jokes/random/ | egrep -oh '\"joke\": \"[^\"]+' | awk -F \\\" '{print \$4;}'"
➜ ~ chuck
Chuck Norris doesn't use GUI, he prefers COMMAND line.
About the author
Brooks Garrett is a dedicated technologist who specializes in information security. Brooks has spent over 10 years implementing security programs for both the public and private sector including some of the biggest names in the Fortune 500. When he's not managing risk in the corporate environment you can find him at the local firestation where he is a volunteer firefighter.