I hereby claim:
- I am jmnwong on github.
- I am jmnwong (https://keybase.io/jmnwong) on keybase.
- I have a public key ASDsiuM7bZknhMlr2ge6M_L9HY7yFm4tLnDLLpkmYipuDwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
set shell=/bin/bash | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') |
#begin include httpretrieve.repy | |
""" | |
<Program Name> | |
httpretrieve.repy | |
<Started> | |
August 19, 2009 | |
<Authors> | |
Yafete Yemuru |
import requests | |
url='http://www.letsrevolutionizetesting.com/challenge.json' | |
r = requests.get(url) | |
print r.text | |
while 'follow' in r.json(): | |
result=r.json()['follow'] | |
numid=result.split('?')[1] | |
print numid | |
r = requests.get(url+'?'+numid) |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
*.pyc |
## Run all these commands in container | |
sudo apt-get install curl wget openvpn uml-utilities | |
# creates a tun device in the container | |
sudo mkdir /dev/net | |
sudo mknod /dev/net/tun c 10 200 | |
sudo chmod 666 /dev/net/tun |
sudo apt-get install uml-utilities build-essential linux-headers-`uname -r` | |
mkdir faketun | |
cd faketun | |
echo -e "#include <linux/module.h>\nstatic int start__module(void) {return 0;}\nstatic void end__module(void){return;}\nmodule_init(start__module);\nmodule_exit(end__module);">tun.c | |
echo -e "obj-m += tun.o\nall:\n\tmake -C /lib/modules/\$(shell uname -r)/build/ M=\$(PWD) modules\nclean:\n\tmake -C /lib/modules/\$(shell uname -r)/build/ M=\$(PWD) clean\nclean-files := Module.symvers">Makefile | |
make | |
sudo install tun.ko /lib/modules/`uname -r`/kernel/net/tun.ko | |
sudo depmod -a | |
sudo modprobe tun |
Put in (Preferences -> Key Bindings - User): | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" } |
#################################### | |
# BASIC REQUIREMENTS | |
# http://graphite.wikidot.com/installation | |
# http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
# Last tested & updated 10/13/2011 | |
#################################### | |
sudo apt-get update | |
sudo apt-get upgrade | |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer