Exec preserving terminal options:
$ docker exec -ti --env COLUMNS=`tput cols` --env LINES=`tput lines` ...
## Enable --tls substitution for helm tls-enabled commands | |
# | |
helm() { | |
_context=$(kubectl config current-context) | |
if [ -d "${HELM_HOME:-$HOME/.helm}/tls/$_context" ]; then | |
export HELM_TLS_CA_CERT="${HELM_HOME:-$HOME/.helm}/tls/$_context/ca.cert.pem" | |
export HELM_TLS_CERT="${HELM_HOME:-$HOME/.helm}/tls/$_context/cert.pem" | |
export HELM_TLS_KEY="${HELM_HOME:-$HOME/.helm}/tls/$_context/key.pem" | |
export HELM_TLS_ENABLE="true" | |
fi |
#!/bin/sh | |
#FreeDNS updater script | |
(which wget > /dev/null) || { echo "wget not found"; exit 1; } | |
(which nslookup > /dev/null) || { echo "nslookup not found"; exit 1; } | |
# FREEDNS_APIKEY (loginid|password -> SHA1) | |
DYNLIST=$(wget -qO- http://freedns.afraid.org/api/?action=getdyndns&sha=${FREEDNS_APIKEY}) | |
NAME="$1" |