Skip to content

Instantly share code, notes, and snippets.

View chrisshiplet's full-sized avatar

Chris Shiplet chrisshiplet

View GitHub Profile
@chrisshiplet
chrisshiplet / index.js
Created April 4, 2018 02:25
Delete all Stripe customers with matching email
#!/usr/bin/env node
// Example usage: TOKEN=sk_test_abcdef node index.js "[email protected]"
if (!process.env.TOKEN) {
throw new Error('Missing TOKEN environment variable');
}
var stripe = require("stripe")(process.env.TOKEN);
@chrisshiplet
chrisshiplet / git-pr
Created January 5, 2018 18:54
Open a new browser tab with PR autofilled
#!/bin/bash
# save this file somewhere on your PATH as "git-pr" and name your branches like "1234-branch-name"
# where 1234 is the corresponding issue number, then you can use it like "git pr [base branch]"
((!$#)) && echo Error: No branch name && exit 1
open $(git config --get remote.origin.url | sed "s/git\@github\.com\:/https\:\/\/github\.com\//g; s/\.git/\/compare\/$(sed 's/[\/&]/\\&/g' <<< $1)...$(git rev-parse --abbrev-ref HEAD)?expand=1\&body=%23$(git rev-parse --abbrev-ref HEAD | sed "s/\-.*//g")#/g")

Keybase proof

I hereby claim:

  • I am chrisshiplet on github.
  • I am shiplet (https://keybase.io/shiplet) on keybase.
  • I have a public key whose fingerprint is 1674 73CD A52E 4D7F AC03 19EC 1F6B 59FE 67F0 DF43

To claim this, I am signing this object:

@chrisshiplet
chrisshiplet / main.c
Created March 28, 2013 03:39
Conway's Game of Life in C99 for Unix style terminals
/*
* main.c
*
* 27 March 2013
* Conway's Game of Life
* Chris Shiplet <[email protected]>
*
* C99 + Unix-style terminal
*
*/