• Capturing MacOS Settings Changes

    Let 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!

    Something 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…

  • How To Restrict User to Self Posts in WordPress

    To secure our private site while using a third-party WordPress REST API integration, I restricted the plugin user to its own posts with user_has_cap and allowed access to its revisions. I also used posts_results to mark non-qualifying posts as private. Here’s a sample implementation for similar needs.

  • Setting up Pibooth in 2024

    Let’s go on an Open Source adventure to build a photo booth!

  • Silly Ideas: Cache WordPress Excerpts

    Let’s explore dumb ideas around caching parts of WordPress we shouldn’t.

  • Garbage Sysadmin: Easily Make CIFS Mounts

    Automating your CIFS mounts: the perfect mix of efficiency and potential chaos.

  • WordPress Performance: Caching Navigation Menus

    Accelerate your WordPress site by caching wp_nav_menu().

  • BUTTS

    echo $(echo 66 85 84 84 83 | awk ‘{for(i=1;i<=NF;i++) printf “%c”, $i}’)

  • Bash Script: Calculate before/after 2: Calculate Harder

    I’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.