Skip to content

Instantly share code, notes, and snippets.

View helushune's full-sized avatar
🏳️‍🌈

helushune

🏳️‍🌈
View GitHub Profile
@helushune
helushune / etc-initd-fcgiwrap
Last active February 21, 2022 14:49
Smokeping on nginx with fcgiwrap
#!/bin/sh
### BEGIN INIT INFO
# Provides: fcgiwrap
# Required-Start: $remote_fs
# Required-Stop: $remote_fs
# Should-Start:
# Should-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: FastCGI wrapper
service {
dhcp-server {
disabled false
dynamic-dns-update {
enable true
}
global-parameters "key rndc-key { algorithm HMAC-MD5; secret paste_your_ddns_secret_here; };"
global-parameters "zone home.local. { primary 10.1.2.2; key rndc-key; }"
global-parameters "ddns-domainname "home.local.";"
global-parameters "ddns-rev-domainname "in-addr.arpa.";"
firewall {
all-ping enable
broadcast-ping disable
group {
network-group LAN_NETWORKS {
description "LAN Networks"
network 10.0.0.0/8
}
network-group rfc1918 {
network 10.0.0.0/8
@helushune
helushune / Seattle.fmr
Last active November 23, 2016 04:26
Updated radio preset list for Rockbox for Seattle
88500000:KNKX - Jazz, Blues, NPR News
89500000:KNHC - "C-89.5 FM" - Dance
90300000:KEPX - UW Public/College Radio
90700000:KESR - Independent Public Radio
91300000:KBCS - Bellevue College Radio
92500000:KQMV - Top 40
92900000:KISM - Classic Rock
93300000:KPWK - "Seattle's #1 Hit Music" - Rap/Hip-Hop/Pop
94100000:KMPS - Country
94900000:KUOW - NPR (UW)
@helushune
helushune / Seattle.fmr-alternative
Created November 23, 2016 04:35
An alternative version of Seattle.fmr for Rockbox
88500000:88.5 - KNKX - Jazz, Blues, NPR News
89500000:89.5 - KNHC - Dance
90300000:90.3 - KEPX - UW Public/College Radio
90700000:90.7 - KESR - Independent Public Radio
91300000:91.3 - KBCS - Bellevue College Radio
92500000:92.5 - KQMV - Top 40
92900000:92.9 - KISM - Classic Rock
93300000:93.3 - KPWK - Rap/Hip-Hop/Pop
94100000:94.1 - KMPS - Country
94900000:94.9 - KUOW - NPR (UW)
@helushune
helushune / erx_snmp.conf
Created February 17, 2017 04:49
EdgeRouterX collectd snmp
LoadPlugin snmp
<Plugin snmp>
<Data "ifmib_uptime">
Type "uptime"
Table false
Instance "system"
Values "SNMPv2-MIB::sysUpTime.0"
</Data>
<Data "ucdsnmpmib_laloadint">
Type "load"
@helushune
helushune / checkip.py
Created March 29, 2017 02:45
Quick Bottle app for pfsense acceptable IP check
from bottle import Bottle, request, error, run
app = Bottle()
@app.route('/')
def hello():
client_ip = request.environ.get('HTTP_X_FORWARDED_FOR')
return ['Current IP Address: {}\n'.format(client_ip)]
app.run(host='127.0.0.1', port=8080)