Skip to content

Instantly share code, notes, and snippets.

View spences10's full-sized avatar
💭
SvelteKit is bae!

Scott Spence spences10

💭
SvelteKit is bae!
View GitHub Profile
@spences10
spences10 / dropDataGraphCool.js
Created July 19, 2017 13:45 — forked from export-mike/dropDataGraphCool.js
A utility Script for cleaning out tables in graphcool
require('dotenv').config();
const { GraphQLClient } = require('graphql-request');
const client = new GraphQLClient(process.env.ENDPOINT, { headers: {
'Authorization': `Bearer ${process.env.ACCESS_TOKEN}`
}});
const query = T => `
query Get${T}s {
all${T}s {
id
@spences10
spences10 / GitHub-Forking.md
Created January 1, 2017 22:30 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@spences10
spences10 / quotes.json
Last active December 21, 2016 10:57 — forked from Danib17/.json
Quotes
[
{
"quoteID": 1,
"quote": "Efforts and courage are not enough without purpose and direction.",
"author": "John F Kennedy",
"description": "35th President of the USA",
"profile": "http://markmcmillion.com/wp-content/uploads/2014/03/JFK-150x150.jpg",
"portrait": "http://bit.ly/1Q6aObg",
"bio": "John F Kennedy was a president of the United States of America"
},
@spences10
spences10 / 0_reuse_code.js
Created December 21, 2016 06:45
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
var delay = 250;
var until = 'faux123';
var a = new Array();
$('button[class*=follow-btn]').each(function() {
var attr = $(this).parent().attr('data-screen-name');
if (attr != undefined) {
if (attr == until) {
return false;
}
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
sudo apt-get update
sudo apt-get upgrade
// install dropbox
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86" | tar xzf -
~/.dropbox-dist/dropboxd
sudo apt-get install yakuake vim vlc gimp sqlite3 curl git-core git-gui gparted filelight xclip kubuntu-restricted-extras gparted wine pidgin libqt4-webkit build-essential hardinfo
// add programs to startup : System Settings -> Startup
@spences10
spences10 / andadb.sh
Created February 22, 2013 16:14 — forked from tahl/andadb.sh
#!/bin/bash
#
#Android ADB Installer 2 for Linux Mint 11 and Ubuntu 11.04
#This version is intended to be an improvement on previous version and give the user more installation options and bring more ease to people that want to develop,
#theme, or just whatever other purpose you may want to use something that is in my script for.
#Script written by @ArchDukeDoug and parts of @_CorCor67's scripting code used with permission as well.
#Thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script.
#Script version: 2.0.0
menu=
## Acer
#SUBSYSTEM=="usb", ATTR{idVendor}=="0502", MODE="0600", OWNER="<username>"
## ASUS
#SUBSYSTEM=="usb", ATTR{idVendor}=="0b05", MODE="0600", OWNER="<username>"
## Dell
#SUBSYSTEM=="usb", ATTR{idVendor}=="413c", MODE="0600", OWNER="<username>"
## Foxconn