- C-a == Ctrl-a
- M-a == Alt-a
:q close
:w write/saves
:wa[!] write/save all windows [force]
:wq write/save and close
| #utils | |
| alias k='kubectl' | |
| alias aparecium='jq -r ".data |= (. |map_values(@base64d))"' | |
| #namespace | |
| alias knl='kubectl get ns' | |
| alias kn='kubectl config set-context --current --namespace' | |
| #context | |
| alias kcl='kubectl config get-contexts' | |
| alias kc='kubectl config use-context' |
| #!/usr/bin/env sh | |
| #Delete in all namespaces (Evicted pods) | |
| kubectl get po --field-selector=status.phase==Failed --all-namespaces --no-headers -o=custom-columns=k:kind,n:.metadata.name,ns:.metadata.namespace|while read k n ns;do kubectl delete $k/$n -n $ns; done | |
| #Delete specific namespace | |
| kubectl get po --field-selector=status.phase==Failed -n ${NAMESPACE} --no-headers -o=custom-columns=k:kind,n:.metadata.name,ns:.metadata.namespace|while read k n ns;do kubectl delete $k/$n -n $ns; done |
This is a step-by-step guide on how to create a GPG key on keybase.io, adding it to a local GPG setup and use it with Git and GitHub.
Although this guide was written for macOS, most commands should work in other operating systems as well.
There's a video published by Timothy Miller explaining some parts of this guide. Discussion on Hacker News.
Note: If you don't want to use Keybase.io, follow [this guide][1] instead. For manually transferring keys to different hosts, check out this [answer on Stack Overflow][2].
I hereby claim:
To claim this, I am signing this object:
| function minikube() { | |
| if [[ $1 == "profile" ]]; then | |
| case $2 in | |
| list ) | |
| current=`grep -oP '(?<="profile": ")[^"]*' $HOME/.minikube/config/config.json` | |
| profiles=`ls -1 $HOME/.minikube/profiles` | |
| echo -n "* $current" | |
| if [[ '' == `echo $profiles|grep $current` ]]; then | |
| echo -n " (not created)" | |
| fi |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| # import config. | |
| # You can change the default config with `make cnf="config_special.env" build` | |
| cnf ?= config.env | |
| include $(cnf) | |
| export $(shell sed 's/=.*//' $(cnf)) | |
| # import deploy config | |
| # You can change the default deploy config with `make cnf="deploy_special.env" release` | |
| dpl ?= deploy.env | |
| include $(dpl) |