Skip to content

Instantly share code, notes, and snippets.

View matt-bailey's full-sized avatar

Matt Bailey matt-bailey

  • GPMD
  • London, UK
View GitHub Profile
@matt-bailey
matt-bailey / github-pages-custom-domain-gandi-dns-records.md
Last active April 17, 2024 00:26
How to set up DNS records on gandi.net to use a custom domain on Github Pages

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 / customer_account.xml
Last active July 3, 2023 23:10
Disable My Account sidebar links in Magento 2
<?xml version="1.0"?>
<!--
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<!-- Remove unwanted account navigation links -->
@matt-bailey
matt-bailey / env.php
Created May 18, 2017 13:50
Example Magento 2 env.php file
<?php
return array (
'backend' =>
array (
'frontName' => 'admin',
),
'crypt' =>
array (
'key' => '9af38453afda96c7862c7d10eb493ba4',
),
@matt-bailey
matt-bailey / blinker-related-products.html
Created February 7, 2022 16:20
Blinker App BigCommerce Integration - Related products grid template
@matt-bailey
matt-bailey / _blinker.scss
Created February 7, 2022 15:14
Blinker App BigCommerce Integration - SCSS
// =============================================================================
// Blinker
// =============================================================================
/* Related posts */
.blinker-related-posts {
clear: both;
}
@matt-bailey
matt-bailey / blinker.js
Last active February 7, 2022 15:12
Blinker App BigCommerce Integration - Javascript
// import PageManager from './page-manager';
import $ from 'jquery';
import utils from '@bigcommerce/stencil-utils';
import 'slick-carousel';
// export default class Blinker extends PageManager {
export default function() {
function init() {
const blinkerId = '[your-blinker-id]';
@matt-bailey
matt-bailey / gist:3609369
Created September 3, 2012 13:33
Terminal - Rsync merge files/folders from one server to another
# Merge from remote to local (exclude .svn folders)
rsync -av --exclude '.svn' [username]@[server]:/[path-to-folder]/[folder] ./
--progress
# Use this flag to show progress
# ./ means merge into the current folder (it needs to exist!)
# Reverse paths to go from local to remote
@matt-bailey
matt-bailey / async-and-conditional-css-loading.html
Last active March 17, 2021 22:09
A simple script (based on one by Google) for loading CSS files asynchronously and conditionally based on body tag classes
<html>
<head>
<!-- Inlined critical styles -->
<style>.blue{color:blue;}</style>
<!-- CSS loader -->
<script>
/* ==========================================================================
Load CSS asynchronously and conditionally after initial painting
@matt-bailey
matt-bailey / gist:3911666
Created October 18, 2012 13:05
Sass vs Less - Placeholders
// Source: http://ianstormtaylor.com/oocss-plus-sass-is-the-best-way-to-css/
// Sass
%separator
border-top: 1px solid black
hr
@extend %separator
.separator
@extend %separator
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