Skip to content

Instantly share code, notes, and snippets.

Justin Braithwaite jbraithwaite

Block or report user

Report or block jbraithwaite

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 keybase.md

Keybase proof

I hereby claim:

  • I am jbraithwaite on github.
  • I am jbraithwaite (https://keybase.io/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
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" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>org.php.php-fpm</string>
View placeholder-image.sublime-snippet
<snippet>
<content><![CDATA[
https://placehold.it/${1:width}x${2:hight}
]]></content>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<tabTrigger>place</tabTrigger>
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>
@jbraithwaite
jbraithwaite / gist:7572936
Created Nov 20, 2013
nginx configuration for feedpress.it 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 http://feed.YOUR_SITE.com/YOUR_FEED_NAME;
# If you haven't set that up (you should), you can uncomment out the following line
# return 302 http://feedpress.me/YOUR_FEED_NAME;
@jbraithwaite
jbraithwaite / ControlledRouter.js
Last active Oct 19, 2016 — forked from gaelduplessix/ControlledRouter.js
React Router v4 ControlledRouter
View ControlledRouter.js
// Code taken from:
// https://gist.github.com/gaelduplessix/050e5cce31f9fabb1030f4ba47663db5
// 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 {
@jbraithwaite
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 = pack.name;
module.exports = function (shipit) {
require('shipit-deploy')(shipit);
var deployTo = '/var/www/FOLDER_TO_DEPLOY_TO';
var deployToCurrent = deployTo + '/current';
var slackWebhookURL = 'SLACK_HOOK_URL';
You can’t perform that action at this time.