Skip to content

Instantly share code, notes, and snippets.

Zheng SHAO axot

Block or report user

Report or block axot

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
axot /
Last active Sep 9, 2019
HAProxy rate limit across overall http requests.

Here are many examples to limit RPS for each client, at the same time, we also need a way to setup a global request limit.

There are two requirements for this purpose.

  1. instead track client ip, we need a global track.
  2. assume we want to setup 1k RPS as a global limit, it should alway allow first 1k requests and only cut off the excess parts.

Here is an example,

axot /
Last active Aug 29, 2015
tkbctf4 "Simple Serial Code"
import random
import string
import md5
flag =
flag_md5 = flag.hexdigest()
print "flag_md5:", flag_md5
flag_md5 = [flag_md5[i:i+4] for i in range(0, len(flag_md5), 4)]
export THEOS=`pwd`/theos
# clone theos.git
git clone git://
# clone iphoneheaders.git
mv include include.bak
git clone git:// include
You can’t perform that action at this time.