Skip to content

Instantly share code, notes, and snippets.

View dmnd's full-sized avatar

Desmond Brand dmnd

View GitHub Profile
#!/bin/bash
set -e # error early
REPO_LOCATION=/Users/desmondbrand/github/flexport
prettierify_branch() {
branch=$1
echo ''
@dmnd
dmnd / requiresToImports.js
Last active March 4, 2017 20:50 — forked from ide/requiresToImports.js
Converts commonJS requires to es6 imports
// converts commonJS requires to es6 imports
// var foo = require('foo');
// ->
// import foo from 'foo';
//
// jscodeshift -t requiresToImports.js src/**/*.js*
'use strict';
module.exports = function(fileInfo, api) {
var j = api.jscodeshift;
@dmnd
dmnd / duplicate-topic-email-2.txt
Created March 22, 2014 02:41 — forked from anonymous/gist:9699795
duplicate-topic-email-2.txt
Delivered-To: michael.s.burdick@gmail.com
Received: by 10.96.136.195 with SMTP id qc3csp48178qdb;
Fri, 21 Mar 2014 15:06:20 -0700 (PDT)
Return-Path: <33LcsUwwJEZ0HE7K-797ABJVDJ7FI.9LJJF9E7BI.P.8ROAF9HDJ7FI.9LJ@7SJ3MYH53AKEO4JRJXH7WZWH.apphosting.bounces.google.com>
Received-SPF: pass (google.com: domain of 33LcsUwwJEZ0HE7K-797ABJVDJ7FI.9LJJF9E7BI.P.8ROAF9HDJ7FI.9LJ@7SJ3MYH53AKEO4JRJXH7WZWH.apphosting.bounces.google.com designates 10.67.21.145 as permitted sender) client-ip=10.67.21.145
Authentication-Results: mr.google.com;
spf=pass (google.com: domain of 33LcsUwwJEZ0HE7K-797ABJVDJ7FI.9LJJF9E7BI.P.8ROAF9HDJ7FI.9LJ@7SJ3MYH53AKEO4JRJXH7WZWH.apphosting.bounces.google.com designates 10.67.21.145 as permitted sender) smtp.mail=33LcsUwwJEZ0HE7K-797A
@dmnd
dmnd / duplicate-topic-email-1.txt
Last active August 29, 2015 13:57 — forked from anonymous/gist:9699790
duplicate-topic-email-1.txt
Delivered-To: michael.s.burdick@gmail.com
Received: by 10.96.136.195 with SMTP id qc3csp47195qdb;
Fri, 21 Mar 2014 14:38:21 -0700 (PDT)
Return-Path: <3TLEsUwwJEQElibo-bdbefnzhnbjm.dpnnjdibfm.t.cvsejdlhnbjm.dpn@7SJ3MYH53AKEO4JRJXH7WZWH.apphosting.bounces.google.com>
Received-SPF: pass (google.com: domain of 3TLEsUwwJEQElibo-bdbefnzhnbjm.dpnnjdibfm.t.cvsejdlhnbjm.dpn@7SJ3MYH53AKEO4JRJXH7WZWH.apphosting.bounces.google.com designates 10.66.219.69 as permitted sender) client-ip=10.66.219.69
Authentication-Results: mr.google.com;
spf=pass (google.com: domain of 3TLEsUwwJEQElibo-bdbefnzhnbjm.dpnnjdibfm.t.cvsejdlhnbjm.dpn@7SJ3MYH53AKEO4JRJXH7WZWH.apphosting.bounces.google.com designates 10.66.219.69 as permitted sender) smtp.mail=3TLEsUwwJEQElibo-bdbe
@dmnd
dmnd / gist:9563125
Created March 15, 2014 07:44
keybase.md
### Keybase proof
I hereby claim:
* I am dmnd on github.
* I am dmnd (https://keybase.io/dmnd) on keybase.
* I have a public key whose fingerprint is 1AF0 D825 8E39 6902 9521 F2BD 4027 B10C 50F1 9FA5
To claim this, I am signing this object:
@dmnd
dmnd / prepare-commit-msg
Last active January 11, 2020 22:53
Show authors of changed lines in commit message template
#!/usr/bin/env python
"""
Makes it easy to pick a reviewer by showing who authored lines you changed
in a commit. You better have `git findreviewers` installed.
This is a Python script because every single time I try to write a shell
script, I regret it and have to rewrite.
"""