Skip to content

Instantly share code, notes, and snippets.

Matt Farmer m14t

  • Oakland, CA
View GitHub Profile
@m14t
m14t / day-1.md
Last active Nov 8, 2018
GraphQL Summit 2018 - Links worth sharing
View day-1.md

GraphQL Summit 2018 - Links worth sharing

Day 1

@m14t
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');
});
View keybase.md

Keybase proof

I hereby claim:

  • I am m14t on github.
  • I am m14t (https://keybase.io/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
m14t / fix_github_https_repo.sh
Created Jul 5, 2012
Convert HTTPS github clones to use SSH
View fix_github_https_repo.sh
#/bin/bash
#-- Script to automate https://help.github.com/articles/why-is-git-always-asking-for-my-password
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."
exit
fi
You can’t perform that action at this time.