Tag: command-line
-
Rescuing Tampermonkey Scripts from a LevelDB Backup
Join me as I recover my Tampermonkey scripts from the bowles of a dead Chrome profile.
-
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…
-
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…
-
-
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.
-
Supercharge Your Clipboard with a Shell Function for iTerm2
in Dev StuffDiscover 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.
-
Gathering database performance with WP-CLI
in WordPressDiscover 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.