This file contains hidden or 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
#include<Windows.h> | |
#include<jsrt.h> | |
#pragma comment(lib,"jsrt.lib") | |
int WINAPI wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hPrevInst, _In_ LPWSTR param, _In_ int iSW) | |
{ | |
JsRuntimeHandle runtime; | |
JsContextRef context; | |
JsValueRef result; | |
unsigned currentSourceContext = 0; |
This file contains hidden or 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
# python 3.11 | |
import os | |
import json | |
from urllib import request | |
from urllib.error import HTTPError | |
def save_json(str,path): | |
print("保存至\""+path+".json\"") | |
open(path+".json","wb").write(str) |
This file contains hidden or 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 | |
if "%~1"=="" ( | |
echo No path specified. | |
goto:eof | |
) | |
call:listcd %1 | |
goto:eof | |
:listcd |
This file contains hidden or 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
www.baidu.com 广告 强制跳转 | |
m.baidu.com 广告 强制跳转 | |
image.baidu.com | |
cn.bing.com 广告 | |
weibo.com | |
s.weibo.com | |
m.weibo.cn | |
www.zhihu.com 强制登录 | |
blog.csdn.net 广告 | |
sina.cn |
This file contains hidden or 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\Microsoft\Windows\Windows Error Reporting] | |
"DontShowUI"=dword:00000000 | |
This file contains hidden or 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
# Python 3.11 | |
import sys | |
#00:00:00,000 | |
def srt_time_to_ms(str): | |
return ((int(str[0:2])*60+int(str[3:5]))*60+int(str[6:8]))*1000+int(str[9:12]) | |
def ms_to_srt_time(ms): | |
milli=ms%1000 |
This file contains hidden or 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
# Python 3.9 | |
import sys | |
def restore_bili_video(video_path): | |
print("Restoring... "+video_path) | |
ext=video_path[video_path.rfind("."):] | |
fin=open(video_path,"rb") | |
if fin.read(1)!=b"\xff": | |
print("This file is not encrypted by bilibili.") |
This file contains hidden or 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
# python 3.11 | |
import os | |
import sys | |
from urllib import request | |
import urllib.error | |
# qqem <startid> <endid> [savepath] | |
if len(sys.argv)<2: | |
print("Usage: qqem <startid> [endid] [savepath]") |
NewerOlder