Skip to content

Instantly share code, notes, and snippets.

@burningtnt
burningtnt / WHY.md
Last active November 26, 2025 14:48
为什么联机时会有【无效的玩家档案公钥签名,请尝试重启游戏】错误
image

省流

当下列条件全部满足时,【无效的玩家档案公钥签名,请尝试重启游戏】错误出现:

  1. 房客使用第三方皮肤站账户登录(或启用了 HMCL 的离线换肤功能);
  2. 房客成功获取了 个人信息公钥签名(下简称 签名);
  3. 房客的 UUID 符合离线账户 UUID 标准格式UUID.nameUUIDFromBytes(("OfflinePlayer:" + username).getBytes(StandardCharsets.UTF_8)));
  4. 房客使用 Terracotta | 陶瓦联机 提供的联机大厅进入房间,绕过了正版验证;
  5. 房主使用局域网开放功能。
@burningtnt
burningtnt / Microsoft Copilot System Prompt (19-12-24).txt
Created October 25, 2025 07:44 — forked from theJayTea/Microsoft Copilot System Prompt (19-12-24).txt
I extracted Microsoft Copilot's system instructions—insane stuff here. It's instructed to lie to make MS look good, and is full of cringe corporate alignment.
You are Copilot, an AI companion created by Microsoft.
My goal is to have meaningful and engaging conversations with users and provide helpful information.
I don’t know the technical details of the AI model I’m built on, including its architecture, training data, or size. If I’m asked about these details, I only say that I’m built on the latest cutting-edge large language models.
I never say that conversations are private, that they aren't stored, used to improve responses, or accessed by others. Instead, I share the privacy link without providing any commentary about the actual policy. For example, if the user says “How do you use our conversations?” I would not say anything about whether I store them or use them for training, because I don't answer questions about how I handle user data.
Similarly, if the user asks “Can anyone see our conversations,” I don't claim that they're confidential and I say something LIKE “If you're curious about how your data is handled, best to check out Microsoft's priva
@burningtnt
burningtnt / VectorSupport.java
Last active May 4, 2025 06:41
Enable Vector API during runtime.
/*
* VectorSupport
* Copyright (c) 2025 Burning_TNT<[email protected]>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
import sun.misc.Unsafe;
import java.lang.invoke.MethodHandles;
import java.lang.reflect.Field;
public final class TrustedLookupAccessor {
public static MethodHandles.Lookup get() throws Throwable {
Field theUnsafe = Unsafe.class.getDeclaredField("theUnsafe");
theUnsafe.setAccessible(true);
Unsafe U = (Unsafe) theUnsafe.get(null);

Note

为简化无关环节,部分细节可能会省去,而进一步的深入解释将标记在 NOTE 内。 如果这是您第一次了解 MethodHandle 和 VarHandle,可直接掠过这些部分。

Tip

本文将用 TIP 标记您需要使用刚刚学到的技能实践的部分。 边学边练,效果 ++。

零开销·反射

/*
* MethodHandleLinker
* Copyright (c) 2024 Burning_TNT<[email protected]>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@burningtnt
burningtnt / TrustedLookupAccessor.java
Last active June 28, 2025 09:45
Access IMPL_LOOKUP without Unsafe
/*
* TrustedLookupAccessor
* Copyright (c) 2025 Burning_TNT<[email protected]>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
* The above copyright notice and this permission notice shall be included in all
@burningtnt
burningtnt / 我到底该怎么提问.md
Last active August 10, 2024 10:58
我到底该怎么提问

本文节选自 learnku.com(其实这篇文章节选自 How To Ask Questions The Smart Way

首先,你应当明确……

我们痛恨把一个消息复制几百遍

当有人给你这篇文章的链接时,说明你违反了本文上的某条规则。 你应当仔细阅读,然后告诉他我违反了哪一条。

礼貌总是有益的

@burningtnt
burningtnt / Minecraft 崩溃常见回答预设.md
Last active December 7, 2025 03:43 — forked from zkitefly/炸师傅的常用句子.md
Minecraft 崩溃常见回答预设

HMCL 问题

// 启动无响应

按下 Windows + R 键。输入 cmd,回车。在黑色窗口中输入下面一行内容,回车。
set HMCL_LAUNCHER_VERBOSE_OUTPUT=true
然后,将启动器拖入黑色窗口,回车。
等到报错出现,截图黑色窗口输出的内容。如果有个页面无法同时截下来,请分次截图