crontab add oneliner
(crontab -l; echo "0 */4 * * * ls")| crontab -
external IP to environment variable
export EXTERNAL_IP=$(dig @resolver1.opendns.com ANY myip.opendns.com +short)
Adding a secret to environment variable without echoing to console
crontab add oneliner
(crontab -l; echo "0 */4 * * * ls")| crontab -
external IP to environment variable
export EXTERNAL_IP=$(dig @resolver1.opendns.com ANY myip.opendns.com +short)
Adding a secret to environment variable without echoing to console
# Install Time Machine service on CentOS 7 | |
# Updated for netatalk 3.1.12 | |
# install required packages for compiling from source | |
yum install -y rpm-build gcc make wget | |
# install Perl-IO-socket dependency for netatalk 3.1.12 | |
yum install -y perl-IO-Socket-INET6 perl-interpreter perl-generators libxslt | |
# install netatalk |
terraform plan -no-color | grep -E '(^.*[#~+-] .*|^[[:punct:]]|Plan)' | |
https://github.com/hashicorp/terraform/issues/10507 |
$ alias mvn='docker run -it -v $(pwd):$(pwd) -w $(pwd) maven:3.6-jdk-8-alpine mvn' | |
$ mvn clean package |
#!/bin/sh | |
d=$(date '+%Y.%m.%d_%H%M') | |
export ANSIBLE_LOG_PATH=./ansible-run-$d.log | |
$@ |
### Keybase proof | |
I hereby claim: | |
* I am aidmax on github. | |
* I am aidmax (https://keybase.io/aidmax) on keybase. | |
* I have a public key ASCZG53ke4W_8hxwrpmXwaO7bXLtt0vJAgmCHeMOtXCjkAo | |
To claim this, I am signing this object: |
I hereby claim:
To claim this, I am signing this object:
kind: Cluster | |
apiVersion: kind.x-k8s.io/v1alpha4 | |
kubeadmConfigPatches: | |
- | | |
kind: ClusterConfiguration | |
networking: | |
dnsDomain: "dev.local" |
socat is one love 🖤 | |
Need a TCP reverse proxy? This one-liner starts a TCP server on IP1:PORT1 that forwards all incoming conns to IP2:PORT2: | |
``` | |
socat tcp-listen:8080,bind=0.0.0.0,reuseaddr,fork tcp:localhost:80 | |
``` | |
Super handy when you need to expose a private server quickly |