Skip to content

Instantly share code, notes, and snippets.

@alexmuller
alexmuller / gist:7025455
Created October 17, 2013 14:02
Sensu check
/etc/sensu/community-plugins/plugins/graphite/check-data.rb -s graphite -u username -p password -t \"sumSeries\(stats.nginx.frontend-app-1_localdomain.spotlight_perfplat_dev.http_5*\)\" -w \"~:0\" -c \"~:0\" -n \"5xx_rate_spotlight.perfplat.dev\"
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?>
<?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:thr="http://purl.org/syndication/thread/1.0">
<title>russell davies</title>
<link rel="alternate" type="text/html" href="http://russelldavies.typepad.com/planning/"/>
<id>tag:typepad.com,2003:weblog-5918</id>
<updated>2014-01-19T18:32:36+00:00</updated>
<subtitle>"Extreme and sustained amiable weirdness"
about | flickr | pinboard | feed | archive</subtitle>
#!/usr/bin/env ruby
# Output:
# TSV
# hits_date.tsv
# date, count, status, host, path
dates = [
"2013-10-19",
"2013-10-20",
[
{
"userName": "alphagov",
"repo": "backdrop"
},
{
"userName": "alphagov",
"repo": "backdrop-collector"
},
{
https://www.performance.service.gov.uk/data/vehicle-licensing/failures?filter_by=type%3Asorn&group_by=reason&collect=count%3Asum&collect=description%3Aset&period=week&end_at=2014-03-10T00%3A00%3A00%2B00%3A00&start_at=2014-03-03T00%3A00%3A00%2B00%3A00
@-ms-viewport {
width: device-width; }
@-o-viewport {
width: device-width; }
@font-face {
font-family: GDS-Logo;
src: local("HelveticaNeue"), local("Helvetica Neue"), local("Arial"), local("Helvetica"); }
@alexmuller
alexmuller / keybase.md
Created April 22, 2014 20:03
keybase.md

Keybase proof

I hereby claim:

  • I am alexmuller on github.
  • I am alexmuller (https://keybase.io/alexmuller) on keybase.
  • I have a public key whose fingerprint is 56C1 6CB5 4B2D A7CC 5C1F 42CA 2078 2331 5847 57EC

To claim this, I am signing this object:

@alexmuller
alexmuller / scottish-widows-service-availability.md
Created April 23, 2014 21:42
Scottish Widows service availability

Service Availability: Access is normally 24 hours Monday to Saturday, with a ½ hour outage at 10pm, and 8am to 6pm on Sundays. However Plan for Life, Retirement Account, OEICs, ISAs and some Bonds are 8am to 8pm weekdays and 8am to 1pm Saturdays. The system may be unavailable from time to time for maintenance.

https://secure.scottishwidows.co.uk/frame.wpl/839

@alexmuller
alexmuller / gist:1bc46eb1921af4eab209
Created April 30, 2014 14:29
Non-200 URLs in Transactions Explorer (30 Apr 2014)
http://www.highways.gov.uk/business/31855.aspx is a redirect to http://www.highways.gov.uk/specialist-information/abnormal-loads/
http://www.hmrc.gov.uk/paye/index.htm is a redirect to somewhere weird
https://www.gov.uk/crb-criminal-records-bureau-check is a redirect to https://www.gov.uk/disclosure-barring-service-check
@alexmuller
alexmuller / README.md
Last active August 29, 2015 14:02
Register to vote integration with Performance Platform

Register to vote integrating with Performance Platform

The _timestamp in the JSON body represents the beginning of the period you're sending data for.

All of the data in a given data set (in your case, register-to-vote/volumetrics) must be the same granularity eg daily data.

To send us new data:

curl --request POST -d @age_band.json --header "Content-type: application/json" --header 'Authorization: Bearer BEARER_TOKEN' https://www.performance.service.gov.uk/data/register-to-vote/volumetrics