This file contains hidden or 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
#!/usr/bin/env python | |
import socket | |
import re | |
## https://tools.ietf.org/html/rfc3912 | |
def whois_request(domain, server, port=43): | |
_sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
_sock.connect((server, port)) | |
_sock.send("%s\r\n" % domain) |
This file contains hidden or 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
#!/usr/local/bin/php-cgi -f | |
<?php | |
require_once('functions.inc'); | |
$opts = get_options(); | |
$dyndns = &$config['dyndnses']['dyndns'][get_dyndns_id_by_host($opts['dyndns'])]; | |
// This system must be master to enable specified dyndns hostname. |
This file contains hidden or 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
#!/usr/local/bin/php-cgi -f | |
<?php | |
/* | |
Performs 802.1x authentication on a pfSense system. | |
# php wpa_auth.php --hash testpass123 | |
1efb50581482d84f9e57737b846a32b0 | |
# php wpa_auth.php --interface vmx2 --identity myusername --password 1efb50581482d84f9e57737b846a32b0 |
This file contains hidden or 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
*/15 * * * * /usr/local/bin/docker-compose -f /home/docker/mystack/docker-compose.yaml -f /home/docker/mystack/docker-compose.volumes.yaml -f /home/docker/mystack/docker-compose.networks.yaml exec --user www-data nextcloud bash -c "php -f /var/www/html/cron.php" |
This file contains hidden or 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
#!/usr/bin/env sh | |
# This script uses smartctl to report current temperature and health of all disks as a JSON array. | |
# It can be used on FreeNAS systems with telegraf's exec input. | |
# | |
# Example telegraf.conf input: | |
# | |
# [[inputs.exec]] | |
# name_override = "diskhealth" | |
# commands = ["/path/to/diskstatus.sh"] |
This file contains hidden or 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
location ^~ /musicbrainz/ { | |
set $musicbrainz_upstream musicbrainz; | |
set $musicbrainz_baseurl /musicbrainz; | |
rewrite /musicbrainz(.*) /$1 break; | |
proxy_pass http://$musicbrainz_upstream:5000; | |
proxy_set_header Accept-Encoding ""; | |
proxy_set_header Host $host; | |
proxy_set_header X-Real-IP $remote_addr; | |
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |