Skip to content

Instantly share code, notes, and snippets.

View colinappnovation's full-sized avatar

Colin McClure ( Associate Director - Head of Technology ) colinappnovation

View GitHub Profile
@colinappnovation
colinappnovation / Icon.tsx
Created April 21, 2022 08:39
Icon Approach Theory
import React from 'react';
import { IconProps } from './types';
import { dimensionsMap } from './const';
import classNames from 'classnames';
const Icons = {
AngleDown: () => (
<path
d="M11.668 14.8575L7.13767 10.1127C6.95411 9.92339 6.95411 9.61727 7.13767 9.42796L7.41496 9.14198C7.59852 8.95267 7.89533 8.95267 8.07889 9.14198L12 13.2625L15.9211 9.14601C16.1047 8.9567 16.4015 8.9567 16.585 9.14601L16.8623 9.43199C17.0459 9.6213 17.0459 9.92741 16.8623 10.1167L12.332 14.8615C12.1484 15.0468 11.8516 15.0468 11.668 14.8575Z"
fill="currentColor"
@colinappnovation
colinappnovation / get-content-types.js
Last active April 9, 2021 08:36
Get all Content Types from Contentful for all Spaces which executer has access to
const contentful = require("contentful-management");
const fs = require("fs");
require("dotenv").config();
const { CONTENTFUL_MANAGEMENT_TOKEN } = process.env;
const client = contentful.createClient({
accessToken: CONTENTFUL_MANAGEMENT_TOKEN,
});
@colinappnovation
colinappnovation / yml
Created December 2, 2018 15:11
Cockpit Docker Compose Setup
server {
index index.php;
server_name localhost:8080;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
root /var/www/html;
location ~ \.php$ {
try_files $uri =404;
@colinappnovation
colinappnovation / gist:7a6eabefd08f496617ee5d037682e5bf
Created February 5, 2018 10:21
Working GraphQL query with fragment against Drupal 8
{
nodeQuery(filter: {status: true, type: "article"}, limit: 5) {
totalCount: count
entities {
nid: entityId
title: entityLabel
... on NodeArticle {
body {
summary
}
@colinappnovation
colinappnovation / docraptpr-node.js
Last active August 30, 2017 13:52
Docraptor Node implementation command line helper
#!/usr/bin/env node
// npm install restler
var sys = require("util"),
fs = require("fs"),
rest = require("restler"),
p = console.log,
chalk = require("chalk"),
program = require("commander")
mdls = require("mdls"),
@colinappnovation
colinappnovation / dockerfile-princexml
Created August 25, 2017 16:50
Dockerfile for Princexml command line support
FROM ubuntu:xenial
RUN apt-get update; \
apt-get install -y \
wget \
libcairo2 \
libcurl3 \
libfontconfig1 \
libfreetype6 \
libgif7 \
@colinappnovation
colinappnovation / gist:218557a597f4e00438dc11454f11b2e8
Created August 10, 2017 14:42
Disable mouse acceleartion on Ubuntu 17.04
xinput --set-prop 18 'libinput Accel Profile Enabled' 0, 1
@colinappnovation
colinappnovation / boot-project.sh
Created July 11, 2017 12:43
Bash Script to automate D8 alongside Docker4Drupal
#!/bin/bash
# Clone into directory
git clone git@github.com:colinappnovation/drupal-project.git --depth=1 $1
# move into new folder
cd $1
# Bring in docker4drupal
wget https://raw.githubusercontent.com/wodby/docker4drupal/master/docker-sync.yml
Verifying that +colinmcclure is my blockchain ID. https://onename.com/colinmcclure

#PR Template

Ready state: Yes|No

Relates to: http://jira.link

Developer should switch this PR to Yes when ready for MR and they have assigned to TL

Noteworthy points

Any points which are pertinent for this branch.