👋 I’m Derrick, and this is my WordPress Blarg.

I’m an Enterprise Engineer for WordPress VIP. I’ve been with Automattic/VIP since 2015, and enjoy it every day!

On this site I mostly post absolute stupid garbage. You have been warned.

  • Limiting Featured Image Dimensions in WordPress

    Limiting Featured Image Dimensions in WordPress

    As a follow up to my last post about limiting file sizes during uploads, I had to come back to the problem with limiting image sizes for featured images. Not bytes this time, but pixel dimensions. Still being a bit of a block editor newb, this was an interesting challenge for me, and I was […]

  • Half Baked Idea: Limiting WordPress Image Upload Sizes

    Half Baked Idea: Limiting WordPress Image Upload Sizes

    If you want to be able to limit images (or any attachments) from being uploaded into the media library if they are too large, you can use the wp_handle_upload_prefilter filter to do this. Below is a really basic example I whipped up in a few minutes that I shared with a customer not too long […]

  • Dall-E 2 Outpainting Experiment

    Dall-E 2 Outpainting Experiment

    OpenAI recently introduced a new feature called Outpainting to Dall-E 2 This lets you easily expand your image without manual labor intensive hacks. With this, I decided to do a quick run through to see what’s on the other side of Bliss Now, I probably could have gotten something a lot better if I’d taken […]

  • Stable Diffusion on M1 Macs!

    Stable Diffusion on M1 Macs!

    Run Stable Diffusion on your M1 Mac’s GPU Oh yes, this is going to be awesome! (via Hacker News)

  • Bad Hack: Restart Linux Server when memory is low 😬

    Bad Hack: Restart Linux Server when memory is low 😬

    I’m running something on my Raspberry Pi server that’s got a memory leak. I think it’s related to my Software Defined Radio (more on that another day), but I’m too lazy to actually track it down and fix it, so I’ve implemented the below hack to just restart my server when memory gets too low. […]

  • Use Backticks for code in Google Docs

    Use Backticks for code in Google Docs

    Zach Brogan, you are my new best friend! I _strongly_ prefer to write in Markdown, and when doing things in Google Docs, despite it having a “markdown” option, code blocks never worked. This is where the “Backtick” Chrome extension comes in to save the day. It just works, and converts all my backticked words and […]

  • Fixing a broken ATOM Feed

    Fixing a broken ATOM Feed

    My city is not known for being technologically adept, and I’m at least lucky they have a website with a CMS. Sadly though, the website offers only a broken ATOM 1.0 feed, a standard that’s old enough to drink in some countries. Unfortunately, this doesn’t work with NewsBlur, so I had to sort to building […]

  • Quick Tip: Bash CLI params

    Quick Tip: Bash CLI params

    While working on a bash script, I stumbled upon what I think may be the cleanest and simplest way to add CLI params to a bash script so far: This lets you use short (-V), long (–version), space separated (–user john), and equal separated (–user=john) arguments. It’s not perfect, but for a quick bash script […]

  • iOS Reminders to Habitica To Do’s via IFTTT

    iOS Reminders to Habitica To Do’s via IFTTT

    After digging around for a while trying to see how I could link up iOS’s Reminders with Habitica‘s To Do’s to help keep me organized, I finally found an easy way through IFTTT. This works easily because Habitica offers a wonderful API💥 Specifically we’re looking at the “Create a new task belonging to the user” […]

All code on this site, unless otherwise mentioned, is licensed GPL v2 or later 🎉