Skip to content

Instantly share code, notes, and snippets.

View RoootTheFox's full-sized avatar

rooot RoootTheFox

View GitHub Profile

These notes supplement Mika's video. Go watch it!

History

A look through decompiled code suggests the code that throws this exception is present (with the same error message) since at least Alpha 1.1.2 (the oldest version that happens to be in my decompiler repository), suggesting Notch wrote it.

Chunk Loading

The optimal chunk loading pattern is for the chunk to load on even ticks and unload on odd ticks ("unknown" chunk tickets caused by block updates last one tick, so this is the max). For this to happen, the chunk has to have completely finished loading in the first tick so that it can be unloaded in the second. This is made challenging in modern versions since Mojang moved entity loading to a background thread, so the complete loading of a chunk can take theoretically any amount of time - since it isn't synced with the main thread there is no way to know when it's completely finished. This means the optimal entity count depends on your exact server

@mary-ext
mary-ext / bluesky-osa.md
Last active April 20, 2026 02:27
Bluesky's age assurance sucks, here's how to work around it.

Bluesky's age assurance sucks, here's how to work around it.

Bluesky has implemented age verification measures in response to regional laws that restrict access, prompting users to verify their age through Epic Games' Kids Web Services before they can access adult content.

This sucks, but thankfully there are ways to work around it.

Before diving in: I encourage you to read this entire document, including the

@mary-ext
mary-ext / bluesky.txt
Last active November 8, 2025 20:35
make bluesky good ublock filter
! remove `session_id` tracking parameter from videos
!
! ideally this would've been a redirect from `video.bsky.app/watch/<did>/<cid>/playlist.m3u8`
! to `video.cdn.bsky.app/hls/<did>/<cid>/playlist.m3u8`, as the latter is the actual CDN while
! the former is the middleware, however:
!
! - the raw playlist will not contain webvtt, that's added in by the middleware
! - ublock doesn't have a rule that allows redirecting to non-local neutered resource
!
||video.bsky.app$removeparam=session_id
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 22, 2026 21:44
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

@OrionReed
OrionReed / dom3d.js
Last active April 8, 2026 16:29
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
#include <stdio.h>
#define dont int
#define care main(
#define CURSE void
#define OF ) {
#define RA 0;
#define 𓀷 int
#define 𓃰 if
#define 𓂔 {
#define 𓂕 }
@angeld23
angeld23 / vanished_tweet_recovery.user.js
Last active July 30, 2025 04:23
Vanished Tweet Recovery: Detects whenever a tweet mysteriously vanishes from your timeline for no reason and allows you to re-open it
// ==UserScript==
// @name Vanished Tweet Recovery
// @namespace https://d23.dev/
// @version 1.2
// @description Detects whenever a tweet mysteriously vanishes from your timeline for no reason and allows you to re-open it
// @author angeld23
// @match *://*.x.com/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=x.com
// @grant none
// ==/UserScript==
@advaith1
advaith1 / nitro.md
Created May 4, 2023 01:06
Discord Nitro Subscription Links

Guide for cross compiling Windows GD Mods on Linux

Requirements

  • clang & llvm (make sure you have clang-cl)
  • cmake (duh)
  • git

1. Setting up xwin

Install xwin, you can also just use one of the unknown-linux tarballs from the releases

@MeguminSama
MeguminSama / Discord Experiments.js
Last active April 14, 2026 07:37
Discord Experiments.js
let cache; webpackChunkdiscord_app.push([["wp_isdev_patch"], {}, r => cache=r.c]);
var UserStore = Object.values(cache).find(m => m?.exports?.default?.getUser).exports.default;
var actions = Object.values(UserStore._dispatcher._actionHandlers._dependencyGraph.nodes);
var user = UserStore.getCurrentUser();
actions.find(n => n.name === "ExperimentStore").actionHandler.CONNECTION_OPEN({
type: "CONNECTION_OPEN", user: {flags: user.flags |= 1}, experiments: [],
});
actions.find(n => n.name === "DeveloperExperimentStore").actionHandler.CONNECTION_OPEN();
webpackChunkdiscord_app.pop(); user.flags &= ~1; "done";