Skip to content

Instantly share code, notes, and snippets.

@thibaultserti
Last active January 19, 2024 14:31
Show Gist options
  • Save thibaultserti/e2de194a076ebdd509baf3f3e690ebf1 to your computer and use it in GitHub Desktop.
Save thibaultserti/e2de194a076ebdd509baf3f3e690ebf1 to your computer and use it in GitHub Desktop.
for i in {1..20};do mkdir $i; done

.vimrc

set number
set paste

Aliases

alias ka='kubectl apply -f'
alias kd='kubectl delete -f'

alias kubectx='kubectl config use-context'
alias kubens='kubectl config set-context --current --namespace '
function context(){ echo $(kubectl config current-context)@$(kubectl describe sa default | grep Namespace); }

export do="--dry-run=client -o yaml"
export rm="--restart=Never --rm -i"
export now="--force --grace-period 0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment