Skip to content

Instantly share code, notes, and snippets.

Going underground

Dominic Sayers dominicsayers

Going underground
Block or report user

Report or block dominicsayers

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
View festival

Referees' briefing

Hello to all coaches attending the Blackheath FC Mini Rugby Festival. At some point during the day you may be asked to referee one or more matches. There will be a referees' briefing for each age group prior to play starting at 10am which you should attend but here are some notes you might like to consider.

Included are some general guidelines for all age groups but also there are a few age-group specific things below that bear repeating.

1. Communication

Whatever your level of experience of refereeing, the players and coaches will appreciate knowing what's going on. If you blow the whistle to stop play, make sure all the players know why you've blown the whistle. If an offence has occurred, miming the offence to the coaches and others watching will help if they're out of earshot.

View festival

Festival format

Here is some information about the matches you'll be playing and what to expect on the day.

We will be running the festival in accordance with the guidelines provided by the RFU in Regulation 15 and its associated Codes of Practice from here:

Just so you don't have to wade through all these documents, here is a summary of the parts relevant to our festival:

1. Playing time


Keybase proof

I hereby claim:

  • I am dominicsayers on github.
  • I am dominicsayers ( on keybase.
  • I have a public key whose fingerprint is 76C1 4574 2AD0 556B 6A8C E0BB CCE0 0232 4697 17D6

To claim this, I am signing this object:

dominicsayers /
Last active Jan 26, 2016
Green padlock development with nginx

Your production web site is delivered over SSL and has a beautiful green padlock in your users' browsers. But your dev environment uses plain old HTTP, or maybe SSL with a self-signed certificate that your browser doesn't recognise.

That's OK, but you're missing out on some nice stuff. For instance, some browsers will warn you if you're delivering mixed content over SSL (like a link to an image that's on plain old HTTP). If you don't see this until you release then you're not doing your users any favors.

So here's how I got my dev environment to give me a green padlock while I'm writing code:

1. Register a dev domain

Domains are pretty cheap these days. I registered a new domain for my dev environment - let's call it

dominicsayers / GET
Last active Apr 20, 2016
Mailchimp API v3 - problem creating an interest in an interest_category using API v3
View GET

Firstly, we'll GET the interest_category to demonstrate the api_key is OK:

  • Method: GET
  • URL:
  • Request headers: Authorization: apikey df8658fb18403e29ef4a8437a8eb3705-us11


  "interests": [
dominicsayers / sublime-text-settings.js
Last active Aug 17, 2017
Sublime Text 3 personal settings
View sublime-text-settings.js
"folder_exclude_patterns": [".git", "coverage", "cache", "uploads"],
dominicsayers / preferences.js
Last active Aug 29, 2015
Sublime Text preferences
View preferences.js
// The number of spaces a tab is considered equal to
"tab_size": 2,
// Set to true to insert spaces when tab is pressed
"translate_tabs_to_spaces": true,
// Set to true to removing trailing white space on save
"trim_trailing_white_space_on_save": true,
dominicsayers / cloudmailin-mailapp.json
Created Jun 6, 2015
JSON sent by Cloudmailin (sent from OS X Mail app - Bcc header not set)
View cloudmailin-mailapp.json
"headers": {
"Return-Path": "",
"Received": [
"by wibut5 with SMTP id ut5so50815534wib.1 for <>; Sat, 06 Jun 2015 14:31:21 -0700",
"from [] ( []) by with ESMTPSA id q4sm16773563wju.14.2015. (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 06 Jun 2015 14:31:20 -0700"
"Date": "Sat, 06 Jun 2015 22:31:18 +0100",
"From": "Dominic Sayers <>",
"To": "To1 <>, To2 <>",
dominicsayers / cloudmailin-gmail.json
Last active Aug 29, 2015
JSON sent by CloudMailin (sent from Gmail - Bcc header is set)
View cloudmailin-gmail.json
"headers": {
"Received": [
"by lbio15 with SMTP id o15so1647431lbi.1 for <>; Sat, 06 Jun 2015 08:19:30 -0700",
"by with HTTP; Sat, 06 Jun 2015 08:19:30 -0700"
"Date": "Sat, 06 Jun 2015 16:19:30 +0100",
"From": "Dominic Sayers <>",
"To": "To1 <>, To2 <>",
"Cc": "Cc1 <>, Cc2 <>",
irb -rubygems -I lib -r foreplay.rb
You can’t perform that action at this time.