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:
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
@Retention(RetentionPolicy.RUNTIME) | |
@Target(ElementType.FIELD) | |
public @interface EsId { | |
} |
import sys | |
import tornado.ioloop | |
import psycopg2 | |
import psycopg2.extensions | |
io_loop = tornado.ioloop.IOLoop.instance() | |
conn = psycopg2.connect('dbname=mytest user=lbolla password=secret') | |
conn.set_isolation_level(psycopg2.extensions.ISOLATION_LEVEL_AUTOCOMMIT) | |
git submodule foreach '[ "$path" == "submodule-to-exclude" ] || git pull origin master' |
# see https://www.topbug.net/blog/2013/04/14/install-and-use-gnu-command-line-tools-in-mac-os-x/ | |
# core | |
brew install coreutils | |
# key commands | |
brew install binutils | |
brew install diffutils | |
brew install ed --default-names | |
brew install findutils --with-default-names |
# Usage: | |
# source iterm2.zsh | |
# iTerm2 window/tab color commands | |
# Requires iTerm2 >= Build 1.0.0.20110804 | |
# http://code.google.com/p/iterm2/wiki/ProprietaryEscapeCodes | |
tab-color() { | |
echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
echo -ne "\033]6;1;bg;green;brightness;$2\a" | |
echo -ne "\033]6;1;bg;blue;brightness;$3\a" |
{ | |
"product": { | |
"title": "Between Battles", | |
"id": 27540, | |
"created_at": "2015-06-12T00:59:52Z", | |
"updated_at": "2015-06-12T01:08:11Z", | |
"type": "variable", | |
"status": "publish", | |
"downloadable": false, | |
"virtual": false, |
{ | |
"product": { | |
"title": "Between Battles", | |
"id": 27540, | |
"created_at": "2015-06-12T00:59:52Z", | |
"updated_at": "2015-06-12T01:08:11Z", | |
"type": "variable", | |
"status": "publish", | |
"downloadable": false, | |
"virtual": false, |
Principles of Adult Behavior
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
import java.util.logging.Logger; | |
import javax.inject.Inject; | |
import javax.inject.Named; | |
import javax.inject.Singleton; | |
import javax.ws.rs.GET; | |
import javax.ws.rs.POST; |