👋 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.
-
Macbook Battery Stats in Your ZSH Terminal Prompt
Discover how to transform your ZSH terminal prompt into a dynamic battery monitor for your MacBook, offering real-time status updates with every command.
-
Sending Prowl Alerts via Bash
Learn how to send alerts using Prowl for server scripting, ensuring proper alert notifications, even after struggling with other options like Twilio.
-
Stopping WordPress User Registration Spam
Combatting the surge of user registration spam on WordPress, this guide introduces a code snippet to block registrations from specific email hostnames, offering an extra layer of protection against unwanted sign-ups.
-
Supercharge Your Clipboard with a Shell Function for iTerm2
Discover a nifty shell function tailored for iTerm2 on macOS, bridging the gap between your terminal and clipboard, making it seamless to copy content directly to your clipboard, even from remote servers.
-
More Garbage Sysadmin: Reboot Linux Server on Kernel Panic
Facing kernel panics on your Raspberry Pi? Dive into a less-than-ideal but efficient fix involving an automatic reboot using a startup script, ensuring your server recovers swiftly on kernel panics.
-
Gathering database performance with WP-CLI
Discover how we employed WP-CLI to streamline the assessment of database server performance in WordPress, facilitating a more efficient profiling of SQL queries before and after crucial server upgrades.
-
Get First Date of Week in Google Sheets, When the Week of the Year is Related to the Row Number
Discover how I used ChatGPT to devise a Google Sheets formula that returns the first date of the week based on a row number. This comprehensive guide breaks down each part of the formula, ensuring you can adapt it to your specific needs and track your daily or weekly tasks with ease.
-
Command Timing in ZSH
Dive into how you can enhance your ZSH experience by adding a snippet that measures the exact time it takes to process a command, right down to the millisecond! This guide provides a detailed walkthrough of the script, allowing you to integrate it with your .zshrc file.
All code on this site, unless otherwise mentioned, is licensed GPL v2 or later 🎉