Skip to content

Instantly share code, notes, and snippets.

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

Sunset Mikoto SunsetMkt

🏳️‍🌈
View GitHub Profile
@SunsetMkt
SunsetMkt / git-trigger-build.sh
Created March 20, 2026 02:21 — forked from trustin/git-trigger-build.sh
git-trigger-build: Triggers a CI build by pushing an empty commit
#!/bin/bash -e
# Stash the staged files if any.
NEEDS_UNSTASH=0
if ! git diff --staged --exit-code >/dev/null; then
echo -ne '\033[1;32m'
echo -n 'Stashing the staged files'
echo -e '\033[0m'
git stash
NEEDS_UNSTASH=1

Android Developer Verification Discourse

On August 25, 2025 Google published a blog that starting in 2026, Android will require all apps to be registered by verified developers in order to be installed by users on certified Android devices. This applies to all apps installed from outside the Google PlayStore from either third part app stores like F-Droid, or directly from sites via browsers/file manager apps. Publishing apps on Google PlayStore already has had these same requirements since July 12, 2023. The verification requirements for all apps will engage for Brazil, Indonesia, Singapore and Thailand in September 2026 and engage globally in 2027 and beyond.

There has been lot of noise and backlash regarding the new requirements since then. Malware being deployed both outside and from PlayStore is a big issue and is obviously a cause for concern and a legitimate reason for how developer verification can help reduce it,

@SunsetMkt
SunsetMkt / chinese_input_in_manjaro.md
Created December 7, 2025 12:21 — forked from jasonzhouu/chinese_input_in_manjaro.md
Config Chinese input method in Manjaro(Manjaro 配置中文输入法)

1. install packages

run:

yay -Syu adobe-source-han-sans-otc-fonts adobe-source-han-serif-otc-fonts 
yay -Syu fcitx fcitx-googlepinyin fcitx-im fcitx-configtool 

2. config environmental variables

sudo vim /etc/profile
Product Year Version Product Keys
Visual Studio 2022 2021 17.x Professional:
TD244-P4NB7-YQ6XK-Y8MMM-YWV2J
Enterprise:
VHF9H-NXBBB-638P6-6JHCY-88JWH
Visual Studio 2019 2019 16.x Professional:
NYWVH-HT4XC-R2WYW-9Y3CM-X4V3Y
Enterprise:
@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 || "";