This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |