Skip to content

Instantly share code, notes, and snippets.

@dankmeme01
dankmeme01 / globed-sysctls.md
Last active June 9, 2026 18:08
Globed server sysctls

sysctl settings for robustly handling tons of users

Edit /etc/sysctl.d/99-custom.conf

# max memory that sockets may request
net.core.rmem_max = 33554432
net.core.wmem_max = 33554432

# default memory allocated to sockets
@dankmeme01
dankmeme01 / geode-android-hwasan.md
Last active May 26, 2026 19:57
Easy debugging of Geode mods with HWASan

Easy debugging of Geode mods with HWASan

ASan (and it's younger brother, HWASan) are incredible tools for debugging memory integrity bugs in native applications. This guide explains how to set up HWASan for Geode mods on Android and how to analyze crashes.

Requirements:

  • Device running Android 14+, lower is possible but only with ASan, which has a slightly different way of setting up. See here
  • Android Studio or any other way of building the launcher

Build the mod