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,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
}