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 <iostream> | |
| #include <thread> | |
| #include <atomic> | |
| #include <chrono> | |
| using namespace std::literals; | |
| std::atomic_int flag{ 0x00 }; | |
| std::atomic_int x{ 0 }, y{ 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
| from datetime import datetime | |
| import os | |
| from pathlib import PurePath | |
| from urllib.parse import urlparse | |
| from win32comext.shell import shellcon | |
| from win32comext.propsys import propsys, pscon | |
| import pythoncom | |
| def set_media_time(path: str, time: str): | |
| # pythoncom.CoInitialize() |
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
| def merge_and_save_image(bytes_list, save_path): | |
| img_list = [] | |
| img_mode = 'RGB' | |
| img_width = 0 | |
| img_height = [0] | |
| for i, bytes in enumerate(bytes_list): | |
| try: | |
| img = Image.open(io.BytesIO(bytes)) | |
| except PIL.UnidentifiedImageError: | |
| continue |
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
| import opencc | |
| cvt = opencc.OpenCC('t2s.json') | |
| dst = cvt.convert(src) |
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
| set vboxmgr="C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" | |
| %vboxmgr% discardstate os_0 | |
| %vboxmgr% startvm os_0 --type headless |
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
| MSBuild -nologo -t:ReBuild -v:n -m -p:Configuration=Debug,Platform=x64 MFPlayer.sln |
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
| ffmpeg -hide_banner -y -i in.mp4 -i cover.jpg -map 0:v -map 1:v -c copy -disposition:v:1 attached_pic -metadata title="some title" -metadata artist="some author" -metadata creation_time="2023-02-03 12:00:00+0800" out.mp4 |
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
| ffmpeg -hide_banner -y -user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1518.52" -referer "" -i "http://.m3u8" -c copy out.mp4 |
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
| HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Run | |
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run | |
| HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run | |
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run | |
| HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32 |
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
| cookies = SimpleCookie() | |
| cookies.load(open('cookie.txt', 'r', encoding='utf8').read()) | |
| cookies = {k: v.value for k, v in cookies.items()} | |
| json.dump(dict(session.cookies.items()), open('cookie.json', 'w', encoding='utf8'), indent=2) |
OlderNewer