Use WP CLI to find all blog posts without a featured image - two methods


The Logo for WordPress.

This uses the wp shell command. It gives you an interactive prompt into which you can do various WordPress "things". One small annoyance is that it doesn't like multi-line entry. It treats every hit of the enter key as "plz run the codez" - so, at the end of this blog post, I've put the commands in copy-n-paste format. Once you've installed WP CLIP, go to the command line and run wp shell. You'll be greeted with an interactive prompt wp> Method One - Quick Search This command constructs a…

Continue reading →

Generating Random Chiptunes on Linux


Unix is user-friendly — it's just choosy about who its friends are.

I like to listen to music while I work. I find - especially in an open plan office - that it is an essential aid to concentration. That said, I find music with lyrics particularly problematic as my brain prefers to concentrate on the words rather than the task in hand. On long flights, I often use a white noise generator to drown out sound. I've recently started listening to random music. A simple command line script to generate a highly synthetic / chiptune / glitchnoise neverending piece…

Continue reading →