Skip to content

Instantly share code, notes, and snippets.

View dominicsayers's full-sized avatar
☣️
I'm back

Dominic Sayers dominicsayers

☣️
I'm back
View GitHub Profile

Keybase proof

I hereby claim:

  • I am dominicsayers on github.
  • I am dominicsayers (https://keybase.io/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
dominicsayers / GET interest_category.md
Last active April 20, 2016 15:38
Mailchimp API v3 - problem creating an interest in an interest_category using API v3

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

  • Method: GET
  • URL: https://us11.api.mailchimp.com/3.0/lists/e73f5910ca/interest-categories/bc914b7356/interests
  • Request headers: Authorization: apikey df8658fb18403e29ef4a8437a8eb3705-us11

Response:

{
  "interests": [
irb -rubygems -I lib -r foreplay.rb
@dominicsayers
dominicsayers / rails-4.2-upgrade.md
Created March 12, 2015 13:07
Upgrading from Rails 3.2 to Rails 4.2

I Googled an upgrade guide and read two or three before starting. Useful information.

This page just lists the things I didn't find in the upgrade guides.

Asset pipeline

  • Static files Rails 4.2 doesn't serve static files by default, and config.serve_static_assets is deprecated. Instead you need to set the environment variable RAILS_SERVE_STATIC_FILES to true in the production environment.

Rspec

I upgraded to Rspec 3.2. Things to note:

@dominicsayers
dominicsayers / phantomjs.md
Last active November 21, 2016 01:59
Installing PhantomJS on Ubuntu

(updated version of http://www.joyceleong.com/log/installing-phantomjs-on-ubuntu/)

  1. export P=phantomjs-2.1.1-linux-x86_64
  2. cd /usr/local/share
  3. sudo curl -L -o $P.tar.bz2 https://bitbucket.org/ariya/phantomjs/downloads/$P.tar.bz2
  4. sudo tar xvf $P.tar.bz2
  5. sudo ln --force -s /usr/local/share/$P /usr/local/share/phantomjs
  6. sudo ln --force -s /usr/local/share/phantomjs/bin/phantomjs /usr/local/bin/phantomjs
  7. phantomjs --version
@dominicsayers
dominicsayers / sublime-text-settings.js
Last active August 17, 2017 10:31
Sublime Text 3 personal settings
{
"folder_exclude_patterns": [".git", "coverage", "cache", "uploads"],
"binary_file_patterns":
[
"*/tmp/*",
"*/attachment/*",
"log/",
"coverage/",
"*/public/uploads/*",
"*/public/assets/*",

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.

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: http://www.englandrugby.com/governance/regulations/

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

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.

Draft 2

Postponement of the Blackheath Mini Rugby Festival 2018

After reviewing the conditions at Avery Hill Park, we've reluctantly decided to postpone this Sunday's festival. Please feel free to have Sunday morning in bed.

We were influenced by a number of clubs who told us they thought the journey would be difficult. While we expect roads to be open on Sunday it's clear that conditions in some parts of Kent might make attending our festival a bit of a challenge. Given the risk of frozen ground or even some remaining snow, it would be a pity to make families attempt a difficult journey only to find the pitches unplayable when they got here.

The festival is postponed until Sunday, 29th April. We'll be in touch to confirm your club's availability for that date.