Skip to content

Instantly share code, notes, and snippets.

View si9ma's full-sized avatar
๐Ÿ‘
Go Go Go

si9ma si9ma

๐Ÿ‘
Go Go Go
View GitHub Profile
@si9ma
si9ma / simple_args_parsing.sh
Created May 4, 2019 01:11 — forked from jehiah/simple_args_parsing.sh
a simple way to parse shell script arguments
#!/bin/sh
#
# a simple way to parse shell script arguments
#
# please edit and use to your hearts content
#
ENVIRONMENT="dev"
@si9ma
si9ma / shell_fun_args_parse.sh
Last active May 5, 2019 06:35
parse shell function arguments
fun() {
# usage
read -r -d '' usage << EOM
usage: $0 [-h] [-u=<user>] [-e] [-p=<port>] host
-h help
-u user name
-p ssh port
-e if remote editable?
EOM
@si9ma
si9ma / gist:49577cf3d997e07bb2908082b8c55ccf
Created June 30, 2019 13:07 — forked from econchick/gist:4666413
Python implementation of Dijkstra's Algorithm
class Graph:
def __init__(self):
self.nodes = set()
self.edges = defaultdict(list)
self.distances = {}
def add_node(self, value):
self.nodes.add(value)
def add_edge(self, from_node, to_node, distance):
@si9ma
si9ma / README.md
Last active September 3, 2022 12:55 — forked from cld4h/README.md
Bypass the GFW; clash fake-ip and tproxy; iptables and transparent proxy on Linux; ๅœจLinuxไธŠ้€š่ฟ‡ iptables ไปฅๅŠ clash ้…็ฝฎ้€ๆ˜Žไปฃ็†็”จไบŽๆœฌๆœบๅŠๅฑ€ๅŸŸ็ฝ‘็ฟปๅข™็ฝ‘ๅ…ณ; Linux ็ฟปๅข™่ทฏ็”ฑๅ™จ้…็ฝฎ

This article show you the ultimate way to set up a transparent proxy on Linux using clash and iptables to bypass the GFW in China.

We use:

You can go to github gist to download all files mentioned in this article.