I hereby claim:
- I am zfox49 on github.
- I am zfox49 (https://keybase.io/zfox49) on keybase.
- I have a public key whose fingerprint is 3216 55FD F882 A8C1 E294 09F3 9285 232B 68DC 5B97
To claim this, I am signing this object:
import requests | |
import socket | |
def updateTorIP(host="127.0.0.1", port=9051, passwd="mypassword", torProxy="socks5://127.0.0.1:9050"): | |
if torProxy: | |
proxies = { | |
"http": torProxy, | |
"https": torProxy, | |
} | |
else: |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" 测试 Python 在什么情况下会输出 Unicode 字符串 | |
需要首先理解在 Python 中 Unicode 类型和 Unicode 字符串指的不是同一个东西。 | |
Unicode 字符串是 str 类型,但它的值的表现形式是 Unicode 编码形式。 | |
""" | |
def printt(str): |
import iptools | |
with open("chn.txt") as f,open("chnroute-ipip.txt",mode="w") as o: | |
line = f.readline() | |
while line: | |
ip,netmask = line.split(" ") | |
print("Now Processing IP: "+str(ip)+" Netmask: "+str(netmask)) | |
cidr = iptools.ipv4.netmask2prefix(str(netmask)) | |
o.writelines("prefixcmd "+str(ip)+"/"+str(cidr)+" suffixcmd\n") | |
line = f.readline() |
import iptools | |
with open("chn.txt") as f,open("proxifier.txt",mode="w") as o: | |
line = f.readline() | |
while line: | |
ip,netmask = line.split(" ") | |
print("Now Processing IP: "+str(ip)+" Netmask: "+str(netmask)) | |
ipstart,ipend=iptools.ipv4.subnet2block(str(ip)+"/"+str(netmask)) | |
o.writelines(ipstart+"-"+ipend+"\n") | |
line = f.readline() |
204.79.197.212 onedrive.live.com | |
204.79.197.212 skyapi.onedrive.live.com | |
204.79.197.212 d.docs.live.net | |
204.79.197.212 dm2304files.storage.live.com | |
204.79.197.212 ocws.officeapps.live.com | |
40.74.129.10 www.onenote.com | |
104.210.40.87 nexus.officeapps.live.com | |
204.79.197.212 ocos-office365-s2s.msedge.net | |
204.79.197.212 directory.services.live.com | |
204.79.197.212 docs.live.net |
I hereby claim:
To claim this, I am signing this object:
# -*- coding: utf-8 -*- | |
import requests | |
import re | |
import time | |
def get_xml(): | |
try: | |
global l | |
doc = requests.get("http://bbsrss.mirrors.cqupt.edu.cn/bbs/forum.php?mod=rss&fid=68&auth=0").text | |
l = [[x, y] for x, y in zip(re.findall(re.compile(r'<title>(.*?)</title>'), doc)[2:], |
[Proxy] | |
WIFI = direct, interface=en2 | |
VPN = direct, interface=utun0 | |
[Rule] | |
DOMAIN-SUFFIX,yach.me,WIFI | |
FINAL,VPN |