Skip to content

Instantly share code, notes, and snippets.


Justin Braithwaite jbraithwaite

View GitHub Profile
jbraithwaite / ControlledRouter.js
Last active Oct 19, 2016 — forked from gaelduplessix/ControlledRouter.js
React Router v4 ControlledRouter
View ControlledRouter.js
// Code taken from:
// gaelduplessix/ControlledRouter.js
import React, { Component } from 'react'
import BrowserHistory from 'react-history/BrowserHistory'
import { Push } from 'react-history'
import { StaticRouter } from 'react-router'
class RouterWrapper extends Component {
View placeholder-image.sublime-snippet
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
jbraithwaite / shipitfile.js
Created Aug 28, 2015
Shipit deploy with Slack integration
View shipitfile.js
var pack = require('./package.json');
var request = require('request');
var name =;
module.exports = function (shipit) {
var deployTo = '/var/www/FOLDER_TO_DEPLOY_TO';
var deployToCurrent = deployTo + '/current';
var slackWebhookURL = 'SLACK_HOOK_URL';
jbraithwaite / org.php.php-fpm.plist
Created May 16, 2014
Launch Agent for PHP-FPM on OS X
View org.php.php-fpm.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">

Keybase proof

I hereby claim:

  • I am jbraithwaite on github.
  • I am jbraithwaite ( on keybase.
  • I have a public key whose fingerprint is 7CC3 7170 CB45 25B6 BD0F C3CD FD83 2958 903D 59A7

To claim this, I am signing this object:

jbraithwaite / gist:7572936
Created Nov 20, 2013
nginx configuration for with ghost
View gist:7572936
location /rss {
# If the UA doesn't contain feedpress or feedvalidator
if ($http_user_agent !~* (feedpress)|(feedvalidator)){
# Redirect the user to your cname'd rss veed link
return 301;
# If you haven't set that up (you should), you can uncomment out the following line
# return 302;