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 / user-overrides.js
Last active November 17, 2024 08:12
Arkenfox override for serious, general and WinPE profiles.
//------------ Personal overrides ------------//
// For serious profiles (Check line 252):
// 1. DNS-over-HTTPS disabled (in favor of system YogaDNS/systemd-resolved)
// 2. Cookie clearing enabled
// 3. SSL safe negotiation enabled
//--------------------------------------------//
// Activity Stream: Enable Weather
user_pref("browser.newtabpage.activity-stream.system.showWeather", true);
// user_pref("browser.newtabpage.activity-stream.showWeather", true); // default: true
user_pref("browser.newtabpage.activity-stream.weather.display", "detailed");
@MagicalDrizzle
MagicalDrizzle / yt-dlp.conf
Created August 22, 2024 08:15
Personal yt-dlp config
-i
-o "%(uploader)s (%(uploader_id)s)/%(upload_date)s - %(title)s - (%(duration)ss) [%(resolution)s] [%(id)s] [%(vcodec)s].%(ext)s"
# -o "%(upload_date)s - %(title)s - (%(duration)ss) [%(resolution)s] [%(id)s].%(ext)s"
# Uniform Format
# bv: bestvideo, ba: bestaudio, b: best (both)
-f "(((bv[height=?1080]/bv[height<=?1080])[vcodec^=av01]/(bv[height=?1080]/bv[height<=?1080]))+ba / (b[height=?1080]/b[height<=?1080]))[format_id!$=-drc]"
# [vcodec^=vp09]
# --prefer-ffmpeg
--ffmpeg-location "C:\Scoop\apps\ffmpeg-shared-nightly\current\bin"
@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-general.js
Last active November 10, 2024 12:10
my personal overrides for every new firefox profile
//------------ Personal overrides ------------//
// For general profiles (Check line 252):
// DNS-over-HTTPS enabled
// Cookie clearing disabled
// SSL safe negotiation disabled
//--------------------------------------------//
// Activity Stream: Enable Weather
user_pref("browser.newtabpage.activity-stream.system.showWeather", true);
// user_pref("browser.newtabpage.activity-stream.showWeather", true); // default: true
user_pref("browser.newtabpage.activity-stream.weather.display", "detailed");
@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..."