Skip to content

Instantly share code, notes, and snippets.

View muink's full-sized avatar
🍭
🍭 🍭

Anya Lin muink

🍭
🍭 🍭
  • Azeroth land
View GitHub Profile
@muink
muink / osu_on_linux_overhaul.md
Created February 22, 2019 13:54 — forked from Francesco149/osu_on_linux_overhaul.md
Ultimate guide to low-latency osu on linux
@echo off
:: Letter Viewer
:: View active drive letter, free drive letter and system drive letter
:: Author: muink
:[GetLetter]
setlocal enabledelayedexpansion
:: Get letter
for /f "tokens=1* delims=: " %%i in ('fsutil fsinfo drives') do set "acti=%%j"
set actletter=
@muink
muink / Gpg4win_mkportable.bat
Created May 9, 2018 06:12
Put me into the same directory of Gpg4win mkportable.exe
@echo off
:: Gpg4win mkportable
:: Put me into the same directory of Gpg4win mkportable.exe
:: Author: muink
:start
cls
set /p "target=Enter the target path: "
if exist "%target%" (
dir /ad "%target%">nul 2>nul&&pushd "%target%"||(
@muink
muink / install_uefi_win7.md
Last active October 3, 2024 07:13
UEFI模式下的win7 64位安装

UEFI模式下的win7 64位安装

[toc]

工具与材料准备

  1. Windows 7 64位 支持uefi的修改镜像 参考[这个][Windows 7 x64 镜像整合 (ie11 sp2 xhci NVMe uefi 规避硬件检查 常用运行库)]
  2. [Rufus][] 或 [UltraISO][] 用于创建安装u盘
  3. [BOOTICE][] 可选: 用于手动创建u盘引导
  4. 显示卡驱动安装包
:: Graphics Driver Auto Installer
:: Install graphics driver
:: Author: muink
@echo off&title Graphics Driver Auto Installer
mode con cols=100 lines=27
:Init
cd /d %~dp0
:: In Windows install ISO PE set 1
set PEmode=1
@muink
muink / Win7_sp2.md
Last active January 23, 2026 22:53
Windows 7 x64 镜像整合 (ie11 sp2 sha-2 xhci NVMe uefi 规避硬件检查 常用运行库)

Windows 7 x64 镜像整合 (ie11 sp2 sha-2 xhci NVMe uefi 规避硬件检查 常用运行库)

[toc]

工具与材料准备

  1. Windows 7 64位 MSDN 镜像
@muink
muink / U+B+-mount-tool.bat
Last active January 23, 2026 22:53
U+B+隐藏区挂载工具
:: U+B+隐藏区挂载工具
:: 用于挂载UtlraISO/BOOTICE隐藏分区
:: Author: muink
@echo off
%~1 mshta vbscript:createobject("shell.application").shellexecute("%~f0","::","","runas",1)(window.close)&exit
color 3b
title U+B+隐藏区挂载工具
:check
bootpart -help>nul 2>nul
@muink
muink / manually-repair-system-bootloader-on-uefi-gpt.md
Last active January 23, 2026 22:53
windows传统bios无损转uefi启动(重建uefi引导)

windows传统bios无损转uefi启动(重建uefi引导)

[toc]

引导区别

BIOS: 指定的磁盘0扇区mbr处引导代码 > 活动分区pbr处引导代码 > 活动分区中的引导文件 > 读取引导配置 > 引导指定系统
UEFI: 指定的磁盘的指定分区的\EFI\Boot\bootx64.efi应用(一般是ESP分区) > 读取引导配置 > 引导指定系统

前期准备

@muink
muink / AddMacOptions.bat
Last active January 10, 2025 04:59
Mac Options adder
:: Mac Options adder
:: Mac Options adder
:: Author: muink
@echo off&title Mac Options adder&color 3f
:Main
setlocal enabledelayedexpansion
set Class=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class
set Network=HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Network
set GUID={4D36E972-E325-11CE-BFC1-08002BE10318}