sudo apt-get install socat
host github.com
proxycommand socat - PROXY:localhost:%h:%p,proxyport=8080
###If you want to use SOCKS proxy, edit it like this. host bitbucket.org ProxyCommand socat - SOCKS:localhost:%h:%p,socksport=7070
#!/usr/bin/env python | |
import SimpleHTTPServer | |
import SocketServer | |
# minimal web server. serves files relative to the | |
# current directory. | |
PORT = 8080 | |
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler |
#! /bin/bash | |
# Set the default policies to allow everything while we set up new rules. | |
# Prevents cutting yourself off when running from remote SSH. | |
iptables -P INPUT ACCEPT | |
iptables -P FORWARD ACCEPT | |
iptables -P OUTPUT ACCEPT | |
# Flush any existing rules, leaving just the defaults | |
iptables -F |
#!/usr/bin/env python | |
import getopt | |
import sys | |
import random | |
import string | |
DEFAULT_LENGTH = 16 | |
def main(): |
package com.foo; | |
import java.util.Arrays; | |
import java.util.List; | |
import com.google.gson.Gson; | |
public class Foo { | |
private static List<Integer> toList(String json, Gson parser) { |
[user] | |
name = First Last | |
email = [email protected] | |
[core] | |
excludesfile = ~/.gitignore | |
autocrlf = true | |
[alias] | |
ci = commit |