Skip to content

Instantly share code, notes, and snippets.

View ntkrnl64's full-sized avatar
:octocat:
meow meow meow

NtKrnl64 ntkrnl64

:octocat:
meow meow meow
View GitHub Profile
@ntkrnl64
ntkrnl64 / full-crash-dump-enable.ps1
Last active March 29, 2026 04:09
Enable Full Crash Dump on Windows
# Enable Full (Complete) BSOD Memory Dump on Windows
# --- Self-elevate if not running as Administrator ---
if (-not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(
[Security.Principal.WindowsBuiltInRole]::Administrator)) {
Start-Process -FilePath "powershell.exe" -ArgumentList "-ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs
exit
}
$CrashControlPath = "HKLM:\SYSTEM\CurrentControlSet\Control\CrashControl"
@ntkrnl64
ntkrnl64 / linux.do no watermark-1.0.user.js
Last active January 31, 2026 14:10
linux.do no watermark
// ==UserScript==
// @name linux.do no watermark
// @namespace http://tampermonkey.net/
// @version 1.0
// @description 强制开启 ShadowRoot 并拦截/隐藏特定水印元素
// @author NtKrnl64
// @match *://linux.do/*
// @run-at document-start
// @grant none
// ==/UserScript==
@ntkrnl64
ntkrnl64 / MineBedrock.java
Last active January 11, 2026 08:32
MineBedrock Plugin
package org.krnl.mineBedrock;
import org.bukkit.Material;
import org.bukkit.World;
import org.bukkit.block.Block;
import org.bukkit.event.Listener;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.event.block.Action;
import org.bukkit.plugin.java.JavaPlugin;
@ntkrnl64
ntkrnl64 / github-switch-account.user.js
Created January 1, 2026 08:10
GitHub Switch Account Button
// ==UserScript==
// @name GitHub Switch Account Button
// @icon https://github.com/favicon.ico
// @version 1.0
// @description Adds a sticky 'Switch Account' button to the bottom right of GitHub pages.
// @author NtKrnl32 / NtKrnl64
// @match https://github.com/*
// @exclude https://github.com/switch_account*
// @grant none
// @run-at document-idle
package org.krnl.meowmeow.client;
import net.fabricmc.api.ClientModInitializer;
import net.fabricmc.fabric.api.client.message.v1.ClientSendMessageEvents;
public class MeowmeowClient implements ClientModInitializer {
@Override
public void onInitializeClient() {
ClientSendMessageEvents.MODIFY_CHAT.register(message -> {