Skip to content

Instantly share code, notes, and snippets.

Nicholas Humfrey njh

Block or report user

Report or block njh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@njh
njh / cloud.svg
Created Mar 4, 2020
A simple SVG of a cloud by Nicholas Humfrey. License: https://creativecommons.org/licenses/by/4.0/
View cloud.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@njh
njh / osa-10-icons-optimised.svg
Created Feb 3, 2020
10 of the OSA icons put together as an Inkscape Symbols file
View osa-10-icons-optimised.svg
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 Feb 1, 2020
Dual-stack VyOS Zone based Firewall Generator
View _README.md

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 Nov 28, 2019
A list of DAB Ensembles (multiplexes) in the UK from Ofcom's TxParams dated 2019-11-01
View Ofcom DAB Ensembles 2019-11-01.csv
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 Oct 9, 2019
Make spreadsheet of services from a directory containing Radioplayer Service Information XML files
View radioplayer-xml-to-csv.rb
#!/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 Jul 16, 2019
Script to normalise a WAV file's loudness to specific LUFS using ffmpeg
View normalise-loudness.rb
#!/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
AES67 SDP file generated by a hasseb Audio over Ethernet
View hasseb-aoe.sdp
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 Mar 15, 2019
IANA URI Scheme registrations for RadioDNS
View amss-uri-scheme
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 Feb 13, 2019
Commands to remove Wifi related packages and install PPPoE on Voyage Linux
View remove-voyage-wifi.sh
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 Feb 1, 2019
Linux Kernel Configuration for VyOS 1.2.0 on the i386 architecture
View i386_vyos_defconfig
#
# 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
You can’t perform that action at this time.