Base usefull commands - 2017-07-21 07:35:01

Kubernetes Merging kubeconfig files: KUBECONFIG=~/.kube/config:second.cfg kubectl config view --merge --flatten > config Extracting a context from a kubeconfig file: KUBECONFIG=~/.kube/config kubectl config view \ --minify --flatten --context=context-1 > config Docker Mount portworx volume to the empty container docker run -it --rm --volume-driver pxd -v name=hublndstaging:/data alpine sh Unix Filesystem Remove files that is older than 7 days with specified file mask find /data/ -mtime +7 -name "*.gz" -exec rm {} \; Git base workflow Drop unused branches.

Git Gpg Verification - 2017-08-12 19:20:06

GPG and git on MacOS Setup Install Create or import a key – see below for Run gpg -K to see all private keys in current machine, use the key ID for the next step (each gpg key has subkeys with different capabilities, its better to choose subkey with sign S) Configure git to use GPG – replace the key with the one from gpg --K git config --global gpg.