Category: Dev Stuff
-
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.
-
Bash Script: Calculate before/after 2: Calculate Harder
in Dev StuffI’ve updated my script to test URL performance during changes, measuring the Time to First Byte (TTFB). The script now records initial and subsequent TTFB to determine update impact, displaying percentage change—a helpful tool for reporting.
-
Matrix Reimagined: Crafting Digital Rain with Bash and ChatGPT
in Dev StuffExploring the creation of a Matrix Digital Rain effect in the terminal using ChatGPT-4, this post delves into coding a unique bash-based version, complete with Japanese Katakana and extended ASCII characters.
-
Quick Tip: Add Screen Name to Bash Prompt
in Dev StuffDiscover how to effortlessly enhance your shell prompt with screen session names, a simple yet powerful tweak for SSH sessions.
-
Bash Script: Calculate before/after averages
in Dev StuffOptimize your performance testing with a little bash script that computes average percent changes quickly.