If `apt update` fails because a repository changed its release metadata, you can explicitly accept the change with:
`sudo apt update --allow-releaseinfo-change`
Useful after a legitimate repository metadata update.
In Laravel, the once function executes the given callback once and caches its result in memory for the duration of the request. Subsequent calls with the same callback return the cached result.
Check if a remote server can be reached on a particular port:
nc -vz 216.239.38.120 80
> -v โ verbose, -z โ scan without sending data
#macOS#Linux#bash
Accidentally switched Claude Code to auto-mode and want to go back?
Set `permissions.defaultMode` to default in your settings.
This restores the standard permission behavior where Claude asks for approval when needed.
On macOS, if you have a long-running process and don't want your Mac to fall asleep, run `caffeinate -i`
`-i` prevents idle system sleep while still allowing the display to turn off
How to completely remove issued letsencrypt certificate for a domain #Linux#SSL
sudo certbot delete --cert-name name-of-your-domain
> Also you don't need to revoke a certificate before deleting it just allow it to expire.
If macOS โSystem Dataโ is eating your disk space, a few places worth checking as a web developer:
~/Library/Caches โ JetBrains, Yarn, Cypress, Playwright
~/Library/Containers โ Docker
~/Library/Developer โ Xcode simulators
/Library/Developer โ CoreSimulator caches