Skip to content

Instantly share code, notes, and snippets.

View MagicalDrizzle's full-sized avatar
🌸
trying my worst...

Mizuki Nguyen MagicalDrizzle

🌸
trying my worst...
View GitHub Profile
@MagicalDrizzle
MagicalDrizzle / !README.md
Last active March 15, 2024 14:41 — forked from mmozeiko/!README.md
Download MSVC compiler/linker & Windows SDK without installing full Visual Studio

This downloads standalone 64-bit MSVC compiler, linker & other tools, also headers/libraries from Windows SDK into portable folder, without installing Visual Studio. Has bare minimum components - no UWP/Store/WindowsRT stuff, just files & tools for 64-bit native desktop app development.

Run python.exe portable-msvc.py and it will download output into msvc folder. By default it will download latest available MSVC & Windows SDK - currently v14.32.17.2 and v10.0.22621.0.

You can list available versions with python.exe portable-msvc.py --show-versions and then pass versions you want with --msvc-version and --sdk-version arguments.

To use cl.exe/link.exe from output folder, first run setup.bat - after that PATH/INCLUDE/LIB env variables will be setup to use all the tools as usual. You can also use clang-cl.exe with these includes & libraries.

To use clang-cl.exe without running setup.bat, pass extra /winsysroot msvc argument (msvc is folder name where output is stored).

@MagicalDrizzle
MagicalDrizzle / batch.bat
Created May 12, 2022 18:51
small batch scripts to do tedious stuffs
REM brightness control in winPE where most of the time there's no brightness bar
REM seems to only work on laptops
REM mostly copypasted from stackoverflow and I just added some QoL stuffs
@echo off
set ACDC=DC
WMIC /NameSpace:\\root\WMI Path BatteryStatus Get PowerOnline | find /i "true" > nul && set ACDC=AC
for /f "tokens=*" %%i in ('powercfg -q ^| find "(Display brightness)"') do set brtnss=%%i
set brtnss=%brtnss:~20,36%
:BRN
powercfg -q SCHEME_CURRENT SUB_VIDEO %brtnss% | find "Current %ACDC%"
@MagicalDrizzle
MagicalDrizzle / user-overrides.js
Last active November 13, 2023 02:00
my personal overrides for every new firefox profile
// -------------------------------------------- //
// my overrides
// personal prefs
// NextDNS block page -- https://nextdns.io/ca
user_pref("security.enterprise_roots.enabled", true);
// Add custom search engines -- https://bugzilla.mozilla.org/show_bug.cgi?id=1195005#c23
user_pref("browser.urlbar.update2.engineAliasRefresh", true);
// sort tabs by recently used order
user_pref("browser.ctrlTab.sortByRecentlyUsed", true);
// for Vencord - dev edition
@MagicalDrizzle
MagicalDrizzle / stories.txt
Last active August 4, 2022 18:16
stories collection
------ separates different pieces
~four months into dating, their first night together~
"hinari...um...i-i don't really know what to do...i don't know how two girls *blushes* d-do it..."
"i-it's not like i have any experience either, mizuki...i, um, i just kinda read stuffs online..."
"i'm really happy that you want to do those stuffs with me, hinari...p-please be gentle..."
"me too...um...should we start?"
"um...sure...what should i do though...?"
"i read that you begin with a kiss..."
"i-i see"
"close your eyes..."