Base64 with Powershell Cheat Sheet for use with powershell task automation framework. Encode [System.Convert]:: ToBase64String([System.Text.Encoding]:: UTF8.GetBytes("MY_PLAIN_TEXT")) Decode [System.Text.Encoding]:: UTF8.GetString([System.Convert]:: FromBase64String("MY_ENCODED_TEXT"))
Kubernetes Workloads Cheat Sheet for use with kubectl cli. Namespace Show all Namespaces kubectl get namespaces Get all resources per namespace kubectl get all -n [NAMESPACE] Delete namespace kubectl delete...
Kubernetes Cluster Cheat Sheet for use with kubectl cli. Nodes View Memory/Cpu Usage kubectl get nodes --no-headers | awk '{print $1}' | xargs -I {} sh -c 'echo {}; kubectl...
Azure Kubernetes Service (AKS) Cheat Sheet for use with kubectl cli. Credentials to access cluster az aks get-credentials --resource-group [RG] --name [CLUSTER] Browse az aks browse --resource-group [RG] --name [CLUSTER]
Docker Cheat Sheet for use with docker cli. System Version docker version Info docker info Stats docker stats -a System Components docker system df Prune all unused and dangling images...
Helm Cheat Sheet for use with helm cli. System View charts in local Helm helm search [KEYWORD] Inspect chart in local Helm helm inspect [REPO NAME]/[CHART NAME] --version [CHART VERSION]...
MongoDb Cheat Sheet for use with mongo shell. System Open mongo Satabases List show dbs Open use [DB NAME] Collections Create db.createCollection("[COLLECTION NAME]") Show show collections Records Insert db.[COLLECTION NAME].insert({item:...
cURL with Bash Cheat Sheet for use with bash shell. for each for ((i=1;i<=100;i++)); do curl -k "http://URL"; done; infinite (curl) while true; do curl -k "http://URL"; done; infinite (busybox)...
GCP Authentication Cheat Sheet for use with gcloud cli. Login with Service Account gcloud auth activate-service-account [SERVICE ACCOUNT EMAIL] --key-file="[KEY FILE NAME JSON]" List Accounts gcloud auth list
SSH Cheat Sheet for use with the SSH protocol. key generate ssh-keygen -t rsa -b 2048 login ssh -i [KEY] [USERNAME]@[MACHINE] file copy scp -i [KEY] -r [USERNAME]@[MACHINE]:[FROM] [TO]