start new:
tmux
start new with session name:
tmux new -s myname
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
digraph mainmap { | |
resolution = 72; | |
node [fontsize = 10]; | |
edge [fontsize = 9]; | |
overlap = false; | |
sep=0.4 | |
splines=true;xSatisfiability [label= "SATISFIABILITY" URL= "http://en.wikipedia.org/wiki/Satisfiability"style="bold", shape="ellipse", peripheries="2", fontsize ="14"]; | |
xCircuitSatisfiability [label= "CIRCUIT SATISFIABILITY" URL= "" style ="filled", fillcolor ="#eeeeee" style="bold", shape="ellipse", peripheries="2", fontsize ="14"]; | |
xMaxCut [label= "MAX CUT" URL= "http://en.wikipedia.org/wiki/Cut_(graph_theory)#Minimal_and_maximal_cuts"]; | |
xJobSequencing [label= "JOB SEQUENCING" URL= "" style ="filled", fillcolor ="#eeeeee" ]; |
#!/bin/bash | |
# | |
#This script is designed to install the Android SDK, NDK, and Eclipse in Linux Mint 11 and make it easier for people that want to develop for Android using Linux. | |
#Script written by @ArchDukeDoug with special thanks to @BoneyNicole, @tabbwabb, and @animedbz16 for putting up with me and proofreading and/or testing the script. | |
#I can be reached at dougw@uab.edu, twitter, or linuxrandomly.blogspot.com | |
#Script version: 1.0.5 | |
#Changelog: 1.0.5 - Fixed the Android SDK search parameters to fit the new naming scheme on http://developer.android.com/sdk | |
i=$(cat /proc/$PPID/cmdline) | |
if [[ $UID != 0 ]]; then | |
echo "Please type sudo $0 $*to use this." |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <iostream> | |
#include <stdarg.h> | |
#include <stdio.h> |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
#!/usr/bin/env python | |
# encoding: utf8 | |
# HAC 3.61: generates x_{i+1}, a_{i+1} and b_{i+1} | |
# from a, b and c, partitioning the field | |
def step_xab(x, a, b, alpha, beta, n, Z): | |
s = x % 3 | |
# S1 | |
if s == 1: |
mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy
to install it on OS X.
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.
#!/bin/bash | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |