master
Karchnu 2023-06-26 12:50:35 +02:00
parent efcf811633
commit 0b5db1314f
1 changed files with 20 additions and 0 deletions

20
Makefile Normal file
View File

@ -0,0 +1,20 @@
all:
DOMAIN ?= karchnu.fr
get-certificate-info:
openssl s_client -connect $(DOMAIN):443
show-connected-ipv4:
@# Don't forget the double $$ since we are in a Makefile.
@netstat -n -p tcp | drop-until tcp | awk '{print $$5}' | cut -d. -f 1-4 | sort | uniq
detect-volume:
ffmpeg -i $(SRC) -af "volumedetect" -vn -sn -dn -f null /dev/null
PORT ?=
which-bin-uses-this-port:
fstat | grep ':$(PORT)'
MAIL_DOMAIN ?= mail.karchnu.fr
verify-mail-certificate:
echo | openssl s_client -starttls smtp -showcerts -connect $(MAIL_DOMAIN):587 -servername $(MAIL_DOMAIN) | openssl x509 -noout -dates