Skip to content

Instantly share code, notes, and snippets.

View geecontact's full-sized avatar

LGee geecontact

View GitHub Profile
@geecontact
geecontact / check-certs.sh
Last active December 15, 2023 06:39 — forked from cgmartin/check-certs.sh
Bash SSL Certificate Expiration Check
#!/bin/bash
DOMAINS="list.txt" # list of domains
RECIPIENT="mail@mail.com" # address to send report
DAYS="7"
while read -r TARGET; do
echo "checking if $TARGET expires in less than $DAYS days";
expirationdate=$(date -d "$(: | openssl s_client -connect "$TARGET":443 -servername "$TARGET" 2>/dev/null \
| openssl x509 -text \
@geecontact
geecontact / ddns_updater.rsc
Created April 28, 2022 14:45 — forked from luispaulorsl/ddns_updater.rsc
Mikrotik/RouterOS Script to update DDNS on No-IP (noip.com)
# No-IP DDNS Updater
# http://www.noip.com/integrate/
:global publicIP;
:global abortUpdate;
:if ([:typeof $abortUpdate] != "bool") do={
:set $abortUpdate false;
}