There are plenty of good articles out there about how to use the script provided by Google but I struggled to find information on how to set up the cron job for the task.
So in case anyone else needs it here’s a cron job that works for me on Unix. You need to make sure you specify absolute paths. If you don’t have root access then talk to your host but they should tell you where python resides. If you want to find out your document root you can find this in PHP by using the phpinfo() function.
This runs the scheduled task of generating a sitemap each day at 6am.
0 6 * * * /enter/your/path/to/python /enter/your/path/to/sitemap/_gen.py --config=/enter/your/path/to/example/_config.xml
Have an update or suggestion for this article? You can edit it here and send me a pull request.
Listening to BBC Radio with mpv
The BBC publishes high quality 320 kbps HLS AAC streams that can be used to listen to radio from the command-line using mpv. Here are the URLs and some aliases to start listening quickly.
Vim: So long Pathogen, hello native package loading
Vim 8 added a native way to load third-party packages. This means, for me at least, there is no longer any need to use a third party plugin helper like Pathogen.
Linux and Unix more command tutorial with examples
Tutorial on using more, a UNIX and Linux command for viewing the contents of a file or files one screen at a time. Examples of viewing a file, viewing multiple files, searching using regular expressions and opening the file in a text editor.