Adding latest changes

This commit is contained in:
Gerardo J. Puerta
2022-09-13 07:11:59 -05:00
parent b7fd37ba13
commit a15b47444a
5 changed files with 62 additions and 3 deletions

View File

@ -0,0 +1,6 @@
alias kubeazdev="kubectl config use-context moon-dev-enoc-link-k8s"
alias kubeazstaging="kubectl config use-context moon-staging-enoc-link-k8s"
alias kubeazprod="kubectl config use-context moon-prod-enoc-link-k8s"
alias updateazdev="az aks get-credentials --name moon-dev-enoc-link-k8s --resource-group moon-dev-enoc-link-rg"
alias updateazprod="az aks get-credentials --name moon-prod-enoc-link-k8s --resource-gro up moon-prod-enoc-link-rg"
alias updateazstaging="az aks get-credentials --name moon-staging-enoc-link-k8s --resour ce-group moon-staging-enoc-link-rg"

View File

@ -0,0 +1,15 @@
function check_cert {
curl --insecure -v https://$1 2>&1 | awk 'BEGIN { cert=0 } /^\* SSL connection/ { cert=1 } /^\*/ { if (cert) print }'
}
function cert_fingerprint {
openssl s_client -connect $1 |& openssl x509 -fingerprint -noout | awk -F '=' '{print $2}' | sed -e 's/://g' | tr [:upper:] [:lower:]
}
function vman {
vim <(man $1);
}
function cpu {
ps -Ao user,comm,pid,pcpu,pmem,rss --sort=-pcpu | head -n 6
}

View File

@ -1,6 +1,6 @@
# Use common parameters for ssh into servers
function sph {
function sph {
sshpass -p spr1ngw4t3r ssh \
-o ChallengeResponseAuthentication=no \
-o HostbasedAuthentication=no \