Skip to content

Instantly share code, notes, and snippets.

View mengskysama's full-sized avatar
💭
I may be slow to respond.

mengskysama mengskysama

💭
I may be slow to respond.
View GitHub Profile
import urllib2
import re
for i in range(100000):
try:
response = urllib2.urlopen('http://www.freexs.cn/info/%s.htm' % i)
t = re.findall('<h1>([\S\s]+?)</h1>', response.read())[0]
print i, t
except:
print i
import os
import re
class Iptables(object):
_iptables = 'iptables'
@classmethod
def get_chain(cls):
@mengskysama
mengskysama / sad.png
Last active August 29, 2015 14:07
Optimizing Shadowsocks
1