Skip to content

Instantly share code, notes, and snippets.

View njh's full-sized avatar

Nicholas Humfrey njh

View GitHub Profile
@njh
njh / osa-10-icons-optimised.svg
Created February 3, 2020 18:10
10 of the OSA icons put together as an Inkscape Symbols file
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@njh
njh / _README.md
Last active October 7, 2023 20:25
Dual-stack VyOS Zone based Firewall Generator

Dual-stack VyOS Zone based Firewall Generator

A ruby script to generate the boilerplate for a dual-stack VyOS zone based firewall.

Zones:

  • PRIVATE: contains the LAN and WAN modem admin interface
  • PUBLIC: The Internet - contains the PPPoE interface
@njh
njh / Ofcom DAB Ensembles 2019-11-01.csv
Last active November 28, 2019 23:36
A list of DAB Ensembles (multiplexes) in the UK from Ofcom's TxParams dated 2019-11-01
Name Ensemble Area EID
Aberdeen Aberdeen C19A
Ayr Ayr C19B
BBC National DAB UK CE15
Berks & N Hants Berks & N Hants C1AD
Birmingham Birmingham C183
Bournemouth Bournemouth C19D
Bradfrd&Huddersf Bradford and Huddersfield C1A0
Bristol Bristol C18C
Cambridge Cambridge C1AF
@njh
njh / radioplayer-xml-to-csv.rb
Last active October 9, 2019 10:48
Make spreadsheet of services from a directory containing Radioplayer Service Information XML files
#!/usr/bin/env ruby
#
# A little script to read Radioplayer Service Information XML files from a directory and
# write one per row to a CSV file
#
# Input: radioplayer/*.xml
# Output: radioplayer_services.csv
#
require 'csv'
@njh
njh / normalise-loudness.rb
Last active December 18, 2021 18:51
Script to normalise a WAV file's loudness to specific LUFS using ffmpeg
#!/usr/bin/env ruby
#
# Script to normalise an audio file's loudness using ffmpeg
#
# Usage: normalise-loudness.rb <input.wav> <output.wav>
#
# License: https://unlicense.org/
#
# Requires the 'json' ruby gem:
#
@njh
njh / hasseb-aoe.sdp
Created May 27, 2019 20:56
AES67 SDP file generated by a hasseb Audio over Ethernet
v=0
o=- 1558990217032832 0 IN IP4 10.108.65.172
s=AES67-stream (on hasseb-AoE-87-AA) streamed by "hasseb"
t=0 0
a=clock-domain:PTPv2 0
a=recvonly
m=audio 5004 RTP/AVP 98
c=IN IP4 239.7.76.49/255
a=rtpmap:98 L24/48000/2
a=sync-time:0
@njh
njh / amss-uri-scheme
Last active March 15, 2019 18:29
IANA URI Scheme registrations for RadioDNS
Scheme name:
amss
Status:
Provisional
Applications/protocols that use this scheme name:
RadioDNS bearer URI for AM Signalling System (AMSS)
Contact:
@njh
njh / remove-voyage-wifi.sh
Created February 13, 2019 09:31
Commands to remove Wifi related packages and install PPPoE on Voyage Linux
apt remove --purge wireless-tools wpasupplicant wireless-regdb hostapd hostap-utils iw
apt remove --purge nocatsplash ebtables rpcbind
apt remove --purge libglib1.2ldbl libiw30 libtirpc1 pcmciautils
apt remove --purge libnl-3-200 libnl-genl-3-200 libnl-route-3-200
apt install ppp pppoe iproute
apt install mtr-tiny
@njh
njh / i386_vyos_defconfig
Created February 1, 2019 22:17
Linux Kernel Configuration for VyOS 1.2.0 on the i386 architecture
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 4.19.12 Kernel Configuration
#
#
# Compiler: gcc-4.9.real (Debian 4.9.2-10+deb8u2) 4.9.2
#
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=40902
@njh
njh / build-kernel
Created February 1, 2019 22:13
Shell script to build Linux kernel for VyOS 1.2.0 (modified to support i386)
#!/bin/bash
if [ ! -f "Makefile" ]; then
echo "Makefile missing, This script needs to be executed inside the vyos-kernel package directory"
exit 1
fi
if grep -Fxq "KBUILD_OUTPUT" Makefile; then
echo "Wrong Makefile?, This script needs to be executed inside the vyos-kernel package directory"
exit 1
fi