Adding latest changes
This commit is contained in:
15
bash/functions/gerardo/functions.sh
Normal file
15
bash/functions/gerardo/functions.sh
Normal 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
|
||||
}
|
Reference in New Issue
Block a user