Skip to content

Instantly share code, notes, and snippets.

@voodoojello
voodoojello / unifi-ap-status.pl
Created January 5, 2022 20:08
Unifi AP Status Checker
#!/usr/bin/perl
#
# Unifi AP Status Checker w/email notification
# (c)2022 Mark Page [mark@very3.net]
#
use strict;
use warnings;
use LWP::UserAgent;
use Email::Sender::Simple qw(sendmail);
@voodoojello
voodoojello / etbu-custom.css
Last active September 1, 2019 12:21
ETBU Canvas Tweaks
/*
** Modified: Sun Sep 01 07:18:33 2019 -0500
*/
/*
** Mobile login tweaks
*/
.mobileLogin-Header {
z-index: 1;
background-image: url(https://instructure-uploads.s3.amazonaws.com/account_85450000000000001/attachments/355741/login-logo.png) !important;
@voodoojello
voodoojello / res
Created January 26, 2019 21:31
Variable resolution launcher for Sommelier
#!/bin/bash
#
#----------------------------------------------------------
# Variable resolution launcher for Sommelier
#----------------------------------------------------------
#
if [ "$1" == "" ]; then
echo "Usage: res [0-9] [app] [args], exiting..."
elif [ "$1" -gt 9 ]; then
echo "Scale should be 0-9, exiting..."
@voodoojello
voodoojello / certbot-dns-aws.pl
Created October 22, 2018 17:04
Certbot DNS Vaildator for AWS Route53 (w/pkcs12 packager)
#!/usr/bin/perl
#
# Certbot DNS Vaildator for AWS Route53 (w/pkcs12 packager)
# ----------------------------------------------------------
# Author: Mark Page [mark@very3.net]
# Modified: Mon Oct 22 12:01:39 2018 -0500
# Requires: awscli, cerbot, openssl
#
# References:
# https://certbot.eff.org/docs/using.html
@voodoojello
voodoojello / ks0212.py
Last active October 16, 2018 17:04
A simple Python3 HTTP/CGI or CLI script for setting / reading GPIO pin states with the KS0212 keyestudio RPI 4-channel Relay Shield
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
#
#-------------------------------------------------------------------------------
# KS0212 keyestudio RPI 4-channel Relay Shield CLI/CGI Interface
#-------------------------------------------------------------------------------
# A simple Python3 HTTP/CGI or CLI script for setting/reading GPIO pin states
# with the KS0212 keyestudio RPI 4-channel Relay Shield. Tested on Raspberry
# Pi 3 Model B Plus Rev 1.3 running Raspbian GNU/Linux 9.
#-------------------------------------------------------------------------------
@echo off
::
:: VNC Connect Detector
:: --------------------------------------------------
:: Detects incoming VNC connections on set TCP port
:: on Windoze computers. Plays a beep (waveform) and
:: logs to file on detection.
::
cls
echo ==================================================================
@voodoojello
voodoojello / vim-build.sh
Last active April 22, 2019 22:35
Vim build script for Debian derivatives (8.1)
#!/bin/bash
#
# Vim build script for Debian derivatives (8.1)
#-----------------------------------------------------------
# Modified: Mon Apr 22 22:32:32 2019 +0000
# Author: Mark Page [mark@very3.net]
#
# This script will remove all existing Vim executables
# and libraries and build the latest release from source.
# Scripting support for Ruby, Python, Perl and Lua has
Verifying my Blockstack ID is secured with the address 1MHwssu5bcza9123Ti1VcupmC1YUGfaxd5 https://explorer.blockstack.org/address/1MHwssu5bcza9123Ti1VcupmC1YUGfaxd5
@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)
@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 [m.e.page@gmail.com]
# Version: 19.11.29.15
#
# Run this script via cron
#