Skip to content

Instantly share code, notes, and snippets.

View Sucareto's full-sized avatar

Sucareto

View GitHub Profile
@Sucareto
Sucareto / 切换Hyper-V.bat
Created November 20, 2022 06:20
修改参数而不是添加启动项,切换启动时的 Hyper-V 状态,允许 VMware 使用嵌套虚拟化。
@echo off
pushd %~dp0
%1 start "" mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c ""%~s0"" ::","","runas",1)(window.close)&&exit
echo "判断当前状态..."
bcdedit /enum {default} | find /I "hypervisorlaunchtype Auto" > nul
if %errorlevel% == 0 (
bcdedit /set {current} HyperVisorLaunchType OFF
echo "Hyper-V 已关闭!"
) else (
@Sucareto
Sucareto / create-dell-key.sh
Last active May 26, 2024 11:10
使用 USB Gadget 功能,创建一个“键盘+鼠标+存储”复合设备,设备 ID 来自 Dell KB216 键盘。可配合 https://github.com/Sucareto/Android_HID_Keyboard 使用。
#!/bin/sh
# https://github.com/Sucareto/Android_HID_Keyboard
device_path="/config/usb_gadget/KB216"
ms_file="/data/data/com.termux/files/home/storage/tmp/mass_storage.img"
# create mass_storage image file
# dd if=/dev/zero of=$ms_file bs=1024MiB count=1
# fallocate -l 1G $ms_file
# loop_device=$(losetup -f)
@Sucareto
Sucareto / Mafuyu_Cursor_Install.inf
Last active June 10, 2022 14:26
Auto install custom mouse cursors for https://twitter.com/L9525/status/1531337918656446464. You can modify Mafuyu_Cursor in lines 61 and 62 to other names for distinction.
[Version]
signature="$CHICAGO$"
[DefaultInstall]
CopyFiles = Scheme.Cur
AddReg = Scheme.Reg,Wreg
[DestinationDirs]
@Sucareto
Sucareto / Asp2Core.py
Last active March 3, 2025 00:49
Asphyxia转Asphyxia Core的数据转换工具
from random import sample, randint
from string import ascii_letters, digits
import json
from re import search
from time import time
import shutil
from colorama import init
init(autoreset=True)
# 全局变量
appealID = 0