Skip to content

Instantly share code, notes, and snippets.

Eli Perelman eliperelman

Block or report user

Report or block eliperelman

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
@eliperelman
eliperelman / nspr.sh
Created Oct 28, 2014
Enable/disable NSPR Logging
View nspr.sh
#!/bin/sh
# Alias this script for easier experience
# Usage:
# ./nspr.sh on
# ./nspr.sh off
NSPR="export NSPR_LOG_MODULES=ObserverService:5"
OPTION=$1
DISK_DEVICE=`adb shell mount | grep '/system' | awk '{ print $1 }'`
@TooTallNate
TooTallNate / README.md
Last active Oct 8, 2015
Forward port 80 traffic from 127.0.0.1 to port 3000 at bootup on OS X
View README.md

Copy this file to: /Library/LaunchDaemons/fwd-80-to-3000.plist and then reboot:

$ sudo -s
$ curl -L https://gist.github.com/TooTallNate/3372589/raw/ace6451e9e47f59550f12d09cb924a64531cfd1f/fwd-80-to-3000.plist > /Library/LaunchDaemons/fwd-80-to-3000.plist
$ reboot
You can’t perform that action at this time.