Skip to content

Instantly share code, notes, and snippets.

View PhirePhly's full-sized avatar

Kenneth Finnegan PhirePhly

View GitHub Profile
Title:
Examining Ambiguities in the Automatic Packet Reporting System
Abstract:
The Automatic Packet Reporting System (APRS) is an amateur radio
packet network that has evolved over the last several decades in
tandem with, and then arguably beyond, the lifetime of other VHF/UHF
amateur packet networks, to the point where it is one of very few
packet networks left on the amateur VHF/UHF bands. This is proving to
be problematic due to the loss of institutional knowledge as older
./qlib/qslist.c: In function ‘q_slist_prepend’:
./qlib/qslist.c:9:22: error: expected expression before ‘GSList’
new_list = qalloc (GSList, 1);
^
./qlib/qslist.c: In function ‘q_slist_is_empty’:
./qlib/qslist.c:18:10: error: expected expression before ‘QSList’
return QSList == NULL;
^
./qlib/qslist.c: In function ‘q_slist_free’:
./qlib/qslist.c:37:5: error: ‘cur’ undeclared (first use in this function)
@PhirePhly
PhirePhly / a
Last active August 29, 2015 14:07
Raw NEMA Sentences leaking into OT3m posits
2014-10-19 14:47:21 PDT: W6MAF-3>GPSSU3,W6MAF-1*,WIDE2-2,qAR,AK7V-1:$GPRMC,214714,A,3421.8222,N,11724.5430,W,6.8040,90.7,050395,,E*4C
2014-10-19 14:49:15 PDT: W6MAF-3>GPSSU3,WIDE1-1,WIDE2-2,qAR,AK7V-1:$GPRMC,214914,A,3422.2088,N,11724.2723,W,30.1320,359.6,050395,,E*41
2014-10-19 14:47:26 PDT: W6KWF-1>APOT30,WIDE2-1,qAR,AK7V-1:!3421.82N/11724.54Wk090/006 12.5V 146.535MHz
2014-10-19 14:49:19 PDT: W6KWF-1>APOT30,WIDE2-1,qAR,AK7V-1:!3422.20N/11724.27Wk359/030 12.5V 146.535MHz
@PhirePhly
PhirePhly / gist:a5514927ddba4a4ad1cc
Created October 10, 2014 00:31
Requested SSID scan at home
njord:~ kenneth$ sudo /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport scan
Password:
SSID BSSID RSSI CHANNEL HT CC SECURITY (auth/unicast/group)
5690 N Moccasin Trl 24:a2:e1:ec:54:e6 -85 11 Y US WPA2(PSK/AES/AES)
orchard-guest 2a:c6:8e:84:21:d9 -81 7 Y -- WPA2(PSK/AES/AES)
orchard 28:c6:8e:84:21:d8 -84 7 Y -- WPA2(PSK/AES/AES)
KWF-guest 2e:b0:5d:83:05:01 -30 11,-1 Y US NONE
KWF 2c:b0:5d:83:05:00 -31 11,-1 Y US WPA2(PSK/AES/AES)
Finnegan-Guest b8:e6:25:c6:a0:69 -64 6 N US WPA2(PSK/AES/AES)
ATT427 ac:5d:10:bc:da:aa -88 1 Y US WPA(PSK/AES,TKIP/TKIP) WPA2(PSK/AES,TKIP/TKIP)
wget -q http://musicforprogramming.net/rss.php -O - |
grep -o "http://.*\.mp3" |
sort -u |
while read URL; do wget -c $URL; done
@PhirePhly
PhirePhly / syslog
Created August 19, 2014 02:19
Problems with one of my ATA channels
Aug 18 19:06:06 thor kernel: [102499.392524] ata4.00: exception Emask 0x10 SAct 0x800200 SErr 0x400000 action 0x6 frozen
Aug 18 19:06:06 thor kernel: [102499.392530] ata4.00: irq_stat 0x08000000, interface fatal error
Aug 18 19:06:06 thor kernel: [102499.392534] ata4: SError: { Handshk }
Aug 18 19:06:06 thor kernel: [102499.392537] ata4.00: failed command: READ FPDMA QUEUED
Aug 18 19:06:06 thor kernel: [102499.392542] ata4.00: cmd 60/f0:48:00:60:ac/00:00:a6:00:00/40 tag 9 ncq 122880 in
Aug 18 19:06:06 thor kernel: [102499.392542] res 40/00:bc:00:b4:ac/00:00:a6:00:00/40 Emask 0x10 (ATA bus error)
Aug 18 19:06:06 thor kernel: [102499.392545] ata4.00: status: { DRDY }
Aug 18 19:06:06 thor kernel: [102499.392548] ata4.00: failed command: WRITE FPDMA QUEUED
Aug 18 19:06:06 thor kernel: [102499.392552] ata4.00: cmd 61/00:b8:00:b4:ac/04:00:a6:00:00/40 tag 23 ncq 524288 out
Aug 18 19:06:06 thor kernel: [102499.392552] res 40/00:bc:00:b4:ac/00:00:a6:00:00/40 Emask 0x10 (ATA bus error)
@PhirePhly
PhirePhly / squid.conf
Created August 1, 2014 07:08
Sloppy protocol StoreID rules for Steam CDN
# This creates an access control list to match Steam's CDN
acl steamcdn dstdomain .cs.steampowered.com
# Specify what program to pipe URL through
store_id_program /usr/local/bin/steamrewrite
# How many of them to spawn at once. No documentation on this
store_id_children 10 startup=3 idle=1 concurrency=0
# Specify the ACL for URLs to be mangled
store_id_access allow steamcdn
store_id_access deny all
#!/bin/sh
# WRT54G Mesh config script
# Kenneth Finnegan, 2014
HOSTNAME="WRTdefault"
SUBNET="10.44.254"
CHANNEL="11"
ESSID="KWF-mesh"
opkg update
@PhirePhly
PhirePhly / ntp.conf
Created May 28, 2014 20:19
Needed config lines for strata 1 NTP servers
# NEMA time from GPSd
server 127.127.28.0
fudge 127.127.28.0 refid GPS
# 1PPS from GPSd
server 127.127.28.1 prefer
fudge 127.127.28.1 refid GPS1
kenneth@odin:~$ ifconfig -a
em0 Link encap:Ethernet HWaddr 00:22:4d:ad:ad:be
inet addr:10.44.1.127 Bcast:10.44.1.255 Mask:255.255.255.0
inet6 addr: fe80::222:4dff:fead:adbe/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33044 errors:0 dropped:0 overruns:0 frame:0
TX packets:23402 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:38380796 (38.3 MB) TX bytes:1651076 (1.6 MB)
Interrupt:17 Memory:80020000-80040000