Skip to content

Instantly share code, notes, and snippets.

View voodoojello's full-sized avatar

Mark voodoojello

View GitHub Profile
@voodoojello
voodoojello / nx-backup.sh
Created May 4, 2014 04:07
This script will create a datestamped LZMA2 tarball of the current NxFilter state suitable for long-term backups, disaster recovery, or software upgrades.
#!/bin/sh
#
# NxFilter Stateful Backup
# Mark Page [m.e.page_at_gmail.com]
# modified: Sat May 3 07:40:51 CDT 2014
#
# This script will create a datestamped LZMA2 tarball
# of the current NxFilter state suitable for long-term
# backups, disaster recovery, or software upgrades.
#
@voodoojello
voodoojello / nxfilter.conf
Created May 4, 2014 04:11
NxFilter Upstart Config
#
# nxfilter.conf - NxFilter Upstart Config
# modified: Sun Apr 27 15:59:13 CDT 2014
# Mark Page [m.e.page_at_gmail.com]
#
description "NxFilter"
author "Mark Page [m.e.page_at_gmail.com]"
#
# Note: Upstart event logging for most Debian-based
@voodoojello
voodoojello / make-shalla-rpz.pl
Last active July 4, 2023 22:50
Shallalist to DNS RPZ - A script to convert selected Shallalist categories (domains) and build an RPZ zone file for BIND DNS
#!/usr/bin/perl -w
#
# Shallalist to DNS RPZ
# Author: Mark Page [m.e.page_at_gmail.com]
# Modified: Sun May 11 06:19:05 CDT 2014
#
# Examples:
# perl make-shalla-rpz.pl (no arg, creates NXDOMAIN CNAME ".")
# perl make-shalla-rpz.pl A 192.168.2.1 (creates "A" redirect)
# perl make-shalla-rpz.pl CNAME nowhere.local (creates "CNAME" redirect)
@voodoojello
voodoojello / auto_therm.lua
Last active June 15, 2016 13:58
LUUP: AutoTherm - Set Thermostats by Inside/Outside Temp, Humidity, and Time of Day
module("auto_therm", package.seeall)
--
-- LUUP: AutoTherm - auto_therm.lua
-- Set Thermostats by Inside/Outside Temp, Humidity, and Time of Day
--
-- Authored: Mark Page [m.e.page_at_gmail.com]
-- Modified: Sat Mar 21 21:22:37 CDT 2015
--
-- Tested on Vera Lite - UI7 Version 7.0.2 (1.7.439)
-- Tested on Vera Edge - UI7 Version 7.0.5 (1.7.1018)
@voodoojello
voodoojello / dhcp_update_route53.pl
Last active November 16, 2019 12:54
A *really* basic AWS Route 53 Dynamic DNS Updater in Perl
#!/usr/bin/perl
#
# AWS Route 53 Dynamic DNS Updater
# (c)2014 Mark Page [[email protected]]
# Wed Dec 31 08:35:56 CST 2014
#
use strict;
use warnings;
use LWP::Simple qw(!head);
use WebService::Amazon::Route53;
@voodoojello
voodoojello / heat-index.pl
Last active August 29, 2015 14:21
Perl Heat Index Calculation
#!/usr/bin/perl
#
use strict;
use warnings;
my $tf = $ARGV[0]; # Temperature in degrees Fahrenheit
my $rh = $ARGV[1]; # Abs. Relative Humidity
my $hi = -42.379 + 2.04901523 * $tf
+ 10.14333127 * $rh
@voodoojello
voodoojello / ubuntu-touch-tester.sh
Last active June 5, 2020 07:37
A simple Bash script for caching and testing Ubuntu Touch channels on Nexus devices. See https://developer.ubuntu.com/en/start/ubuntu-for-devices/installing-ubuntu-for-devices/ for dependencies.
#!/bin/bash
#
# ubuntu-touch-tester.sh
#
# A simple script to cache and install available
# Ubuntu Touch images on select Nexus devices.
#
# For more info see:
# https://developer.ubuntu.com/en/start/ubuntu-for-devices/devices/
#
@voodoojello
voodoojello / apwsd.pl
Last active June 5, 2020 12:01
This is a hack Perl script to scrape data from the Ambient Weather ObserverIP "Live Data" web interface, process and merge data from the NOAA Aviation Weather ADDS Text Data Server and the Ambient Weather API, then dump the whole mess to JSON that can be used in conjunction with home automation APIs (e.g. SmartThings Device Handler) to provide I…
#!/usr/bin/perl
#
# PWS/METAR Polling Daemon II
# ==================================================
# Modified: Fri Nov 29 15:35:26 2019 -0600
# Authored: Mark Page [[email protected]]
# Version: 19.11.29.15
#
# Run this script via cron
#
@voodoojello
voodoojello / i3-config
Last active May 29, 2020 18:09
i3 config files tweaked for Adwaita-Dark
#--------------------------------------------------------------------------
# i3 Config - Thu Aug 16 09:47:16 2018 -0500
# Tweaked for Adwaita-Dark (https://www.gnome-look.org/p/1014995/)
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
# keybind vars
#--------------------------------------------------------------------------
# shift Shift_L (0x32), Shift_R (0x3e)
# lock Caps_Lock (0x42)
Verifying my Blockstack ID is secured with the address 1MHwssu5bcza9123Ti1VcupmC1YUGfaxd5 https://explorer.blockstack.org/address/1MHwssu5bcza9123Ti1VcupmC1YUGfaxd5