NOTE
You may not need local branches for all pull requests in a repo.
To fetch only the ref of a single pull request that you need, use this:
git fetch origin pull/7324/head:pr-7324
git checkout pr-7324
# ...| [alias] | |
| fetch-pr = "!f() { git fetch origin refs/pull/$1/head:pr/$1; } ; f" | |
| delete-prs = "!git for-each-ref refs/heads/pr/* --format='%(refname)' | while read ref ; do branch=${ref#refs/heads/} ; git branch -D $branch ; done" |
NOTE
You may not need local branches for all pull requests in a repo.
To fetch only the ref of a single pull request that you need, use this:
git fetch origin pull/7324/head:pr-7324
git checkout pr-7324
# ...| let Loop = React.createClass({ | |
| getInitialState() { | |
| return { | |
| isMovingToEnd: true | |
| }; | |
| }, | |
| endValue(currVals) { | |
| let {endValueProp, isDone, startValue} = this.props; | |
| let {isMovingToEnd} = this.state; |
| function getOrderDetails(orderID) { | |
| return db.find( "orders", orderID ).then(order => | |
| db.find( "customers", order.customerID ).then(customer => ({order, customer})) | |
| ).then(({order, customer}) => | |
| Object.assign(order, {customer}) | |
| ); | |
| } | |
| getOrderDetails( 1234 ) | |
| .then( displayOrder, showError ); |
| // require() some stuff from npm (like you were using browserify) | |
| // and then hit Rebuild to run it on the right | |
| var esformatter = require( 'esformatter' ); | |
| var esformatterJSX = require( 'esformatter-jsx' ); | |
| //var collapser = require( 'esformatter-collapse-objects' ) | |
| var throttle = require( 'lodash.throttle' ); | |
| var hash = window.location.hash.substr( 1 ); | |
| var extend = require('extend'); | |
| var params; |
| // Using the Jenkins Groovy Post build plugin to execute the following after every build | |
| // https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin | |
| // It would be nice not to have to specify these here... the repo name should be available within the hudson | |
| // api somehow, but I didn't know how to get it. The access token should maybe be saved in a config file, and | |
| // read in at runtime? | |
| GITHUB_REPO_NAME = 'myusername/myreponame' | |
| GITHUB_ACCESS_TOKEN = 'my_github_api_v3_access_token' |
| #!/bin/bash | |
| COUNT=1 | |
| for link in $(cat $1) | |
| do | |
| wget -O - -o /dev/null $link | iconv -f iso8859-1 -t utf-8 > $COUNT.html | |
| COUNT=$(echo $COUNT + 1 |bc) | |
| done |
| <!-- | |
| Example 1: Using IF ELSE logic | |
| Works with Outlook (Desktop)?: Yes | |
| Works with Outlook.com?: No | |
| When using IF ELSE logic, Outlook.com will remove content in both conditionals, which is problematic. | |
| --> | |
| <!--[if mso]> | |
| <table border="0" cellpadding="0" cellspacing="0" width="100%"> |
This guide is a fork from this gist.
Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
Create an anchor file under /etc/pf.anchors/com.vagrant with your redirection rule like:
rdr pass on lo0 inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080