How To Prevent Automatic HTML Line Breaks

Author: , Posted on Thursday, May 14th, 2020 at 11:14:20am

Recently, I had a list of command-line options in a table, and my browser was automatically inserting a line-break in-between the hyphen and the option character.

To prevent this, I simply added a little CSS:

NOTE: Never use the

HTML directive – it is obsolete!

How To Change the Destination Admin Email Address for User-Meta Pro Notifications

Author: , Posted on Monday, May 11th, 2020 at 1:28:22pm

Snow in May!

Author: , Posted on Saturday, May 9th, 2020 at 10:59:02am

How To Empty the Cache in Prometheus Using Curl

Author: , Posted on Thursday, May 7th, 2020 at 3:17:16pm

I wanted to empty the time series data cache from the Prometheus server to start clean.

The best practice is to use the administrative HTTP API via curl. For example, to clear all data for job mysqld as defined in the prometheus.yml configuration file:

If you want to delete ALL data from Prometheus, then execute:

Since Prometheus keeps deleted data for 15 days by default, you may want to speed up that process by executing:

You can change the default of 15 days by setting the --storage.tsdb.retention option.

NOTE: The administrative HTTP API is disabled by default!

To enable it, add the --web.enable-admin-api argument to the prometheus commend at startup.

For example, this is an excerpt from my /etc/init.d/prometheus service script:

Thanks to ShellHacks –

First Hummingbird Sighting!

Author: , Posted on Wednesday, May 6th, 2020 at 5:19:27pm

How To Upgrade Certbot, Python and PIP on AWS Linux 1

Author: , Posted on Wednesday, May 6th, 2020 at 12:43:43pm

I ran letsencrypt-auto renew and got the following error:

The solution in this article gave me the answer:

Turns out Python was old at version 2.7, so did the following also:

Also had to change the cron job script to call certbot directly instead of letsencrypt-auto :

vi /root/

How To Create a New git Repo from an Existing git Directory

Author: , Posted on Friday, April 24th, 2020 at 9:25:32am

I needed to take a directory which had already run git init and needed to create the remote origin on our main internal git server.

First post after upgrading to WordPress 5.4

Author: , Posted on Sunday, April 5th, 2020 at 10:56:58am

Decided to go for it and dive into the world of the WordPress block editor based on the improvements in version 5.4 –

First, the upgrade went smoothly.

Second, switching to the new block editor was easy.

Third, making this post seems pretty painless. I disabled full-screen mode because I simply don’t like it ;-}

The post preview worked well, too.

Nice job, WP Team!

How To Install MySQL on MacOS Using Brew

Author: , Posted on Sunday, April 5th, 2020 at 8:49:16am

As a non-root user:

Make sure your PATH contains /usr/local/bin

How to Remove Skype for Mac

Author: , Posted on Friday, March 27th, 2020 at 11:30:41am
  1. Quit Skype
  2. From your Applications folder, drag the Skype icon into the Trash
  3. In the top Finder menu, select Go -> Go to Folder… or press Shift-Command-G to bring up the “Go to the folder” prompt
  4. Open ~/Library/Application Support and drag “Skype Helper” to the Trash
  5. Open ~/Library/Application Support/Microsoft and drag “Skype for Desktop” to the Trash.
  6. Open ~/Library/Preferences and drag both and to Trash 
  7. Right or Ctrl-click Trash and select Empty Trash