Skip to content

Instantly share code, notes, and snippets.


Matt Bailey matt-bailey

View GitHub Profile
View gist:a332fa1e9afb908aedd52c089e81cb3d
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
matt-bailey / .stencil
Last active Jun 21, 2019
Example BigCommerce .stencil file
View .stencil
"normalStoreUrl": "[store-url]",
"port": 3000,
"clientId": "[client-id]",
"accessToken": "[access-token]",
"customLayouts": {
"brand": {},
"category": {},
"page": {
matt-bailey /
Last active Apr 17, 2021
How to set up DNS records on to use a custom domain on Github Pages

How to set up DNS records on to use a custom domain on Github Pages

You would think it would be easy to find this information, but none of the Github or Gandi documentation is clear so I have recorded the required steps here.

Create the following A records:

@ 1800 IN A
@ 1800 IN A
@ 1800 IN A
matt-bailey /
Created Apr 23, 2018 — forked from kevyworks/
Prepare Dev Machine for: Node Composer & Laravel Valet
# install brew
/usr/bin/ruby -e "$(curl -fsSL"
# update brew
brew update
# should be added by homebrew installation?
sudo chown -R `whoami`:admin /usr/local/opt
# Node Version Manager
matt-bailey / formstack-embed-using-postscribe.html
Created Sep 13, 2017
Embed a Formstack form asynchronously, using Postscribe
View formstack-embed-using-postscribe.html
<!-- Main form wrapper, required for styling the form -->
<div class="webform">
<!-- Empty div (must have a unique ID), into which the form will be loaded -->
<div id="formstack-bridal-appointment"></div>
<script type="text/javascript">// <![CDATA[
// Only run the code below when jQuery says the document is ready
(function($) {
// Process the form using postscribe:
// 1. Must reference the unique ID of the div above
matt-bailey / prototype.min.js
Created Jul 7, 2017
Prototype 1.7 + fix for conflict with Angular (minified)
View prototype.min.js
function $A(iterable){if(!iterable)return[];if("toArray"in Object(iterable))return iterable.toArray();for(var length=iterable.length||0,results=new Array(length);length--;)results[length]=iterable[length];return results}function $w(string){return Object.isString(string)?(string=string.strip(),string?string.split(/\s+/):[]):[]}function $H(object){return new Hash(object)}function $R(start,end,exclusive){return new ObjectRange(start,end,exclusive)}function $(element){if(arguments.length>1){for(var i=0,elements=[],length=arguments.length;i<length;i++)elements.push($(arguments[i]));return elements}return Object.isString(element)&&(element=document.getElementById(element)),Element.extend(element)}var bindTemp=Function.prototype.bind;Function.prototype.bind=function(oThis){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this ins
matt-bailey / prototype.js
Created Jul 7, 2017
Prototype 1.7 + fix for conflict with Angular
View prototype.js
* Prototype Angular conflict fix
var bindTemp = Function.prototype.bind;
Function.prototype.bind = function(oThis) {
if (typeof this !== 'function') {
// closest thing possible to the ECMAScript 5
// internal IsCallable function
matt-bailey /
Created Jun 8, 2017
Instructions on the markup to use in our Magento 2 Meganav module

Meganav Markup

Our Meganav module requires some simple markup in order for it to function correctly.

Here is a basic example showing a single column of links:


    <!-- Heading with link and toggle -->
matt-bailey / aliases.js
Last active May 25, 2017
Example aliases file for load-grunt-config in our Magento 2 setup
View aliases.js
/* global module */
/* File location: dev/tools/grunt/configs/aliases.js */
/* Usage: */
'use strict';
module.exports = {
default: [],
matt-bailey / env.php
Created May 18, 2017
Example Magento 2 env.php file
View env.php
return array (
'backend' =>
array (
'frontName' => 'admin',
'crypt' =>
array (
'key' => '9af38453afda96c7862c7d10eb493ba4',