This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import random | |
import re | |
import time | |
from datetime import datetime, timedelta | |
from prometheus_client import generate_latest, start_http_server, Gauge | |
COMMENT_RE = r"^\s*\#.*$" | |
# LETTER = random.choice(string.ascii_letters) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logFile="email_$(date --iso-8601).log" | |
subject="Status - RPi Alpha - $(date --iso-8601)" | |
rpiAddress="" | |
rpiAddressPass="" | |
from="$rpiAddress" | |
to="" | |
smtpServer="smtp.gmail.com:587" | |
outputFile="info.log" | |
echo "Info for $(date --iso-8601)" > $outputFile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Getting 64 bit setup from Cygwin source." && wget -N https://cygwin.com/setup-x86_64.exe && chmod +x setup-x86_64.exe && echo "Upgrading all packages." && ./setup-x86_64.exe -nqg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Meant to be used along with Cygwin, on Windows. | |
:: Place this in '.bat' file, and drop it in the 'Startup' folder on Windows to get this to run at startup. | |
bash --login -c "curl -s \"http://ipv6-test.com/api/myip.php\" | email -s \"External IP Address\" email_address@email.com" |