Category: Dev Stuff
-
A Trio of Pibooth Plugins
Wherein I developed three plugins for Pibooth: fullscreen toggle, WordPress upload, and custom processing.
-
Rescuing Tampermonkey Scripts from a LevelDB Backup
Join me as I recover my Tampermonkey scripts from the bowles of a dead Chrome profile.
-
Stop WordPress From Sending Emails (And Log Them Too!)
A plugin that blocks emails for certain users and logs all email attempts in WordPress.
-
Automatic Admin Login for WordPress, A Really Bad Idea
This content presents a PHP snippet that forces automatic login to a WordPress site as the admin user. While it may be useful for local environments and testing existing data, it is strongly discouraged for production use due to security risks.
-
Get OctoPrint Status via Bash
in Dev StuffI’m working on a module to add OctoPrint status to my zsh prompt, which I’ll probably write about in the future as a bigger post about my prompt customizations. To start with that though, I need to play around with accessing the API via curl. So here’s my super alpha version that will request the…
-
Syntax Highlighting SQL in Terminal
in Dev StuffDo you ever find yourself doing some debugging with error_log() or its friends? Does that debugging ever involve SQL queries? Are you tired of staring at grey queries all the time? I have just the product for you! Introducing Syntax Highlighting SQL in Terminal! Brought to you by our friends at Large Language Models, Incorporated,…
-
Super Simple OpenAI PHP Class
in Dev StuffI’ve been playing around with hooking up ChatGPT/Dall-E to WordPress and WP-CLI. To do this, I whipped up a super simple class to make this easier: I can generate images and get back text from the LLM. Here’s some examples ChatGPT made to show how you can use these: Example 1: Generating an Image This…
-
PHPCS Anywhere!
in Dev StuffSomething that I do often is run PHPCS on code I’m working on, almost always inside a git repository. Even more likely is that PHPCS was installed via composer, which means it will live in $GIT_ROOT/vendor/bin. So I always end up doing something like ../../../vendor/bin/phpcs file.php which is hugely annoying. Which is why I made…
-
Garbage Sysadmin: Easily Make CIFS Mounts
in Dev StuffAutomating your CIFS mounts: the perfect mix of efficiency and potential chaos.