Skip to content

Instantly share code, notes, and snippets.

Matt Farmer m14t

  • Oakland, CA
Block or report user

Report or block m14t

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
m14t /
Last active Nov 8, 2018
GraphQL Summit 2018 - Links worth sharing

GraphQL Summit 2018 - Links worth sharing

Day 1

m14t / index.test.js
Created Oct 23, 2018
Assert that your GraphQL schema can execute the introspectionQuery
View index.test.js
const { execute, introspectionQuery, parse } = require('graphql');
const { schema } = require('../index');
describe('graphql', () => {
describe('index', () => {
describe('schema', () => {
it('should be a an object', () => {
expect(typeof schema).toBe('object');

Keybase proof

I hereby claim:

  • I am m14t on github.
  • I am m14t ( on keybase.
  • I have a public key whose fingerprint is 1FCA DAF1 05CD E9D7 5A50 45CC A084 7AFA D4D1 6422

To claim this, I am signing this object:

m14t /
Created Jul 5, 2012
Convert HTTPS github clones to use SSH
#-- Script to automate
REPO_URL=`git remote -v | grep -m1 '^origin' | sed -Ene's#.*(https://[^[:space:]]*).*#\1#p'`
if [ -z "$REPO_URL" ]; then
echo "-- ERROR: Could not identify Repo url."
echo " It is possible this repo is already using SSH instead of HTTPS."
You can’t perform that action at this time.