Skip to content

Instantly share code, notes, and snippets.

@savaged
Last active September 30, 2023 21:08
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 savaged/824568147793a62c7748b864591535ce to your computer and use it in GitHub Desktop.
Save savaged/824568147793a62c7748b864591535ce to your computer and use it in GitHub Desktop.
SOTD (scripture of the day)
#!/bin/sh
# dependencies: curl, grep, sed, html-xml-utils, lolcat and an internet connection
curl -s "https://wol.jw.org/en/wol/h/r1/lp-e/$(date +"%Y/%m/%d")" | grep -E -A5 "data-date=\"$(date +"%Y-%m-%d")" | grep -m 1 '\<themeScrp\>' | hxselect -c 'em' | sed 's/$/\n/g' | lolcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment