Skip to content

Instantly share code, notes, and snippets.

View njh's full-sized avatar

Nicholas Humfrey njh

View GitHub Profile
@njh
njh / bbc_tv_trasmitter_stations_2008.csv
Created April 14, 2020 08:28
A list of UK TV Transmitter Stations from the BBC
Site Name Abbrev NGR Region PSB1 Channel PSB1 Power 1 PSB2 Channel PSB2 Power PSB3 Channel PSB3 Power
Addingham ABP SE07594921 Yorkshire 43 0.005 46 0.005 50 0.005
Aislaby AIS NZ86300870 Tyne Tees 45 0.008 49 0.008 42 0.008
Aldbourne ALB SU26207520 Meridian 21 0.002 24 0.002 27 0.002
Aldeburgh ADB TM44175960 Anglia 23 10 28 10 25 10
Alexandra Palace AP TQ29669006 London 54 0.013 58 0.013 61 0.013
Allenheads ALH NY84004690 Tyne Tees 21 0.002 24 0.002 27 0.002
Alston ALN NY73094785 Tyne Tees 42 0.08 45 0.08 49 0.08
Alton AN SU72223862 Meridian 53 0.002 57 0.002 60 0.002
Armagh AMH NV99230399 Ulster 45 0.024 49 0.024 42 0.024
@njh
njh / cloud.svg
Created March 4, 2020 18:03
A simple SVG of a cloud by Nicholas Humfrey. License: https://creativecommons.org/licenses/by/4.0/
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 February 3, 2020 18:10
10 of the OSA icons put together as an Inkscape Symbols file
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