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
View install_theos.sh
#!/bin/bash
export THEOS=`pwd`/theos
# clone theos.git
git clone git://github.com/DHowett/theos.git
# clone iphoneheaders.git
cd $THEOS
mv include include.bak
git clone git://github.com/rpetrich/iphoneheaders.git include
@axot
axot / genserial.py
Last active Aug 29, 2015
tkbctf4 "Simple Serial Code"
View genserial.py
import random
import string
import md5
flag = md5.new()
flag.update("this_is_not_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)]
@axot
axot / haproxy.md
Last active Sep 9, 2019
HAProxy rate limit across overall http requests.
View haproxy.md

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,

You can’t perform that action at this time.