Skip to content

Instantly share code, notes, and snippets.

View futzlarson's full-sized avatar

Ryan DuVal futzlarson

View GitHub Profile
@futzlarson
futzlarson / vapor-optimize-issue.md
Last active April 21, 2026 19:41
Vapor build: php artisan optimize caching wrong paths on all environments

Vapor php artisan optimize: original analysis was wrong

TL;DR

The previous version of this gist claimed php artisan optimize should be moved from build to deploy because cached views/routes contain wrong file paths. That's incorrect. Cached Blade views only contain path references in PHP comments (/**PATH ... ENDPATH**/), not in executable code. Laravel resolves paths dynamically at runtime.

Moving optimize to deploy actually breaks the deploy because Lambda's /var/task is read-only and event:cache/view:cache can't write there.

The standard Vapor template (optimize in build) is correct. Don't change it.

@futzlarson
futzlarson / volume-seed-gist.md
Last active April 14, 2026 20:55
php artisan app:volume-seed — realistic volume seeding for Laravel perf testing

php artisan app:volume-seed — realistic volume seeding for Care-Management perf testing

A Laravel Artisan command built for the Curitics Care-Management app to stress-test it at production scale and beyond. Generates N new patient records plus proportional related data (medication refills, conditions, care gaps, notes, tasks, plans) so performance benchmarks exercise the queries that actually get slow in prod.

Command lives at: app/Console/Commands/Performance/VolumeSeedCommand.php

Why we built it

Production had ~500K patients when this work started. The goal was to find out what happens at 1M, 3M, and beyond — before prod got there.

@futzlarson
futzlarson / asheville-shows.md
Last active June 14, 2026 16:45
🎵 Bands coming to Asheville this week — auto-generated from avlgo.com

🎵 Bands playing in Asheville this week

Week of Sun Jun 14 – Sun Jun 21, 2026

Updated each Sunday at 9 AM — up to 25 of the highest-scored upcoming shows on avlgo.com are selected (its event score weighs how rare, novel, and large-scale each event is), listed by date, and the top Spotify track for each headliner is added to the playlist.

Listen on Spotify      📤 Share this list

Date Artist Venue Spotify pick Tickets