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 = 127.0.0.1
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.
mirror.init7.net tritt die Nachfolge von mirror.switch.ch an: https://twitter.com/init7/status/1057200188694163456?s=09
Meine Katze <3
chaos.social - because anarchy is much more fun with friends.
chaos.social 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.