Skip to content

Instantly share code, notes, and snippets.

@dim-pan
dim-pan / zero-lag-multiplayer-prompt.md
Last active December 5, 2026 09:36
A prompt for coding agents: add robust, near zero-lag online multiplayer to any real-time game

Prompt: add robust, near zero-lag multiplayer to any real-time game

Paste everything below the line into your coding agent at the root of your game's repo. It assumes nothing about your engine, language, hosting or backend.


Add live online multiplayer to this game: friends join a room by code or invite link and play together in real time with no felt lag.

Before writing code, read the game loop, the simulation/physics and the input handling. Then write a short plan that maps every section below onto this game and this stack: what the "player entity" is, which state goes on the wire, what a "round" is, which transport and hosting options this platform has. Ask me only about real design choices (room size, whether players can collide, what ends a round, where to host). Everything else below is decided: it is what held up after many iterations on a shipped real-time game with fast-moving players, and the "do not" items were tried and failed. It fits any game where each player controls their own charact

@ItsNerisma
ItsNerisma / CivSwitchFS - HOW_IT_WORKS (Nerisma).md
Last active December 5, 2026 09:33
CivSwitchFS - How it works (Nerisma)

WEEKS of my life went into this research, please by nice and give me a lil shoutout if this was useful to you

How the exploit works

From path normalization bug to PID 1, one wave at a time. All values are for firmware 23.0.1, Civ VII 1.0.0, production wave composition (11 active workers).


@rumansaleem
rumansaleem / clean-up-arch-linux.md
Created May 28, 2019 08:51
Instructions to clean up Arch Linux (Manjaro)

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks

Activate Windows with PowerShell

This method demonstrates how to activate Windows using PowerShell in administrator mode.

Steps to Activate Windows:

  1. Open PowerShell as an administrator:

    • Press Win + S, type "PowerShell," then right-click on Windows PowerShell and select Run as administrator.
  2. Run the following command:

@fanlushuai
fanlushuai / fuckAD.js
Last active December 5, 2026 09:16
红果短剧自动跳过广告,流畅看剧
function getRotation() {
//1竖屏 2横屏
importPackage(android.content);
return context.getResources().getConfiguration().orientation;
}
function getScreenHW() {
// console.log(getRotation());
// 正常的手机,高度,是大于宽度的。但是,device.width,device.height,函数,有时候是会获取错误的。
// 强行扭正。
@gjtorikian
gjtorikian / harness_engineering.md
Last active December 5, 2026 09:11
harness_engineering

harness_engineering

Harness Engineering & Multi-Context Agent Workflows

A synthesis of OpenAI's harness engineering report, Anthropic's long-running agent research, Anthropic's prompting best practices docs, and lessons from workos/case (a production harness orchestrating AI agent work across multiple repositories).

Core thesis: the bottleneck in agent performance is environment design, not model intelligence. Or as OpenAI put it: "The horse is fast. The harness is everything."


@GymPartners
GymPartners / awesome-homelab.md
Created December 1, 2026 17:16
Awesome Homelab: everything I self-host, from Jellyfin to a dial-up WAP server for old phones

Awesome Homelab: what runs on my servers

Media is the big one, but it is only the start. This is everything I self-host, with links so you can run it too. Items marked (own build) are small apps I made myself. Most are not public, but they might give you ideas.

Contents

@qoomon
qoomon / conventional-commits-cheatsheet.md
Last active December 5, 2026 08:39
Conventional Commits Cheatsheet
@Paraphraser
Paraphraser / Checking your Raspberry Pi's view of its power supply.md
Last active December 5, 2026 08:39
Checking your Raspberry Pi's view of its power supply (sometimes it's not the wall-wart)

Checking your Raspberry Pi's view of its power supply

Sometimes it seems like the first (and sometimes only) advice you get offered for almost any problem with a Raspberry Pi is "check your power supply". You think something like:

"hey, I'm using an official power supply sold as being matched with my Pi so how can there be any problem?"

You look up the specs then stick a controlled load across your supply and confirm that it can deliver the required number of Watts.

Yet your problems persist…

@MikeNGarrett
MikeNGarrett / wp-config.php
Last active December 5, 2026 08:38
All those damned wp-config constants you can never remember.
<?php
// PHP memory limit for this site
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' ); // Increase admin-side memory limit.
// Database
define( 'WP_ALLOW_REPAIR', true ); // Allow WordPress to automatically repair your database.
define( 'DO_NOT_UPGRADE_GLOBAL_TABLES', true ); // Don't make database upgrades on global tables (like users)
// Explicitely setting url