add "eternal" bash history, fix ssh-agents auth sock which was completely broken

This commit is contained in:
2022-01-14 12:44:35 -05:00
parent 8dd0abb090
commit 0fcef9985d
2 changed files with 40 additions and 3 deletions

18
00_aliases Normal file
View File

@@ -0,0 +1,18 @@
function ts() {
date +%Y-%m-%d_%H:%M:%S
}
function check_ssl {
if [[ -z "$1" ]]; then
printf 'usage:\n\ncheck_ssl SITE <port>\n' >&2
return 1
else
site="$1"
fi
if [[ -z "$2" ]]; then
port=443
else
port="$2"
fi
echo | openssl s_client -showcerts -servername "$site" -connect "$site":"$port" 2>/dev/null | openssl x509 -inform pem -noout -text
}