Terminal#

Try until success#

while ! (uv lock && uv sync --all-extras --inexact); do echo "Trying again in 10 sec.."; sleep 10; done

SSH#

Recipes for ssh.

Port forwarding#

ssh -o StrictHostKeyChecking=no -4fNL from-port:target:to-port user@remote-machine

Redirect PostegreSQL requests to localhost:5433 to port 5432 on a remote machine.

ssh -o StrictHostKeyChecking=no -4fNL 5433:localhost:5432 postgres@db-server.net