Quirks & tips

$ echo | openssl s_client -connect ${DOMAIN?}:443 2>/dev/null | openssl x509 -noout -text | grep DNS | sed -e 's/,/\n/g' -e 's/ //g'
$ kubectl proxy &
$ kubectl get namespace ${NAMESPACE?} -o json |jq '.spec = {"finalizers":[]}' >temp.json
$ curl -k -H "Content-Type: application/json" -X PUT --data-binary @temp.json 127.0.0.1:8001/api/v1/namespaces/${NAMESPACE?}/finalize
$ terraform apply -refresh-only
$ git commit --allow-empty -m "chore: trigger CI"
$ sudo setfacl --modify user:${USER?}:rw /var/run/docker.sock
$ xwininfo | grep "Window id:" | cut -d " " -f 4 | xargs xprop -id | grep _NET_WM_PID | cut -d " " -f 3 | xargs ps -o comm= -p
$ echo $(tr -dc 'A-Za-z0-9!@#?%=&' < /dev/urandom | head -c 32)
$ lsof -ti:8080 | xargs kill -9