Skip to content

Instantly share code, notes, and snippets.

View matthewborden's full-sized avatar

Matthew Borden matthewborden

  • Matthew Borden
  • Melbourne, Austraila
View GitHub Profile
@matthewborden
matthewborden / pipeline.sh
Created June 29, 2022 22:43 — forked from toolmantim/pipeline.sh
Ensuring Buildkite pipeline steps run on the same agent, using a dynamic pipeline generator script
#!/bin/bash
# Outputs a pipeline that targets agents that have the same 'name' meta-data
# value as the step that does the pipeline upload. This means that all the
# steps will run on the same agent machine, assuming that the 'name' meta-data
# value is unique to each agent.
#
# Each agent needs to be configured with meta-data like so:
#
# meta-data="name=<unique-name>"

Keybase proof

I hereby claim:

  • I am matthewborden on github.
  • I am matthewborden (https://keybase.io/matthewborden) on keybase.
  • I have a public key ASCR7pGslbwCibEaTZoUMZxmd8ivNwgrWFOS-GeXVF6rOQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am matthewborden on github.
  • I am matthewborden (https://keybase.io/matthewborden) on keybase.
  • I have a public key ASCoFIqCSFs86kxyyc1mv2G4DREXSXwfUomWsHD-PrKcTgo

To claim this, I am signing this object:

# PostgreSQL Client Authentication Configuration File
# ===================================================
#
# Refer to the "Client Authentication" section in the PostgreSQL
# documentation for a complete description of this file. A short
# synopsis follows.
#
# This file controls: which hosts are allowed to connect, how clients
# are authenticated, which PostgreSQL user names they can use, which
# databases they can access. Records take one of these forms:
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed

Squire

Lightweight

  • Only 10KB of JS after minification and gzip (33KB before gzip).
  • IE8 support does not add extra bloat to the core library; instead, a separate 3KB (7KB before gzip) file patches the browser to support the W3C APIs.
  • Does not include its own XHR wrapper, widget library or lightbox overlays.
  • No dependencies.
var type_of = function(x) {
var type = Object.prototype.toString.apply(x);
return type.slice(type.indexOf(' ') + 1, -1);
};

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]

Summary:

We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

@matthewborden
matthewborden / Google Survey to JSON
Created January 29, 2013 08:22
Converts a Google Survey to a JSON Feed
<?php
header('Content-type: application/json');
// Set your CSV feed
$feed = '<insert csv feed here>';
// Arrays we'll use later
$keys = array();