💻 Freelance web developer.
📡 This is a technology related account.
🔒 The account is locked to prevent bots, but I highly encourage you to send follow requests!
Had I known about the https://tailwindcss.com/docs/font-variant-numeric#tabular-figures I would not try to import custom monospaced font..facepalm
I have found a way how to make sure the tests in Laravel picks up if your defined job was properly scheduled, preventing accidental commented out lines and such. Here's a guide
This is a nice example, sed replacement written in rust called sd, respecting .gitignore via fd (a find replacement)
sd 'from "react"' 'from "preact"' $(fd --type file)
I know, when I ssh somewhere unknown there is a high possibility these modern replacements are not there, so keeping the basics (sed, find, grep, ...) under the belt still pays off, but one can never know too many tools.
I have found myself in the need to manually run jobs that are used for app maintenance like discarding or logs or pruning dangling records, so I documented ways to do it in Laravel 8.
I had some problems using array keys with reduce in Laravel, but managed to solve it in the end. There are some unexpected insights (to me at least), that I summed up in the article.
Note to schools that have a BYOD policy (for the record, I'm against them, as they amplify inequity), if my child brings a Linux-powered computer to your school, it will be sufficient. If it isn't, it's your systems that have to change, not our computer. If you don't know what I'm talking about, consider this: https://davelane.nz/explainer-digitech-risks-school-boards (relevant even for those outside NZ).
There's an npm package for that, or using stop-only with Husky 7.0. Very basic guide.
Nice tip here, <leader>e to edit a word_between_underscores