Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Created April 22, 2021 19:11
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 barryhughes/d3afe30fdb39d80cd687f5dce2c6ef18 to your computer and use it in GitHub Desktop.
Save barryhughes/d3afe30fdb39d80cd687f5dce2c6ef18 to your computer and use it in GitHub Desktop.
Print a fresh joke every 2 mins (CLI\Bash\Zsh)
# Every 2 mins (`-n 120` where 120 is num seconds), display a new joke.
#
# - On MacOS you may need to `brew install watch` first of all.
# - Fun to place this in a small Tmux pane
watch -n 120 "curl -s -H \"Accept: text/plain\" https://icanhazdadjoke.com/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment