Exposing WSL to Windows for Dev Backups

I recently switched my primary computer from a Macbook Pro to a Surface Laptop. My WordPress development environment is now primarily contained within WSL which is the Linux portion of Windows. WSL’s filesystem isn’t exposed to Windows which means my development environment is not automatically picked up by Backblaze, my personal backup solution. Here…

OS Platform Whichever

This week I did the unthinkable. After 10 years using iMacs and Macbook Pro’s for WordPress development, I purchased Microsoft’s newest Surface Laptop 3. Part of the move was to downsize from a 15″ laptop to a smaller 13″. However that’s not really what this purchase was about. It’s a big deal to switch…

Fetching from SFTP with Phpseclib

I recently had a customer who needed to fetch and import files from a remote SFTP server on a scheduled basis. The import process was handled nicely by WP All Import, so no need to do any custom code there. The only part missing the was actual SFTP fetching. Here is how I accomplish…

Full Page Website Screenshots

I previously wrote about taking website screenshots with gowitness. That works great for basic website screenshots. However my most recent project required full page screenshots which, unfortunately, gowitness does not yet support. It’s also unlikely to be added anytime soon. Under the hood, gowitness simply uses headless Chrome, which itself doesn’t support full page…

Migrating a Large WordPress Site

Migrating a WordPress site is generally a straightforward process. Make a backup of the current site, upload files, and import database onto the new web host. Moving a large website requires extra handling. Have you ever attempted to move a site with 100GB of storage? Tell me, how did that go? Of course migrations…

Composer Autoloading within WordPress Plugin

A good way to begin using object oriented PHP classes is by writing everything in a single .php file. That’s completely fine for small WordPress projects. For large projects a single file quickly becomes a disorganized mess. I know from experience building CaptainCore. 🧐 Take a peak at this one gigantic PHP file before…

Removing Legacy ms-files.php from Multisite

I created the following script to automate removing ms-files.php from a legacy WordPress multisite hosted with Kinsta. It was a large network with hundreds of subsites. Doing this manually would have been a huge undertaking. Not familiar with ms-files.php? I don’t blame you. It was a legacy multisite format for handling uploads prior to…

Open Revenue with Calculate ARR

I meant what I said in “Open Source All Of The Things 📖”. Today I’m excited, maybe a little scared, to announce I’m making public Anchor Hosting’s internal revenue numbers. This is made possible with a new tool I created called Calculate ARR. Take a look: YNAB meets Baremetrics but for annual futurecasting.…

Cloudflare 1.1.1.1 with Google Cloud VM Instance

Cloudflare’s 1.1.1.1 is pretty amazing. If you haven’t seen it, you should check it out. It’s a DNS lookup service which is fast, free and private. It works across all of your devices. I recently had DNS issues on a Google Cloud VM: it was causing sporadic failures with my site monitor. I thought…