Author: Derrick
-
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…
-
Capturing MacOS Settings Changes
in MacOSLet me get this right out. I upgraded to MacOS 15 beta and it totally borked my machine. I had to do a full, fresh reinstall. Totally my fault, and I should have prepared better. So now, I’m trying to remember to capture my personal settings so I can use a shell script to restore…
-
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…
-
Setting up Pibooth in 2024
Let’s go on an Open Source adventure to build a photo booth!
-
Silly Ideas: Cache WordPress Excerpts
in WordPressLet’s explore dumb ideas around caching parts of WordPress we shouldn’t.
-
Garbage Sysadmin: Easily Make CIFS Mounts
in Dev StuffAutomating your CIFS mounts: the perfect mix of efficiency and potential chaos.
-