Skip to content

Instantly share code, notes, and snippets.

View paulmaunders's full-sized avatar

Paul Maunders paulmaunders

View GitHub Profile
@paulmaunders
paulmaunders / nhs-england-covid-19-patients-last14days.sh
Created September 28, 2020 19:26
Last 14 days COVID-19 hospital patients in England
curl --compressed 'https://api.coronavirus.data.gov.uk/v1/data?filters=areaType=nation;areaName=England&structure=%7B%22date%22:%22date%22,%22hospitalCases%22:%22hospitalCases%22%7D&format=xml' | ggrep -Pio "<hospitalCases>\K([^<]+)" | perl -e "print reverse(<>)" | tail -n 14 | paste -sd "," -
@paulmaunders
paulmaunders / political-declaration.txt
Created October 17, 2019 12:00
Brexit Negotiations - Political Declaration
POLITICAL DECLARATION SETTING OUT THE FRAMEWORK FOR THE FUTURE RELATIONSHIP BETWEEN THE EUROPEAN UNION AND THE UNITED KINGDOM
INTRODUCTION
The European Union, hereafter referred to as 'the Union', and the United Kingdom of Great Britain and Northern Ireland, hereafter referred to as 'the United Kingdom', ('the Parties') have agreed this political declaration on their future relationship, on the basis that Article 50(2) of the Treaty on European Union (TEU) provides for the negotiation of an agreement setting out the arrangements for the withdrawal of a departing Member State, taking account of the framework for its future relationship with the Union. In that context, this declaration accompanies the Withdrawal Agreement that has been endorsed by the Parties, subject to ratification.
The Union and United Kingdom are determined to work together to safeguard the rulesbased international order, the rule of law and promotion of democracy, and high standards of free and fair trade and workers' rights, consumer and
@paulmaunders
paulmaunders / gist:3e2cbe02c07b6393f7ef0781eed9f97b
Last active May 8, 2019 03:44
Installing VirtualBox and Vagrant on CentOS 7
# Some notes from installing VirtualBox on CentOS 7.
# These exact steps haven't been tested, as I ran them in a different order when manually installing.
# Install dependencies
yum -y install gcc make patch dkms qt libgomp
yum -y install kernel-headers kernel-devel fontforge binutils glibc-headers glibc-devel
# Install VirtualBox
cd /etc/yum.repos.d
wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
@paulmaunders
paulmaunders / gist:68e107ccf18df2a0eda5249144b32a5c
Last active March 23, 2018 15:19
Air Navigation Order - Small unmanned surveillance aircraft
ANO 2016
Small unmanned surveillance aircraft
95.—(1) The person in charge of a small unmanned surveillance aircraft must not fly the aircraft in any of the circumstances described in paragraph (2) except in accordance with a permission issued by the CAA.
(2) The circumstances referred to in paragraph (1) are—
(a)over or within 150 metres of any congested area;
(b)over or within 150 metres of an organised open-air assembly of more than 1,000 persons;
(c)within 50 metres of any vessel, vehicle or structure which is not under the control of the person in charge of the aircraft; or
(d)subject to paragraphs (3) and (4), within 50 metres of any person.
@paulmaunders
paulmaunders / gist:a0decc1d92d760a1f3a6975d907b26b5
Last active March 23, 2018 15:13
Air Navigation Order - Small unmanned aircraft
ANO 2016
Small unmanned aircraft
94.—(1) A person must not cause or permit any article or animal (whether or not attached to a parachute) to be dropped from a small unmanned aircraft so as to endanger persons or property.
(2) The person in charge of a small unmanned aircraft may only fly the aircraft if reasonably satisfied that the flight can safely be made.
(3) The person in charge of a small unmanned aircraft must maintain direct, unaided visual contact with the aircraft sufficient to monitor its flight path in relation to other aircraft, persons, vehicles, vessels and structures for the purpose of avoiding collisions.
(4) The person in charge of a small unmanned aircraft which has a mass of more than 7kg excluding its fuel but including any articles or equipment installed in or attached to the aircraft at the commencement of its flight, must not fly the aircraft—
" Softtabs, 2 spaces
set tabstop=2
set shiftwidth=2
set shiftround
set expandtab
" Syntax highlighting
syntax on
@paulmaunders
paulmaunders / keybase.md
Created October 6, 2016 10:28
Keybase Proof

Keybase proof

I hereby claim:

  • I am paulmaunders on github.
  • I am paulmaunders (https://keybase.io/paulmaunders) on keybase.
  • I have a public key whose fingerprint is C846 6696 C03F ADD6 DAAC B5A1 D571 462F 3D68 9C85

To claim this, I am signing this object: