Skip to content

Instantly share code, notes, and snippets.

@shizhao
shizhao / KMSkey.bat
Last active March 19, 2022 04:49
Activation Windows for KMS (change line16, set KMS server )
@echo off
cls
::Detecting OS version
echo ****************************************
echo Detecting OS version......
echo ****************************************
echo.
wmic os get caption,CSDVersion,buildnumber
ver
#!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import datetime
import urllib2,re, random
import scripts.upload,time, StringIO, hashlib, base64
import tempfile
import pywikibot
import pywikibot.data.api

#The Great Firewall (GFW) Contributers List

注:数据来源为 dblp 和 cndblp, 下面括号中的数字表示 dblp 中显示的跟方滨兴合作论文的数量

###Binxing Fang (方滨兴)

中国工程院院士,北京邮电大学教授,中国科学院计算技术研究所网络方向首席科学家
http://en.wikipedia.org/wiki/Fang_Binxing

@shizhao
shizhao / OPR_reviewed_count.user.js
Last active October 16, 2019 14:36
Tampermonkey user script
// ==UserScript==
// @name OPR reviewed count
// @namespace http://tampermonkey.net/
// @version 0.3
// @description 当前会话的wayfarer审po计数。计数不包括编辑审核和一星及重复。提醒自己小心CD!
// @author shizhao
// @match https://wayfarer.nianticlabs.com/review*
// @updateURL https://gist.github.com/shizhao/b6d60630c315ad1446fad780391d5207/raw/69357d43c0baec6f18377de4fa20765fb6b608b6/OPR_reviewed_count.user.js
// @downloadURL https://gist.github.com/shizhao/b6d60630c315ad1446fad780391d5207/raw/69357d43c0baec6f18377de4fa20765fb6b608b6/OPR_reviewed_count.user.js
// @grant none
data:text/html,
<style type="text/css">
#e {
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
font-size:16px;
}
@shizhao
shizhao / xmrcheck.bat
Last active January 24, 2019 11:15
检查本机是否存在Xmr挖矿病毒
@echo off
set xmr=0
REM 检查是否存在PortTunnel服务
SC QUERY PortTunnel > NUL
IF %errorlevel% NEQ 1060 (
ECHO PortTunnel service exist. Found Xmr mining virus!
set xmr=1
)
REM 检查是否存在Network Connected服务
@shizhao
shizhao / pub.py
Last active December 27, 2016 08:07
Panoramio upload bot
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Script to upload images of panoramio to wikimedia commons.
by Shizhao 2014
"""
import urllib2,re, random
import datetime
@shizhao
shizhao / Ruby Notepad Bookmarklet.js
Last active November 9, 2016 08:09 — forked from jakeonrails/Ruby Notepad Bookmarklet
修改ace/mode/ruby,适应不同语言
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;}</style><div id="e"></div><script src="https://raw.github.com/ajaxorg/ace-builds/master/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/ruby");</script>
浙江签单哥
警察杜平
宣恩杀人现场
叶迎春内衣
孙国相拆迁
中央领导内幕
盘锦二表哥姜伟华
盘锦开枪
四学者建言
只身挡坦克
<style type="text/css">
#cn-toggle-box {
float: right;
}
.wam_2015_image {
border: 1px
}
</style>
<div id="wam-banner" class="plainlinks" style="width: 99%; background: #fff; color: #111; -moz-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35); -webkit-box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35); box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.35); -moz-border-radius: 2px; -webkit-border-radius: 2px; border-radius: 2px;">