Category: Dev Stuff
-
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.
-
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.
-
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.
-
Quick Tip: Bash CLI params
While working on a bash script, I stumbled upon what I think may be the cleanest and simplest way to add CLI params to a bash script so far: This lets you use short (-V), long (–version), space separated (–user john), and equal separated (–user=john) arguments. It’s not perfect, but for a quick bash script…
-
Nano: The One True Editor
Forget about vi/vim/edlin. Nano is the only editor that you need in the console. Sure, it may not be perfect, but with a few extra steps in .nanorc it can really be a great experience. Here’s my .nanorc with some comments showing what’s changed:
-
Quick Tip: Export WordPress SQL output via WP-CLI
If for some reason you can’t run wp db query, but need to export SQL output to a CSV or other file, then have a look at this small WP-CLI command I whipped up that should allow this: I’d add an example here, but I don’t have any right now that I can share 😐…
-
phpMyAdmin and MariaDB with Docker
I used to run a MariaDB server on an old Linux machine for working with database dumps and other things, but after moving all of that to a new Raspberry Pi 4, I never really set it back up. So instead I thought I’d play with this fancy new Docker stuff all the cool kids…