lsof -i | grep -E "(ESTABLISHED)" | grep -v "localhost" | awk '{print $1, $8, $9}'
I used to sift trough my shell history and bookmarks every time I set up a new testing server in order to be able to send mails. So this should help...
Be aware don't use ssmtp
anymore. It's unmaintained and has been removed
from Debian
and Ubuntu will most definitely follow suit.
#!/usr/bin/env bash | |
command -v docker >/dev/null 2>&1 || { echo >&2 "I require Docker but it's not installed. Aborting."; exit 1; } | |
echo "Basic auth for traefik >= v1.7" | |
read -p "User: " USER | |
read -p "Password: " PW | |
# Pull httpd:alpine image (small and includes httpasswd) | |
docker pull httpd:alpine >/dev/null 2>&1 |
This very detailed guide was originally written by Chris Faulds and used to be available at cfdesign.work/derancilio. Unfortunately, his website is no longer online. Thanks to the Wayback Machine the article is still readable. But since the presentation is a bit wonky, I decided to mirror his awesome tutorial is this gist.
Chris has spent a huge amount of time writing an in-depth instruction on how to take the machine apart, which may also come in handy for other repairs for the Dedica 680/685. Again all credits go to him. Thanks a lot for the great work!
Monday 1st August 2016
#!/usr/bin/env bash | |
# Forward list of ports from TCP6 to TCP4 | |
if ! [ -x "$(command -v socat)" ]; then | |
echo 'Error: socat is not installed.' >&2 | |
exit 1 | |
fi | |
ports=(80 443) |
#!/usr/bin/env bash | |
ls /etc/prometheus/*.yml \ | |
| entr bash -c "promtool check config /etc/prometheus/prometheus.yml \ | |
&& curl -X POST 'http://localhost:9090/-/reload'" |
#!/usr/bin/env bash | |
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | |
me="$(basename "$(test -L "$0" && readlink "$0" || echo "$0")")" | |
DYNV6_APIBASE="https://dynv6.com/api/v2/zones" | |
DYNV6_TOKEN=${DYNV6_TOKEN} | |
DYNV6_CNAME_RECORD=${DYNV6_CNAME_RECORD} | |
dynv6_zone_name="" | |
check_dependencies() { | |
# look for required binaries (taken straight from dehydrated) |