Skip to content

Instantly share code, notes, and snippets.

View SunsetMkt's full-sized avatar
🏳️‍🌈

Sunset Mikoto SunsetMkt

🏳️‍🌈
View GitHub Profile
@SunsetMkt
SunsetMkt / tspkgen.py
Last active October 15, 2025 05:07 — forked from WitherOrNot/tspkgen.py
Terminal Services License Server ID + License Key Pack generator
from Crypto.Cipher import ARC4
from hashlib import sha1, md5
from random import randint
from ecutils.core import Point, EllipticCurve
from sys import argv
KCHARS = "BCDFGHJKMPQRTVWXY2346789"
SPK_ECKEY = {
"a": 1,
@SunsetMkt
SunsetMkt / ClearRDPHistory.bat
Created October 14, 2025 05:13 — forked from WindyNova/ClearRDPHistory.bat
Clear RDP Connection History Batch
@REM https://www.tachytelic.net/2019/01/clear-rdp-cache/
@echo off
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Default" /va /f
reg delete "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers" /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Terminal Server Client\Servers"
del /ah %homepath%\documents\default.rdp
@SunsetMkt
SunsetMkt / Add-DevToMyWinServer.ps1
Created October 7, 2025 15:17 — forked from bentman/Add-DevToMyWinServer.ps1
Install Dev Tools on Win Server 2022
<#
.SYNOPSIS
Script to install Dev Tools on Windows Server (tested on 2022)
.DESCRIPTION
Installs the following from multiple resources:
Microsoft.VCLibs *latest (GitHub via winget-cli deps)
Microsoft.UI.Xaml *latest (GitHub API)
winget-cli (dynamic version retrieval from api.github.com)
Microsoft.WindowsTerminal (dynamic version retrieval from api.github.com)
Microsoft pwsh.exe vCurrent (winget)
@SunsetMkt
SunsetMkt / HiddenMacOSDebuggingPanel.md
Created September 13, 2025 08:27 — forked from usagimaru/HiddenMacOSDebuggingPanel.md
Enables useful debugging panel in macOS apps

Use _NS_4445425547 or NS🐞 for enables debuggging panel. When enabled it, a ladybug 🐞 menu appears in the app menu bar.

“4445425547” means DEBUG in Unicode table.

0x44=D
0x45=E
0x42=B
0x55=U
0x47=G

@SunsetMkt
SunsetMkt / admin_sword.txt
Last active July 30, 2025 10:37
Minecraft Admin Tools Commands
/give @p netherite_sword[enchantments={"minecraft:bane_of_arthropods":255,"minecraft:fire_aspect":2,"minecraft:knockback":2,"minecraft:looting":3,"minecraft:sharpness":255,"minecraft:smite":255,"minecraft:sweeping_edge":255,"minecraft:mending":255,"minecraft:unbreaking":255},item_name={"bold":true,"text":"Admin Sword - Built by MCStacker"},unbreakable={},attribute_modifiers=[{id:"attack_speed",type:"attack_speed",amount:255,operation:"add_multiplied_total"},{id:"attack_damage",type:"attack_damage",amount:255,operation:"add_multiplied_total"}],jukebox_playable="minecraft:cat",rarity="epic"] 1
@SunsetMkt
SunsetMkt / cf_redirect_nxdomain.js
Last active July 28, 2025 02:22
Cloudflare redirect any NXDOMAIN
// Redirect NXDOMAIN
// Set a CNAME record for * to anything.local (preserved TLD)
// Will raise an Origin DNS error (Cloudflare 1016/HTTP 530)
// So we can catch it with Cloudflare Rules Snippet
export default {
async fetch(request) {
// Send original request to the origin
const response = await fetch(request);
const statusCode = response.status || "";

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@SunsetMkt
SunsetMkt / brave-debloat.reg
Created June 29, 2025 14:20 — forked from yashgorana/brave-debloat.reg
Debloat Brave using Chromium policies. Auto-generated using https://github.com/yashgorana/chrome-debloat
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\BraveSoftware\Brave]
"TorDisabled"=dword:00000001
"BraveRewardsDisabled"=dword:00000001
"BraveWalletDisabled"=dword:00000001
"BraveVPNDisabled"=dword:00000001
"BraveAIChatEnabled"=dword:00000000
"BraveSyncUrl"=""
"DefaultGeolocationSetting"=dword:00000002
@SunsetMkt
SunsetMkt / cloudflared.sh
Created June 25, 2025 10:31
Install cloudflared x64 on Debian
# Add cloudflare gpg key
sudo mkdir -p --mode=0755 /usr/share/keyrings
curl -fsSL https://pkg.cloudflare.com/cloudflare-main.gpg | sudo tee /usr/share/keyrings/cloudflare-main.gpg >/dev/null
# Add this repo to your apt repositories
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/cloudflared any main' | sudo tee /etc/apt/sources.list.d/cloudflared.list
# install cloudflared
sudo apt-get update && sudo apt-get install cloudflared
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
T3ZWQ-P2738-3FJWS-YE7HT-6NA3K
KFZUS-F3JGV-T95Y7-BXGAS-5NHHP
65Z2L-P36BY-YWJYC-TMJZL-YDZ2S
SFZHH-2Y246-Z483L-EU92B-LNYUA
GSZVS-5W4WA-T9F2E-L3XUX-68473
FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS
Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4
DAZPH-G39D3-R4QY7-9PVAY-VQ6BU
KLZ5G-X37YY-65ZYN-EUSV7-WPPBS