- modify /etc/sysctl.conf
- uncomment
net.ipv4.ip_forward=1
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> | |
<html> | |
<head> | |
<style type="text/css"> | |
td { | |
word-wrap: break-word; | |
} | |
</style> | |
</head> | |
<body> |
#!/usr/bin/env bash | |
#define some packages that are needed | |
PACKAGES_TO_INSTALL=(git curl vim zsh tmux); | |
PACKAGE_MANAGER=$1 | |
if [[ "$PACKAGE_MANAGER" == "apt" ]] | |
then | |
INS_CMD="apt-get install" |
# Configuration file for dnsmasq. | |
# | |
# Format is one option per line, legal options are the same | |
# as the long options legal on the command line. See | |
# "/usr/sbin/dnsmasq --help" or "man 8 dnsmasq" for details. | |
# Listen on this specific port instead of the standard DNS port | |
# (53). Setting this to zero completely disables DNS function, | |
# leaving only DHCP and/or TFTP. | |
#port=5353 |
/** | |
* @see http://phrogz.net/JS/classes/OOPinJS2.html | |
*/ | |
Function.prototype.inheritsFrom = function( parentClassOrObject ){ | |
if ( parentClassOrObject.constructor == Function ) | |
{ | |
//Normal Inheritance | |
this.prototype = new parentClassOrObject; | |
this.prototype.constructor = this; | |
this.prototype.parent = parentClassOrObject.prototype; |
Client: | |
nc -l -p 2222 | pv -rtb > /dev/null | |
Server: | |
pv -r /dev/zero | nc $CLIENTIP 2222 |
cd /usr/local/Cellar/macvim/7.3-66/MacVim.app/Contents/MacOS/ | |
install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/Python MacVim | |
install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /usr/local/Cellar/python/2.7.4/Frameworks/Python.framework/Versions/2.7/Python Vim |
sudo apt-get update | |
sudo apt-get install bcmwl-kernel-source | |
sudo modprobe -r b43 ssb wl | |
sudo modprobe wl |
sudo add-apt-repository ppa:webupd8team/java | |
sudo apt-get update | |
sudo apt-get install oracle-java7-installer |
#!/bin/bash | |
IP=`dig +short myip.opendns.com @resolver1.opendns.com` | |
curl --user "$1:$2" "http://dyndns.kasserver.com/?myip=$IP" |