pbcopy < ~/.ssh/id_rsa.pub
Read more...Commands
Kubernetes: Force recreate a pod
kubectl get pod [POD] -n coral -o yaml | kubectl replace –force -f –
Read more...Kubernetes: Get deployments with current image version
kubectl get deployments -n [NAMESPACE] -o wide
Read more...Kubernetes: List pods from all namespaces
kubectl get pods –all-namespaces
Read more...Kubernetes: List all pods in a namespace
kubectl get pods -n [NAMESPACE]
Read more...Kubernetes: Display pod’s logs
kubectl logs -n [NAMESPACE] [POD]
Read more...Setting GitHub token for Bundler (Ruby)
export BUNDLE_GITHUB__COM=x-access-token:[TOKEN]
Read more...Benchmarking in a loop (Ruby)
loop { puts Benchmark.measure{ Rails.cache.data.keys(‘*’) } }
Read more...Pushing a tag to GitHub repo
git tag -a v1.0.2 -m “Description” git push origin v1.0.2
Read more...Removing AWS ElastiCache Redis instance
aws elasticache delete-cache-cluster –cache-cluster-id [INSTANCE_NAME]
Read more...