Skip to content

Instantly share code, notes, and snippets.

🏎
Building Formula One — github.com/flexport/formula-one

Desmond Brand dmnd

🏎
Building Formula One — github.com/flexport/formula-one
Block or report user

Report or block dmnd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View VisibleErrorsWatcher.jsx
/* TEAM: frontend_infra
*
* @flow
*/
import * as React from "react";
import {ObjectField, type FieldLink} from "formula-one";
import {isShallowEqual} from "tools/array";
View prettify.sh
#!/bin/bash
set -e # error early
REPO_LOCATION=/Users/desmondbrand/github/flexport
prettierify_branch() {
branch=$1
echo ''
@dmnd
dmnd / requiresToImports.js
Last active Mar 4, 2017 — forked from ide/requiresToImports.js
Converts commonJS requires to es6 imports
View requiresToImports.js
// 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 / app02-app01.diff
Last active Dec 8, 2015
production nginx configs
View app02-app01.diff
diff --git a/nginxconfs/app02.conf b/nginxconfs/app01.conf
index 49845e7..1ad51b0 100644
--- a/nginxconfs/app02.conf
+++ b/nginxconfs/app01.conf
@@ -103,6 +103,7 @@ server {
ssl on;
ssl_certificate /etc/ssl/certs/flexport.crt;
ssl_certificate_key /etc/ssl/private/flexport.key;
+
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
@dmnd
dmnd / duplicate-topic-email-2.txt
Created Mar 22, 2014 — forked from anonymous/gist:9699795
duplicate-topic-email-2.txt
View 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 Aug 29, 2015 — forked from anonymous/gist:9699790
duplicate-topic-email-1.txt
View 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
View gist:9563125
### 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 Jan 3, 2017
Show authors of changed lines in commit message template
View prepare-commit-msg
#!/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.
"""
You can’t perform that action at this time.