Monthly Archives: September 2015

换用Cloudflare当DNS

DNSPod感觉不靠谱。 CloudXNS。。。国内无爱。 Route53要钱。 Linode的大陆封。 所以老老实实,Cloudflare。 好处是没什么限制,TTL2分钟也够良心。 当然了,缺点是看不见记录:没办法了。

翻译:PreCertificates(前证书)是个啥?

声明:喝了酒翻译的,出问题不负责。 原文: blog.ejbca.org/2013/09/certificate-transparency-and.html 词汇表: TBSCertificate:To-Be-Signed, 将要被颁发的证书,https://stackoverflow.com/questions/5304531/certificate-structure issuerDN:发放者专有名称,http://www-01.ibm.com/support/knowledgecenter/SSPLFC_7.2.2/com.ibm.taddm.doc_7.2.2/zemainstall/zema_install_cce_api_appendix_PUT_eccapi_admin_config_certificates_alias.html?lang=zh subjectDN:主题专有名称,同上 CT:Certificate Transparency,证书透明度 On to PreCertificates… 前证书: PreCertificates are defined in section “3.1. Log Entries” as (text trimed by me) “The Precertificate is… Read more »

舰娘统计 helper functions

def get_max_time(normal = ”, large = ”): normal_tuple = normal.split() large_tuple = large.split() max_time = 100 #资材100x for i, j in zip(normal_tuple, large_tuple): time_this = int(int(j) / int(i)) max_time =… Read more »

Note: Python: Follow 301 redirect

import urllib.parse as urlparse import http.client as httplib #———————————————————————- def resolve_http_redirect(url, depth=0): “””http://www.zacwitte.com/resolving-http-redirects-in-python “”” if depth > 10: raise Exception(“Redirected “+depth+” times, giving up.”) o = urlparse.urlparse(url,allow_fragments=True) conn = httplib.HTTPConnection(o.netloc)… Read more »

笔记:找视频网站解析的思路

最近给you-get写了不少解析,但是自己的repo为了更新经常删,所以留不下记录,只能在主repo里面留名了。https://github.com/soimort/you-get/graphs/contributors 例子仅供参考,肯定不完整,主要抛砖引玉,想到哪写到哪。  直接网页截取?(FC2Video) 用exec直接变dict?(pixnet) encode是否全替换?(pixnet) Flash引出的API?(很多,例如,Bilibili) API参数是否可调?(pixnet,fun.tv) 参数可否不加?(pixnet,Bilibili) key是否可以申请?(VImeo,Bilibili) 是否涉及hash?(绝大多数) 反编译源文件?(iQiyi and shitloads of them ,letvcloud) HTML5?(Weibo Miaopai) API?移动端?(Fun.tv) API是否相同?(Fun.tv,Letvcloud) 是否某些加密不可进行?(Letvcloud) 移动网站?(Pandora) 是否直接页内?(Pandora) iOS?Android? 清晰度是否相同? 移动端? 是否有API?(Vimeo,Bilibili) 是否HTTPS?(Vimeo) 可否MITM/SSLStrip?(Vimeo) 是否需要hash?(很多)… Read more »