Skip to content

Instantly share code, notes, and snippets.


Christopher Blanchard cblanc

View GitHub Profile
BurnedChris / .meshrc.yaml
Last active Apr 6, 2021
GraphQL Mesh Implementation of
View .meshrc.yaml
- name: idealPostcodes
Authorization: IDEALPOSTCODES api_key="XXXXXXX"
port: 8912
heyMP / utils.js
Last active Nov 25, 2022
Recursively find elements through multiple layers of shadow dom.
View utils.js
* Example usage:
* const hotspots = findAllDeep(element, `[slot*="hotspot"]`, 10);
const findAllDeep = (parent, selectors, depth = null) => {
let nodes = new Set();
let currentDepth = 1;
const recordResult = (nodesArray) => {
for (const node of nodesArray) {
andy-thomason /
Created May 14, 2019
Genomics a programmers introduction

Genomics - A programmer's guide.

Andy Thomason is a Senior Programmer at Genomics PLC. He has been witing graphics systems, games and compilers since the '70s and specialises in code performance.

rbq / docker.yaml
Last active Oct 10, 2022
Install Docker CE on Ubuntu using Ansible
View docker.yaml
- hosts: all
- name: Install prerequisites for Docker repository
name: ['apt-transport-https', 'ca-certificates', 'curl', 'gnupg2', 'software-properties-common']
update_cache: yes
- name: Add Docker GPG key
webframp /
Created Jul 25, 2017
Signing git commits on github using gpg key

Probably one of the easiest things you'll ever do with gpg

Install Keybase: and Ensure the keybase cli is in your PATH

First get the public key

keybase pgp export | gpg --import

Next get the private key

kyranjamie / countries.enum.ts
Last active Oct 30, 2022
TypeScript enum Country Codes ISO 3166
View countries.enum.ts
export enum Country {
Afghanistan = 'AF',
AlandIslands = 'AX',
Albania = 'AL',
Algeria = 'DZ',
AmericanSamoa = 'AS',
Andorra = 'AD',
Angola = 'AO',
Anguilla = 'AI',
Antarctica = 'AQ',
iloveitaly / capybara_fill_stripe_elements.rb
Created Mar 4, 2017
Fill in a Stripe Elements ( credit card field using capybara
View capybara_fill_stripe_elements.rb
def fill_stripe_elements(card)
using_wait_time(15) { within_frame('stripeField_card_element0') do
card.to_s.chars.each do |piece|
find_field('cvc').send_keys '123'
find_field('postal').send_keys '19335'
end }
jarbro /
Last active Jul 12, 2022
DNS Made Easy 2048 bit DKIM Support

DNS Made Easy 2048 bit DKIM support

If you have ever attempted to create your own DKIM key for your own mail server you know it can be a daunting task. Every flavor SMTP DKIM configuration is a bit different. Though once you've gotten your SMTP server configured with your private and public key, the easiest part of the entire process should be to make the necessary changes at your DNS provider,right? Unfortunately, not all providers support automatically accepting 2048 bit DKIM keys and you are ready to bang your head against the wall. Why dont they support a 2048 bit key or larger? Well, their system wont automatically handle keys larger than 255 contiguous characters because they haven't updated their interfaces to handle RFC 4408. More on this in a bit.

If you are using DNS Made Easy like I was, you probably ran across the error when trying to enter your DKIM key.

"Contiguous strings may not be longer than 255 characters"

Thankfully, [DNS RFC 4408](https

bcherny /
Last active Sep 29, 2022
react + rollup + typescript boilerplate


npm i --save-dev rollup rollup-watch rollup-plugin-typescript typescript typings
npm i -S react react-dom
./node_modules/.bin/typings install react react-dom --save
mkdir src dist
touch src/index.tsx