Since Mavericks stopped using the deprecated ipfw (as of Mountain Lion), we'll be using pf to allow port forwarding.
####1. anchor file
Create an anchor file under /etc/pf.anchors/<anchor file> with your redirection rule like:
| var request = function(options) { | |
| var aborted = false, | |
| abort = function() { | |
| aborted = true; | |
| }; | |
| switch (options.type) { | |
| case "jsonp": | |
| // a very simplistic JSON-P implementation | |
| var script = document.createElement("script"), |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script src="http://zeptojs.com/zepto.min.js"></script> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |
| var gulp = require('gulp'), | |
| gutil = require('gulp-util'), | |
| sass = require('gulp-sass'), | |
| rubysass = require('gulp-ruby-sass'), | |
| fileinclude = require('gulp-file-include'), | |
| rename = require('gulp-rename'), | |
| notify = require('gulp-notify'), | |
| livereload = require('gulp-livereload'), | |
| lr = require('tiny-lr'), | |
| connect = require('gulp-connect'), |
| ----- Esc ----- | |
| Quick change directory: Esc + c | |
| Quick change directory history: Esc + c and then Esc + h | |
| Quick change directory previous entry: Esc + c and then Esc + p | |
| Command line history: Esc + h | |
| Command line previous command: Esc + p | |
| View change: Esc + t (each time you do this shortcut a new directory view will appear) | |
| Print current working directory in command line: Esc + a | |
| Switch between background command line and MC: Ctrl + o | |
| Search/Go to directory in active panel: Esc + s / Ctrl + s then start typing directory name |
| /** | |
| * This file/module contains all configuration for the build process. | |
| */ | |
| /** | |
| * Load requires and directory resources | |
| */ | |
| var join = require('path').join, | |
| bowerrc = JSON.parse(require('fs').readFileSync('./.bowerrc', {encoding: 'utf8'})), | |
| bowerJSON = bowerrc.json.replace(/^\.?\/?/, './'), |
| # Download & install marports http://www.macports.org/install.php | |
| $ sudo port selfupdate | |
| $ sudo port install nginx | |
| $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.nginx.plist | |
| $ sudo port install php5 +fastcgi fcgi | |
| $ sudo mkdir /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
| $ cd /opt/local/etc/LaunchDaemons/org.macports.php-fastcgi | |
| $ mate org.macports.php-fastcgi.plist # or vim org.macports.php-fastcgi.plist |
| /* | |
| Migrated to: https://github.com/jdarling/Object.observe | |
| Tested against Chromium build with Object.observe and acts EXACTLY the same, | |
| though Chromium build is MUCH faster | |
| Trying to stay as close to the spec as possible, | |
| this is a work in progress, feel free to comment/update | |
| http://wiki.ecmascript.org/doku.php?id=harmony:observe |
| // See comments below. | |
| // This code sample and justification brought to you by | |
| // Isaac Z. Schlueter, aka isaacs | |
| // standard style | |
| var a = "ape", | |
| b = "bat", | |
| c = "cat", | |
| d = "dog", |