Skip to content

Instantly share code, notes, and snippets.

@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
@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 / 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
#!/usr/bin/python
# -*- coding: utf-8 -*-
import datetime
from pywikibot import config
import pywikibot
import pywikibot.data.api
site = pywikibot.Site()
@shizhao
shizhao / MediaWiki.xml
Created April 6, 2016 14:32
Notepad++ mediawiki 语法高亮
<NotepadPlus>
<UserLang name="MediaWiki" ext="wiki" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="no" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="yes" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="yes" Keywords6="yes" Keywords7="yes" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00&lt;nowiki&gt; 01 02&lt;/nowiki&gt; 03&lt;!-- 03&lt;math&gt; 03&lt;pre&gt; 03&lt;poem&gt; 04--&gt; 04&lt;/math&gt; 04&lt;/pre&gt; 04&lt;/poem&gt;</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>
<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;">
@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
浙江签单哥
警察杜平
宣恩杀人现场
叶迎春内衣
孙国相拆迁
中央领导内幕
盘锦二表哥姜伟华
盘锦开枪
四学者建言
只身挡坦克
data:text/html,
<style type="text/css">
#e {
position:absolute;
top:0;
right:0;
bottom:0;
left:0;
font-size:16px;
}