Skip to content

Instantly share code, notes, and snippets.

@robinwl
Last active January 19, 2021 20:04
Show Gist options
  • Save robinwl/a8c71e03b6865d719d7e to your computer and use it in GitHub Desktop.
Save robinwl/a8c71e03b6865d719d7e to your computer and use it in GitHub Desktop.
cowsay webserver index
*/5 * * * * www-data /usr/local/bin/generate_index.sh
#!/bin/bash
echo "<html><pre>$(fortune -a |cowsay -f $(ls /usr/share/cowsay/cows/ | shuf -n1))</pre></html>" > /usr/share/nginx/www/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment