Category
Coder Notes
44 posts tagged #Coder Notes
- · 2 min read
Using NextDNS to Test an AWS ALB Before DNS Cut-Over
If you need to test a site sitting behind an AWS Application Load Balancer before a DNS cut-over, NextDNS makes it incredibly easy. Instead of messing with local hosts files or network configs, you can share a simple configuration ID with teammates or clients and have them testing the new environment in minutes.

- · 1 min read
Installing Laravel Forge CLI on macOS
Once installed, the Forge CLI gives you quick terminal access to your Laravel Forge servers and sites. Just make sure your $PATH is configured right — most issues I’ve run into came from that one step being skipped.

- · 1 min read
The PHP 8.5 Pipe Operator (|>): Useful, but Watch for These Gotchas
I have been eagerly waiting for the pipe operator ever since I first encountered it in the RFC proposals years back. Finally, with the release of PHP 8.5 yesterday, I had the chance to put the implementation into practice. Here are a few things worth noting.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 26 Tahoe
Create a very robust, clean, and fast local multi-version PHP (8.2, 8.3, 8.4, 8.5) development environment on macOS 26 Tahoe.

- · 2 min read
Using DBngin Alongside Homebrew
I’ve been using Homebrew for a long time to install MySQL and other databases on my Mac. But now DBngin is changing my mind.

- · 1 min read
Fixing Safari Mixed Content Issues with Vite and mkcert
Safari blocks Vite’s hot module reload (HMR) when your Laravel app runs over HTTPS but Vite serves plain HTTP. Here’s how I fixed it with mkcert, a separate dev-only Vite config, and one extra package.json script.

- · 1 min read
Quick Fix: Nginx PID Errors on macOS (Apple Silicon + Homebrew)
If you run Nginx on an Apple Silicon Mac using Homebrew, you may see errors after a reboot caused by a stale /opt/homebrew/var/run/nginx.pid. I wrote a small ZSH script to remove the stale PID, restart Nginx, and confirm it’s actually serving traffic.

- · 1 min read
Shiki: A Fresh Look at Syntax Highlighting
Mintlify’s switch from Highlight.js to Shiki fixed their Vue.js syntax highlighting issues. If you’ve struggled with code blocks in Highlight.js, Shiki is worth checking out.

- · 1 min read
PHP Operators App
PHP Operators is a reference guide for operators old and new in the PHP programming language.

- · 1 min read
Understanding the Computer Fraud and Abuse Act (CFAA) — What Developers Should Know
I'm not a lawyer, and this is not legal advice. But if you write code or work on websites, you need at least a basic understanding of the Computer Fraud and Abuse Act (CFAA) — U.S. Code Title 18, Section 1030.

- · 1 min read
Scaling Laravel (Repost)
Mateus Guimarães shares how they scaled a Laravel app to handle 30,000 requests/sec and 100M+ jobs, with clear, practical insights on database tuning, queue optimization, and architecture choices.

- · 1 min read
JavaScript Bloat in 2024 (Repost)
Nikita Prokopov’s post “JavaScript Bloat in 2024” is a refreshingly honest look at how modern websites have traded simplicity and performance for layers of unnecessary JavaScript.

- · 1 min read
Fixing Border Radius Clipping with CSS contain: paint;
It’s not a magic bullet, but in layout fights, contain: paint; can win the round if the need fits the solution that the CSS property contains.

- · 3 min read
Link Share: Issue #5
I have quite a build-up of links to share. It's been a while, so some may be old news, but it's still worth posting. Grab a coffee and enjoy!

- · 5 min read
How to Configure PHP Memory and PHP-FPM for Scalable Performance on 8, 16, and 32+ GB Servers
Learn how to configure PHP memory limits and PHP-FPM settings for 8GB, 16GB, and 32GB servers to maximize concurrency, avoid swap usage, and scale your app efficiently without wasting memory.

- · 1 min read
Back Up Your Dev Folder on macOS with rsync
Use rsync on your Mac to efficiently back up your project folder while skipping unnecessary files like node_modules, vendor, logs, and caches.

- · 3 min read
Curious about AI? Start here
A thoughtful starting point for understanding AI—its promise, its risks, and how to use it wisely in a world it’s rapidly reshaping.

- · 1 min read
Laravel and the Evolution of Open Source: Adapting to a Changing World
Open source isn’t 'free'—it’s accessible code that needs cash to evolve. Laravel proves it: as passwords fade and users demand phone-friendly logins like Google or Apple, features expire. Small teams must adapt to shifting expectations or drown in tech debt. 'Free' always has a cost.

- · 1 min read
How to Install Puppeteer/Chrome on a Laravel Forge Server with Unbuntu v24
This step-by-step guide covers verifying Node.js, installing Puppeteer globally, updating package repositories, and setting up required system dependencies for smooth headless Chrome execution.

- · 1 min read
CRDT: The Key to Seamless Data Synchronization in Distributed Systems
CRDTs, or Conflict-free Replicated Data Types, are a solution for keeping data consistent when multiple devices or users make changes at the same time.

- · 1 min read
How to Fix Washed Out Colors in Google Chrome Screenshots for Clear and Accurate Images
Resolve washed-out colors in Chrome screenshots by enabling the sRGB color profile via chrome://flags/#force-color-profile or using the --force-color-profile=srgb argument in Puppeteer.

- · 1 min read
Figma Component Properties made SIMPLE (Variants, Boolean, Text, Instance)
Variants are the unsung heroes of Figma design systems, streamlining how we handle components with multiple states or versions.

- · 1 min read
Unlock PHP's Built-In REPL for Faster Debugging
Have you ever wished for a simpler way to test snippets of PHP code on the fly? If so, it's time to meet the built-in PHP REPL (Read-Eval-Print Loop).

- · 2 min read
How to Set Up a Custom ChatGPT Action for Your WordPress Blog
Integrating ChatGPT with your WordPress blog just got easier. With the power of the WordPress REST API and ChatGPT’s custom action capabilities, you can now create a seamless workflow for fetching, summarizing, and interacting with your blog posts.

- · 1 min read
How to Authenticate WordPress with Application Passwords for ChatGPT
Generate Base64-encoded credentials for Basic Authentication effortlessly in a single command using PHP's -r flag.

- · 2 min read
Laravel 11 Migrations: Best Practices for Stability and Scalability
Learn the top best practices for writing Laravel 11 migrations, including avoiding dynamic table names, separating schema from data migrations, and blocking down method rollbacks in production. Build resilient and maintainable database migrations for your application.

- · 2 min read
How to Use Transmit with SFTP and a Bastion Host
Learn how to configure Transmit to connect to an SFTP server via a bastion host with easy-to-follow steps and SSH configurations.

- · 1 min read
Securing Sensitive Data in Laravel: Leveraging PHP's #[SensitiveParameter] Attribute
Here's a tip for Laravel developers. In PHP 8.2, you can use the #[\SensitiveParameter] attribute to mark sensitive parameters in your Eloquent model methods.
![Securing Sensitive Data in Laravel: Leveraging PHP's #[SensitiveParameter] Attribute](https://kevdees.com/uploads/2024/07/q-mh2zk9ngc.jpg)
- · 1 min read
Optimizing Database Queries in Laravel: The Power of Eager Loading
Use Laravel eager loading to optimize database queries and avoid the N+1 query problem.

- · 2 min read
How to Add A WordPress Custom Login Logo
Do you want your WordPress site's logo applied to the login screen? Do you want the logo to link back to your homepage? Are you using a theme with or without full site editing?

- · 1 min read
Want BIMI? Get Ready To Spend Money.
BIMI might seem like a great idea, but you must be prepared to spend $1500 a year for a certificate and register your intended logo for Trademark.

- · 2 min read
Shopify Dawn Theme v15 Update
The Shopify Dawn theme version 15 has been out for over a week. This excites me because I'm a big fan of using Dawn for your Shopify store. Why?

- · 2 min read
Never use "-all" for SPF Records
Use ~all or ?all instead of -all in SPF records to avoid email delivery failures and improve security.

- · 2 min read
How To Install GA4 On Shopify Using Customer Events, Pixels, and GTM
To add Google Analytics 4 to the Shopify checkout process using customer events with a custom pixel, use the code snippet on this page.

- · 1 min read
How To Add GA4 Purchase Conversion Tracking To Shopify
Add GA4 purchase conversion tracking to your Shopify store using Google Analytics scripts.

- · 7 min read
Install Nginx & Multiple PHP Versions on macOS 15 Sequoia
Create a very robust, clean, and fast local multi-version PHP (8.0, 8.1, 8.2, 8.3, 8.4) development environment on macOS 15 Sequoia.

- · 2 min read
Is It Worth Changing Your WordPress Login URL?
No. As a security measure, I do not advise changing the login URL of your WordPress website, so it is hard to find.

- · 1 min read
Herd for PHP Developers on Mac
Herd is a native Laravel and PHP development environment for macOS with built-in PHP and nginx.

- · 1 min read
Start Homebrew Installed Version of NGINX When macOS Boots
Configure NGINX to automatically start on macOS boot using Homebrew services.

- · 1 min read
The M1 macOS Bash PHP Functions I Use
I have several bash functions that come in handy every day when working in PHP on my M1 Mac. Enjoy!

- · 1 min read
Deep Learning. An Edge Case Fix For Laravel.
A little journal entry and lesson learned. Push through hard problems to learn deeply.

- · 1 min read
What Is New in PHP 8.2
December 8th, 2022, is a day away! Which means it is time to get excited about PHP 8.2.

- · 2 min read
How To Add Google Customer Reviews to Shopify Checkout
To add Google Customer Reviews to your Shopify site, you need to take serval steps within Google Merchant Center and Shopify.

- · 1 min read
How To Clear PHP-FPM Logs Daily On macOS (M1 Chipset)
To clear your php-fpm logs daily set up a CRON job to run the following script.
