Simon Tunaitis
tunaitis.bsky.social
Simon Tunaitis
@tunaitis.bsky.social
Regex lookahead assertions come in handy when you need to ensure multiple conditions are met anywhere in a string, in no particular order.

Example: Matching User-Agent strings that contain both Chrome and Mobile 👇

(?=.*Chrome)(?=.*Mobile).*

#regex
December 6, 2024 at 8:06 PM
Discovered a great Cloudflare feature today.

PageSpeed warned me about oversized app icons (512-1024px) when showing them at 80px.

Quick fix: insert "/cdn-cgi/image/width=80,quality=100/" into your image URLs and Cloudflare will resize them on the fly 🚀

#buildinpublic
December 5, 2024 at 5:51 PM
I look for every reason not to return to work on Regex Forge, and today was no different.

Rather than pushing it closer to launch, I ended up adding a GitHub-style activity calendar to All Mac Apps 🎉

#buildinpublic
December 4, 2024 at 5:46 PM
I used to back up my SQLite DB to a Hetzner volume but switched to Cloudflare R2 today.

Hetzner volumes cost extra and are limited to a single datacenter.

I wrote a rolling backup script to upload backups to any S3-compatible storage.

Link to the gist 👇

#buildinpublic
December 3, 2024 at 7:45 PM