Skip to content

Instantly share code, notes, and snippets.

@trev-dev
Created April 5, 2023 15:29
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 trev-dev/4c0d64f2cad261d9b4c36d756b3cca1a to your computer and use it in GitHub Desktop.
Save trev-dev/4c0d64f2cad261d9b4c36d756b3cca1a to your computer and use it in GitHub Desktop.
Motivational Cowsay
lastIncident=20230114
days_since=$(( ($(date +%s) - $(date -d $lastIncident +%s)) / (60*60*24) ))
sayings=(
"Don't be sorry, be better."
"Don't get caught up in the details."
"Deliver something every day."
"${days_since} days since last Emacs incident."
)
chosen_saying=${sayings[ $RANDOM % ${#sayings[@]} ]}
cowsay -y $chosen_saying
echo ""
@trev-dev
Copy link
Author

trev-dev commented Apr 5, 2023

emacsincident

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment