Skip to content

Instantly share code, notes, and snippets.

View schettino's full-sized avatar

Matheus Schettino schettino

View GitHub Profile
@schettino
schettino / shim.js
Created February 20, 2020 20:31 — forked from tirumaraiselvan/shim.js
Mount Hasura on Apollo federated gateway
const { ApolloServer } = require("apollo-server");
const gql = require("graphql-tag");
const fetch = require("node-fetch");
const {
introspectionQuery,
buildClientSchema,
printSchema
} = require("graphql");
const typeDefs = gql`
@schettino
schettino / go-build-all
Created December 3, 2021 17:35 — forked from eduncan911/go-build-all
Go Cross-Compile Script
#!/bin/bash
#
# GoLang cross-compile snippet for Go 1.6+ based loosely on Dave Chaney's cross-compile script:
# http://dave.cheney.net/2012/09/08/an-introduction-to-cross-compilation-with-go
#
# To use:
#
# $ cd ~/path-to/my-awesome-project
# $ go-build-all
#