Skip to content

Instantly share code, notes, and snippets.


Kenneth Finnegan PhirePhly

View GitHub Profile
PhirePhly / Notes.txt
Created May 26, 2022
Script to check x86-64 instruction set level for EL9 support
View Notes.txt
View waterminder.ino
// Kenneth Finnegan, 2021
// Atmega328P on breadboard with 8MHz crystal. Use the mini pro 3.3V 8MHz board
// Pin 11 is the LED output
// Digital Pins 2-5 are DIP switch for time config on boot
// Reset button restarts the timer
// Using
#include <LowPower.h>
PhirePhly / init
Last active Dec 21, 2020
Init script to go in the root of a Debian install for booting entirely from the initrd file
View init
# Kenneth Finnegan, 2020
# Huge thanks to for most of this code
set -x
set -e
# Create the mount points for all of the virtual file systems which don't
# actually map to disks, but are views into the kernel
View prettypatterns.bas
5 DEF FNA(Z) = 30 * EXP(-Z*Z/100)
100 CLS
110 FOR X = -30 TO 30 STEP 1.5
120 L = 0
130 Y1 = 5 * INT(SQR(900-X*X)/5)
140 FOR Y = Y1 TO -Y1 STEP -5
150 Z = INT(25 + FNA(SQR(X*X+Y*Y))-.7*Y)
160 IF Z<=L THEN 190
170 L = Z
PhirePhly /
Last active Sep 20, 2019
Conf files for BIND catalog files example
#!/usr/bin/env python3
import hashlib
import sys
print (hashlib.sha1([1]).to_wire()).hexdigest())
PhirePhly / etc_default_tayga
Last active Feb 4, 2019
Files for running a NAT64 daemon
View etc_default_tayga
# Defaults for tayga initscript
# sourced by /etc/init.d/tayga
# installed at /etc/default/tayga by the maintainer scripts
# Change this to "yes" to enable tayga
# Configure interface and set the routes up
PhirePhly /
Created Jan 16, 2019
A shell script fragment to generate a BIND ACL from an IRR object
# Using IRR and BGPQ3 to auto-generate BIND ACLs
# Kenneth Finnegan, 2019
# The IRR aut-num or as-set to generate the ACL off of
PhirePhly / quads.txt
Last active Jun 26, 2018
PTR records for all the quad octet IP addresses
View quads.txt
kenneth@shell:~$ for I in `seq 1 223`; do host $I.$I.$I.$I | grep -Ev '(^;;|NXDOMAIN|SERVFAIL)'; done domain name pointer domain name pointer domain name pointer domain name pointer domain name pointer domain name pointer domain name pointer domain name pointer domain name pointer
PhirePhly /
Created Apr 2, 2018
Adding caching to dedupe queries for Newgrabber
diff --git a/ b/
index 26230a6..1e346ff 100644
--- a/
+++ b/
@@ -11,6 +11,10 @@ import warcio
from warcio.archiveiterator import ArchiveIterator
from warcio.warcwriter import WARCWriter
+proxies = {
+ 'http': '',
View Jessie_Shelfie.tsv
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 3 columns, instead of 2. in line 1.
Designing Distributed Systems Brendan Burns
Computer Design Development: Principal Papers Earl Swartzlander Jr
Compiler Construction Indecipherable
Assembly Language Subroutines for MS-DOS Computers Leo Scanlon
Principles of Compiler Design (Dragon Book) Aho, Ullman
Linear System Theory: The State Space Approach Zadeh, Desoer
The Anatomy of a Compiler Lee
Computer Dictionary and Handbook Sippl
His Life Work Knuth