Skip to content

Instantly share code, notes, and snippets.

View ItachiSan's full-sized avatar

Giovanni Santini ItachiSan

View GitHub Profile
@Justin0dev
Justin0dev / gist:66d56e8ca0892c6d22369a6f54983fbb
Last active December 2, 2025 09:47
Recompile Linux Kernel To Enable HUGEPAGES On Raspberry Pi 5

HUGEPAGES is diabled by default in the Raspberry Pi Linux kernel. To enable HUGEPAGES the kernel must be recompiled.

Tested and works as expected on Raspberry Pi 4B, 400, CM4, and 5.

Install dependencies

sudo apt update sudo apt install -y git build-essential bc bison kmod cpio flex libncurses5-dev libelf-dev libssl-dev

Clone the Raspberry Pi Linux Kernel Repository

@onomatopellan
onomatopellan / waydroidwsl2.md
Last active December 5, 2025 08:26
Waydroid in WSL2 with sound (Weston on top of Weston approach)

Waydroid in WSL2 with sound

Requirements

Recommended to install Waydroid in a brand new Ubuntu 25.04 install. Waydroid needs a custom linux kernel. Actually just needs latest kernel for WSL2 with just these changes before compiling:

CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
@tycho
tycho / lastpass-demangle.py
Last active February 19, 2021 22:45
Demangle the LastPass CSV export format
#!/usr/bin/python3
#
# Usage: ./lastpass-demangle.py lastpass-export.csv > fixed-lastpass-export.csv
#
import csv
import html
import fileinput
import sys