Skip to content

Instantly share code, notes, and snippets.

@chenzhg33
chenzhg33 / README.md
Created January 12, 2025 15:31 — forked from DannyWu2014/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.

@chenzhg33
chenzhg33 / actionlist.vim
Created July 26, 2019 02:25 — forked from zchee/actionlist.vim
IdeaVim actionlist
--- Actions ---
$Copy <M-C>
$Cut <M-X> <S-Del>
$Delete <Del> <BS> <M-BS>
$LRU
$Paste <M-V>
$Redo <M-S-Z> <A-S-BS>
$SearchWeb <A-S-G>
$SelectAll <M-A>
$Undo <M-Z>
#! /bin/sh
baseName=$(basename $0)
usage() {
echo Usage: ./$baseName cmd concurrent
exit 127
}
cmd="$1"
concurrent=$2
@chenzhg33
chenzhg33 / isBase64.cpp
Last active June 26, 2019 08:34
判断一个字符串是否base64编码
bool isBase64(std::string s) {
int len = s.length();
//长度必须是4的倍数
if (len % 4 != 0) {
return false;
}
//去掉末尾=
while (s[len-1] == '=') len--;
//所有的字符必须是 0-9 a-z A-Z + /
for (int i = 0; i < len; i++) {
@chenzhg33
chenzhg33 / linkList.cpp
Last active March 16, 2019 02:50
链表翻转