小修一下B站在线人数脚本,加个代理
不错吧。 真有人拿去玩了。。。 https://gist.github.com/cnbeining/6b2273d7e332f29193d0
wp-search-with-algolia
domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init
action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/vhosts/cnbeining.com/html/wp-includes/functions.php on line 6121不错吧。 真有人拿去玩了。。。 https://gist.github.com/cnbeining/6b2273d7e332f29193d0
应求,就这样。 什么Queue啊都不用了,投入list的怀抱吧。 https://gist.github.com/cnbeining/6b2273d7e332f29193d0 #!/usr/bin/env python #coding:utf-8 # Author: Beining –<cnbeining#gmail.com> # Purpose: A simple script to get lots of viewers of Bilibili Live # Created: 08/11/2015 # Error report: http://www.cnbeining.com/?p=952… Read more »
其实是第一个正式的多进程东西。 把大部分要踩的坑都遇上了。 OSX不用这个:开Safari 自然是HTML5. https://github.com/cnbeining/ABPlayerHTML5-Py 自取。
虽然限制还是很多。 https://github.com/cnbeining/Chrome-Data-Compression-Proxy-Standalone-Python 我也不知道给墙内有什么用,但是就这样吧。
这个东西上次更新是去年8月8日。 时隔一年,一看当初的东西,真是不忍直视。 思路是对的:只不过太难看了。 重写,这样感觉圆满一些。 遇见了一堆当初碰见的坑:因为当时注释太少,都忘记了。补上。 如果用浏览器跑弹幕,有且只有这个方案能跑:HTML5的video必须用真正的HTTP服务器供源。file://不成的。 从开始写到现在,出了一堆wrapper,主要是Danmaku2ASS的,播放核心mpv。 Biligrab也加了这个功能。但是我还是想把视频下到本地慢慢看:因为连通性。 这个东西的初衷是对接Biligrab:现在看起来,做到了。 https://github.com/cnbeining/ABPlayerHTML5-Py 已经不能直接贴一片code了,因为出了依赖:需要自取,建议更新。
今天在学校跑sqlmap玩,然后机器的网就挂了。traceroute 8.8.8.8不通。只有自己AS的几个IP有应答。重启后有时没事有时还是不行。(其实是时间限制) UofT的机器都会分配外网IP,但是IP地址一般保留–是的,跟MAC走。 好吧,忍几分钟,开Github,上这个东西: https://github.com/feross/SpoofMAC 文档很清楚。 如果忘记挂VPN,机器被限制,直接断线换MAC,然后世界照常运行了。 这里就放一个自己抄文档的cheatsheet,给cheat https://github.com/chrisallenlane/cheat 用:
qchan这个床简单耐用,取图片不走PHP所以速度飞快。 改了一下,加了这3个功能。 https://github.com/cnbeining/qchan 有用自取。 这东西的一个妙用是丢Openshift上,前端上一个Cloudflare,用page rule强制大缓存,但是需要改一下HTTPS的设置以免HTTPS不能加载内容。
另一个黑科技。 https://github.com/cnbeining/Biligrab
Flvcd药丸。所以先留一手。 https://github.com/cnbeining/Biligrab 代码下面。
官方没有,我就自己封装一个。 https://github.com/cnbeining/Amazon-Cloud-Drive-Python-SDK 可以用来写客户端什么的。 验证简便。