Skip to content

Instantly share code, notes, and snippets.

@boywijnmaalen
boywijnmaalen / Git cleanup repository
Last active September 23, 2026 07:36
Deletes all dangling commits, objects and blobs
# empty the stash
$ git stash clear
# objects can also be reached through the reflog.
# while branches record the history of some project, reflogs record the history of these branches.
# if you amend, reset etc. commits are removed from the branch history
# but git keeps them around in case you realize that you made a mistake.
# reflogs are a convenient way to find out what destructive (and other) operations were performed
# on a branch (or HEAD), making it easier to undo a destructive operation.
@tankxu
tankxu / VoHive-Deploy.md
Last active September 23, 2026 07:36
VoHive 仓库 / 固件 / 部署 / 升级 完全手册

VoHive 仓库 / 固件 / 部署 / 升级 完全手册

记录 vohive 的来源、二进制获取、在网心云 OES Plus(arm64)上的部署与升级方法。 整理时间:2026-07。当前 OES Plus 上运行 v1.5.15 原生 arm64/opt/vohive,systemd 服务,端口 7575)。


一、仓库现状(重要:官方已跑路)

  • 官方iniwex5/vohive(Go 源码)+ iniwex5/vohive-release(发布)
@mkropat
mkropat / knownpaths.py
Last active September 23, 2026 07:33
Python wrapper around the SHGetKnownFolderPath Windows Shell function
import ctypes, sys
from ctypes import windll, wintypes
from uuid import UUID
class GUID(ctypes.Structure): # [1]
_fields_ = [
("Data1", wintypes.DWORD),
("Data2", wintypes.WORD),
("Data3", wintypes.WORD),
("Data4", wintypes.BYTE * 8)
@fnky
fnky / ANSI.md
Last active September 23, 2026 07:31
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@eonist
eonist / Markdown-Instructions-for-AI--and-humans.md
Created April 30, 2025 16:29
Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

Best Practice Guidelines for Prompt Markdown Instructions (.md Files)

When creating Markdown (.md) files to standardize prompt instructions or best practices, clarity, consistency, and structure are paramount. Below is a comprehensive guideline on how to structure these files and what to do-and avoid-when authoring them.


Key Principles

  • Clarity: Use Markdown to make prompts and instructions easy to read, both for humans and AI models[6][8].
  • Consistency: Stick to a single Markdown flavor (e.g., CommonMark, GitHub Flavored Markdown) throughout your project[5].

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@aaomidi
aaomidi / extensions.txt
Last active September 23, 2026 07:27
List of nearly all video file extensions
webm
mkv
flv
vob
ogv
ogg
rrc
gifv
mng
mov
@Snowiiii
Snowiiii / AntiCheat.md
Last active September 23, 2026 07:25
How to Develop an Anti-Cheat

Note

Many of the Information here is not only Minecraft related and can be used for different Anti-Cheats as well

For Beginners

Hello! With this post, I want to share my knowledge and provide tips on how to start and continue developing a Minecraft/General anti-cheat system. I'll cover tips for both Minecraft Java and Minecraft Bedrock/Pocket Edition.

Language

To start programming something, you'll need to learn a programming language. the options are Java or Kotlin, but for PocketMine Software, it uses PHP.

@justicefreed
justicefreed / README.md
Created May 13, 2025 17:21
Fix VLAN MTU Bug on OSX (eg HTTPS pages won't load)

Bug / Issue Description

OSX does not correctly fragment packets on VLAN virtual interfaces for default MTU settings. Additionally, manually setting interface MTU settings do not always persist across interface disconnection, sleep, and reboot in some OSX versions.

What is supposed to happen

  1. A virtual interface of type "VLAN" has been created and attached to a parent interface
  2. You try and make a network request of any kind using that VLAN / virtual interface that expects a response larger than 1472 Bytes, like an HTTPS web page (HTTP may not exceed this).
  3. Because the request is larger than the interface MTU, it is split into fragments. Each fragment should be at most the size of the parent MTU MINUS the 4 bytes for the VLAN header(s)