This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from hashlib import sha256 | |
from Crypto.Cipher import AES | |
from Crypto import Random | |
from base64 import * | |
import os | |
import M2Crypto | |
default_passphrase = 'test' | |
def kec(str_data, str_key=default_passphrase): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import itertools | |
l = ['li', 'lu', 'lin', 'lun', 'liu'] | |
x = ['xi', 'xin', 'xun', 'xiu'] | |
y = ['yi', 'yu', 'yin', 'yun'] | |
for i in list(itertools.product(l, x, y)): | |
random_name = ''.join(i) | |
if len(random_name) == 8: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
; WARNING, this file will remove Google Chrome registry entries | |
; from your Windows Registry. Consider backing up your registry before | |
; using this file: http://support.microsoft.com/kb/322756 | |
; To run this file, save it as 'remove.reg' on your desktop and double-click it. | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Classes\ChromeHTML] | |
[-HKEY_LOCAL_MACHINE\SOFTWARE\Clients\StartMenuInternet\chrome.exe] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist] | |
"1"="ldcecbkkoecffmfljeihcmifjjdoepkn;https://adblockplus.org/devbuilds/adblockpluschrome/updates.xml" | |
;在 Chrome 政策中加入强制安装拓展项目 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Chromium\ExtensionInstallForcelist] | |
"1"="ldcecbkkoecffmfljeihcmifjjdoepkn;https://adblockplus.org/devbuilds/adblockpluschrome/updates.xml" | |
;在 Chromium 政策中加入强制安装拓展项目 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
del "\\?\%~1" /f /s /q | |
rd "\\?\%~1" /s /q |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal enabledelayedexpansion | |
REM 加载模块 | |
for /f "delims=[]" %%i in ('find /n "pronounceT" ti.ini') do set pt=%%i | |
for /f "delims=[]" %%i in ('find /n "pronounceF" ti.ini') do set pf=%%i | |
for /f "delims=[]" %%i in ('find /n "spellT" ti.ini') do set st=%%i | |
for /f "delims=[]" %%i in ('find /n "spellF" ti.ini') do set sf=%%i | |
for /f "delims=[]" %%i in ('find /n "idiomT" ti.ini') do set it=%%i | |
for /f "delims=[]" %%i in ('find /n "idiomF" ti.ini') do set if=%%i | |
for /f "delims=[]" %%i in ('find /n "punctuationT" ti.ini') do set bt=%%i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
::注意:Vista、Win7、Win8 请用管理员运行此程序 | |
echo Loading... | |
del LAST_CHANGE /f /s /q | |
del install.exe /f /s /q | |
wget "http://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/LAST_CHANGE" -OLAST_CHANGE | |
for /f %%i in (LAST_CHANGE) do set newver=%%i | |
del LAST_CHANGE /f /s /q | |
cls | |
echo, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding=utf-8 -*- | |
# 哔哩哔哩历史弹幕 (XML) 下载器 | |
# 使用:downdanmu.py av314 | |
import StringIO | |
import datetime | |
import gzip | |
import json | |
import os |
NewerOlder