Adi boosted

Make your Bash scripts detect more errors, add this line early in a script:

`set -eu -o pipefail`

`set -e` makes the script fail if a command exits with a non-zero exit status.

`set -u` lets the script fail when you're trying to use not yet defined variables.

`set -o pipefail` will pass on the error from a failed piped command, e.g. `false | true` will then fail, where it would have succeeded otherwise. This one is not available in dash, but in busybox' ash it is.

A simple way to browse the web with the IPv4 address of a remote machine:

Install and configure:
sudo apt install tsocks
cat << EOF > ~/.tsocks.conf
server =
server_type = 5
server_port = 1080

Run in a shell:
ssh -D 1080 myotherhost

Run in another shell:
tsocks firefox -P myotherprofile --no-remote

WARNING: IPv6 connections are not proxied.

Adi boosted

Successfully upgraded a Debian strech from i386 to amd64 ... remotely ... with only a statically linked busybox as a safety net.

Adi boosted - because anarchy is much more fun with friends. is a small Mastodon instance for and by the Chaos community surrounding the Chaos Computer Club. We provide a small community space - Be excellent to each other, and have a look at what that means around here.
Follow @ordnung for low-traffic instance-related updates.
The primary instance languages are German and English.