start new:
tmux
start new with session name:
tmux new -s myname
Located in alphabetical order (not prefer)
C
ab
), also designed as a more modern replacement, written in C
golang
)There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }
IL that git push -u origin my-new-branch is no more needed with push.autoSetupRemote : | |
git config --global --add --bool push.autoSetupRemote true | |
git config --global --add --bool pull.rebase true | |
git config --global --add --bool rebase.autoStash true | |
git config --global --add --bool fetch.prune true | |
# git undo | |
git config --global alias.undo '!f() { \ | |
git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; \ | |
}; f' => http://megakemp.com/2016/08/25/git-undo/ |
namespaces - overview of Linux namespaces http://man7.org/linux/man-pages/man7/namespaces.7.html
mount_namespaces - overview of Linux mount namespaces
Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.
This is just a picture of this link from March 2, 2019
Originally, I had included some other solution
#!/bin/bash -e | |
# Usage ./k8s-service-account-kubeconfig.sh ( namespace ) ( service account name ) | |
TEMPDIR=$( mktemp -d ) | |
trap "{ rm -rf $TEMPDIR ; exit 255; }" EXIT | |
SA_SECRET=$( kubectl get sa -n $1 $2 -o jsonpath='{.secrets[0].name}' ) |
You should install VirtualBox and Vagrant before you start.
You should create a Vagrantfile
in an empty directory with the following content:
/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉
~/.ssh/config
, set each ssh key for each repository as in this exemple: