How I Accidentally Polluted My Production Storage Bucket (And How to Fix It)A cautionary tale about Active Storage, environment credentials, and an unexpected Rails gotcha. The Setup Like many Rails developers, I occasionally need to debug production issues locally. The usual workflow: download a production database dump, lo...Jan 13, 2026·4 min read·12
How to Secure Your WordPress Admin with Cloudflare AccessSecuring the WordPress admin area is a critical step in protecting your site from brute force login attempts, bot scans, and other common exploits. While traditional security plugins help, using Cloudflare Access gives you a stronger, Zero Trust-base...Apr 16, 2025·4 min read·116
Preventing Unsafe Package Upgrades in package.jsonSome packages should not be updated past a certain version—whether due to breaking changes, compatibility constraints, or known bugs in newer releases. This script helps prevent unsupported upgrades and gives developers clear reasons why certain vers...Apr 10, 2025·3 min read·22
How to Secure and Stream Mega.nz WebDAV Content in Kodi via Cloudflare Zero TrustIf you want to securely access and stream your Mega.nz cloud storage via WebDAV using Cloudflare Zero Trust, while ensuring seamless playback in Kodi, this guide is for you. By leveraging Cloudflare Tunnel, WebDAV via MEGAcmd, and secure access polic...Feb 20, 2025·4 min read·890
Optimizing DietPi OS Boot TimeDietPi is a lightweight Debian-based operating system designed for minimal resource consumption, but its boot time can still be improved. By analyzing slow services and making targeted optimizations, you can significantly reduce the startup time of y...Feb 20, 2025·3 min read·707
How to Securely Fetch Unpublished CraftCMS Entries with a Custom API HeaderCraftCMS provides a robust GraphQL API for querying your content, but sometimes you need to tailor the API for different user roles. For example, you might want admins to fetch all entries (including unpublished ones) while the public can only see pu...Dec 3, 2024·4 min read·46
How to Calculate the Correct Amount with Stripe Fees IncludedWhen processing payments through Stripe, you need to account for their fees to ensure you receive the exact amount you want. The formula below calculates the total amount a customer should be charged, factoring in Stripe's fixed and percentage fees: ...Oct 16, 2024·1 min read·123