Revisiting ValetPress

ValetPress

I was chatting with my co-worker Adrian the other day about some code that he was working on, and it got me in the mood to revisit some of my old ValetPress code. I haven’t really gotten into much coding over the last couple of years as my role has not really called for it, …

Read more

How to perform a traceroute

Traceroute is a common diagnostic tool for displaying the route and measuring any delayed packets across a network. The traceroute command is available by default on almost all modern operating systems, and for ones that it is not included on by default, it is usually simple to go about installing it. Usage Windows Click on the Start …

Read more

lsusb on macOS

For anyone that is using/has used Linux you are likely already familiar with lsusb, which is missing on macOS. Well, you are in luck as there is a bash script available on Github that can be installed via Homebrew. To get it installed you need to run the following commands and its as easy as …

Read more

Using WP-CLI to maintain multiple sites over SSH

Not all hosts provide a simple way to update WordPress Core, Plugins, or Themes within their control panel so that leaves you logging in to each WordPress install one by one to push updates (Of course you can enable auto-updates in WordPress these days). There is another way of going about this if you like to have a little more control, and that is by using WP-CLI. WP-CLI allows for you to create a config.yaml file in the /User/home/username/.wp-cli/ directory on your computer that has WP-CLI installed.

The process of setting this up is pretty straightforward, first, you want to make sure for ease of use you push out your SSH key to each site/server that you will be connecting to else you are stuck typing in the password for each site which kind of defeats the purpose of this setup. I won’t explain this process as there are many walkthroughs out there that can help you get this going if you are unfamiliar, I even wrote a bash script to help with this process.

Read more

SSH Key generation script

For a short while, I found myself logging into multiple servers and anyone that is using passwords is simply doing it wrong. I was getting ready to remove password authentication on all my servers that I managed and decided to throw this simple script together to send my key to the servers before disabling passwords, …

Read more

Enable Auto-updates for all plugins using WP-CLI

When it comes to managing site updates it can be painstaking, especially when you have more sites than you can count on one, or even two hands. Even with that being said I know the sites that I manage pretty well from inside and out, so I am fine with automating updates. Most of the …

Read more

WordPress Multisite Import/Export script

I came across an issue with a client site the other day where they had multiple WordPress Multisite installs each with hundreds of sub-sites on each install. Due to limitations with the hosting each install needed to only contain 100 subsites or less else there would be issues with issuing SSL certificates via LetsEncrypt. In …

Read more