Skip to content

Instantly share code, notes, and snippets.

View lanmaster53's full-sized avatar

Tim Tomes lanmaster53

View GitHub Profile
@lanmaster53
lanmaster53 / introspection-query.graphql
Created June 12, 2019 17:57 — forked from craigbeck/introspection-query.graphql
Introspection query for GraphQL
query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }
subscriptionType { name }
types {
...FullType
}
directives {
@lanmaster53
lanmaster53 / git-shallower
Last active December 7, 2018 15:02
Basic script to update git repository without any history or excess data in .git
#!/bin/bash
# Basic script to update a git repository without any history or excess data in .git.
# Parses the url from .git/config, downloads latest version, and purges everything in .git/ except the config file.
# Limitations:
# * Only works with the master branch.
# * Doesn't account for local virtual environments.
# * Doesn't allow for maintaining a stash of changes.
if [ -f $FILE ]; then
# parse the url from the config file