Skip to content

Instantly share code, notes, and snippets.

Matt Bailey matt-bailey

Block or report user

Report or block matt-bailey

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 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
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": {
"style-guide.html":"/style-guide/"
@matt-bailey
matt-bailey / github-pages-custom-domain-gandi-dns-records.md
Last active May 31, 2020
How to set up DNS records on gandi.net to use a custom domain on Github Pages
View github-pages-custom-domain-gandi-dns-records.md

How to set up DNS records on gandi.net 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 185.199.108.153
@ 1800 IN A 185.199.109.153
@ 1800 IN A 185.199.110.153
@matt-bailey
matt-bailey / prep-ncv-env.sh
Created Apr 23, 2018 — forked from kevyworks/prep-ncv-env.sh
Prepare Dev Machine for: Node Composer & Laravel Valet
View prep-ncv-env.sh
# install brew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# update brew
brew update
# should be added by homebrew installation?
sudo chown -R `whoami`:admin /usr/local/opt
# Node Version Manager
@matt-bailey
matt-bailey / formstack-embed-using-postscribe.html
Created Sep 13, 2017
Embed a Formstack form asynchronously, using Postscribe
View formstack-embed-using-postscribe.html
// https://github.com/krux/postscribe
<!-- 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
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 aArgs=Array.prototype.slice.call(arguments,1),fToBind=this,fNOP=function(){},fBound=function(){return fToBind.apply(this ins
@matt-bailey
matt-bailey / prototype.js
Created Jul 7, 2017
Prototype 1.7 + fix for conflict with Angular
View prototype.js
/**
* Prototype Angular conflict fix
* http://tooschee.com/magento-prototype-vs-angular-conflict-problem/
*/
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
matt-bailey / meganav-markup.md
Created Jun 8, 2017
Instructions on the markup to use in our Magento 2 Meganav module
View meganav-markup.md

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:

<div>

    <!-- Heading with link and toggle -->
@matt-bailey
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: https://github.com/firstandthird/load-grunt-config#aliases */
'use strict';
module.exports = {
default: [],
@matt-bailey
matt-bailey / env.php
Created May 18, 2017
Example Magento 2 env.php file
View env.php
<?php
return array (
'backend' =>
array (
'frontName' => 'admin',
),
'crypt' =>
array (
'key' => '9af38453afda96c7862c7d10eb493ba4',
),
You can’t perform that action at this time.