Skip to content

Instantly share code, notes, and snippets.

View xiaokangwang's full-sized avatar

Xiaokang Wang (Shelikhoo) xiaokangwang

View GitHub Profile
@wongsyrone
wongsyrone / change.diff
Last active April 24, 2020 07:42
badvpn change to Lwip 1.4(.1 maybe)
diff --git a/src/core/ipv4/ip4.c b/src/core/ipv4/ip4.c
index 4b38999c..1acc2558 100644
--- a/src/core/ipv4/ip4.c
+++ b/src/core/ipv4/ip4.c
@@ -473,6 +473,12 @@ ip_input(struct pbuf *p, struct netif *inp)
}
}
+ /* if we're pretending we are everyone for TCP, assume the packet is for source interface if it
+ isn't for a local address */
anonymous
anonymous / index.html
Created June 26, 2017 14:56
vZevOX
<form>
<div class="input-group input-group-lg ">
<span class="input-group-addon" id="UnInd">@</span>
<input type="text" class="form-control" placeholder="Username" aria-describedby="sizing-addon1" pattern="([A-Z]){4}-([a-z]){4}">
</div>
<small id="fileHelp" class="form-text text-muted">Input Your Username</small>
</form>
<div class="anim"></div>
@dmitshur
dmitshur / gist:6927554
Last active September 17, 2023 07:35
[Legacy GOPATH mode] How to `go get` private repos using SSH key auth instead of password auth.

WARNING: This gist was created in 2013 and targets the legacy GOPATH mode. If you're reading this in 2021 or later, you're likely better served by reading https://tip.golang.org/cmd/go/#hdr-Configuration_for_downloading_non_public_code and https://golang.org/ref/mod#private-modules.

$ ssh -A vm
$ git config --global url."git@github.com:".insteadOf "https://github.com/"
$ cat ~/.gitconfig
[url "git@github.com:"]
	insteadOf = https://github.com/
$ go get github.com/private/repo && echo Success!
Success!
@yefuchs
yefuchs / gfw_contributors.md
Last active March 4, 2024 05:24
GFW Contributers

#The Great Firewall (GFW) Contributors List

注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量

###Binxing Fang (方滨兴)

中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing

@kogakure
kogakure / .gitignore
Last active December 17, 2023 08:21
Git: .gitignore file for LaTeX projects
*.acn
*.acr
*.alg
*.aux
*.bak
*.bbl
*.bcf
*.blg
*.brf
*.bst