Cheatsheets

k8s

  • Show all resources in namespace
    `kubectl api-resources -o name | xargs -I {} kubectl get {} --show-kind --ignore-not-found`

     

  • port fwd with selector
    kubectl port-forward -n xxx "$(kubectl get -n xxx pod --selector=nginxhello=app -o jsonpath='{.items..metadata.name}')" 4040

     

Links

https://awesome-go.com/ – goLang goodies

Commands

  • Remove all comments from vim console
    g/\v^(#|$|;)/d