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

How To Downgrade PIP After Upgrade on Amazon Linux

Author: , Posted on Wednesday, March 25th, 2020 at 2:27:28pm

I tried upgrading pip when prompted to do so:
sudo pip install --upgrade pip

This worked, but removed the system install in /usr/bin/pip and replaced it with /usr/local/bin/pip – NOT GOOD!

The solution is as follows:

How To Calculate CSS Height On The Fly Using Calc

Author: , Posted on Wednesday, March 25th, 2020 at 10:45:03am

I needed to use an iframe between a pre-defined header and footer that would auto-fill the full height on any size screen.

On a desktop, the combined height of the header + footer was 223px and for mobile was 157px, so below find the CSS example:

calc(100vh - 223px) – for desktop
calc(100vh - 157px) – for mobile


How To Delete Lines Using PERL Edit In Place

Author: , Posted on Monday, March 23rd, 2020 at 10:50:46am

Using PERL, we can easily do a search and replace across multiple files.

perl -ni -w -e 'print unless m/^gdb\d+/;' yourFileSpec

R.I.P Kenny Rogers

Author: , Posted on Saturday, March 21st, 2020 at 4:25:36pm

How To Find Commits With Code Containing a String

Author: , Posted on Friday, February 7th, 2020 at 2:27:34pm