Skip to content

Instantly share code, notes, and snippets.

@Nachtalb
Nachtalb / README.md
Created November 4, 2026 20:18
redlib PR screenshots

redlib PR screenshots

@Nachtalb
Nachtalb / README.md
Last active November 3, 2026 22:18
Nachtalb/redlib PR screenshots

redlib PR screenshots

@Nachtalb
Nachtalb / README.md
Created October 29, 2026 09:35
redlib PR screenshot: search tabs

redlib #69 search tabs screenshots

@Nachtalb
Nachtalb / README.md
Last active October 24, 2026 09:07
redlib error page screenshot

Screenshot for Nachtalb/redlib error page PR

@Nachtalb
Nachtalb / phone3d.py
Last active October 14, 2026 06:13
phone3d: live 3D ASCII phone in Termux, driven by Termux:API sensors (orientation, compass, magnetic field, barometric altitude scenes, light-driven sun, GPS speed parallax)
#!/data/data/com.termux/files/usr/bin/python3
"""Live ASCII wireframe of the phone's orientation, driven by termux-sensor.
Usage: python phone3d.py keys: q quit, r re-zero heading + altitude delta, R free view
(current pose becomes the front view), c charging animation,
m magnetic field, e environment scene, b cycle scenes (auto/manual)
python phone3d.py --charge (pretend to be plugged in, to see the energy flow)
python phone3d.py --field (start with the magnetic field shown)
python phone3d.py --alt 410 (your real altitude in metres, calibrates the barometer for the weather)
python phone3d.py --gps (GPS speed pans the scene when driving, GPS altitude calibrates the
@Nachtalb
Nachtalb / claude-termux.sh
Created October 13, 2026 21:11
claude-termux: run the official Claude Code native (glibc) binary in Termux on Android, incl. relaunch-shim fix for restarts / fullscreen renderer
#!/data/data/com.termux/files/usr/bin/bash
# claude-termux: run the official Claude Code native (glibc) binary directly in
# Termux by patching its ELF interpreter to Termux's glibc-runner loader.
#
# Usage:
# claude-termux.sh --install first-time setup: deps + download + patch +
# install this script as the global `claude`
# claude [args...] (after install) launch claude via the wrapper
# claude --update fetch latest release, patch it, switch to it
# claude --repatch re-apply the interpreter patch to all versions
@Nachtalb
Nachtalb / 99-toggle-bluetooth
Created October 3, 2025 16:46
Toggle Bluetooth on / off depending on the connected WLAN
#!/bin/bash
# /etc/NetworkManager/dispatcher.d/99-toggle-bluetooth
set -euo pipefail
IFACE="$1"
ACTION="$2"
[[ "$ACTION" == "up" ]] || exit 0
iw dev "$IFACE" info >/dev/null 2>&1 || exit 0
@Nachtalb
Nachtalb / libwebp.csv
Last active October 2, 2023 05:59
Track CVE-2023-4863 affected libraries
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
Name,Language,Uses libwebp,Affected Versions,Patched versions,Is Inline third-party,Is System dependency,Depends on,URLs,Comment
libwebp,C,,< 1.3.2,1.3.2,,,,,Problemmaker
TwelveMonkeys,Java,No,,,,,,https://github.com/haraldk/TwelveMonkeys/issues/822,Selfmade in pure Java
libvips,C,Yes,< 8.14.5,8.14.5,Yes,Yes,libwebp,https://github.com/libvips/libvips/discussions/3675#discussioncomment-7078199,Bundled in Windows prebuilt otherwhise system dependency
Sharp,JS,Yes,< 0.32.6,0.32.6,Yes,No,libvips,https://github.com/lovell/sharp/issues/3798,
libwebp-rs,Rust,Indirectly,*,,No,No,libwebp-sys2,https://github.com/qnighy/libwebp-rs,
webp,Rust,Indirectly,< 0.2.6,0.2.6,No,Yes,libwebp-sys,https://github.com/jaredforth/webp/pull/30,
libwebp-sys,Rust,Yes,< 0.9.3,0.9.3,Yes,No,,https://github.com/NoXF/libwebp-sys/pull/23,
libwebp-sys2,Rust,Yes,< 0.1.8,0.1.8,Yes,No,,https://github.com/qnighy/libwebp-sys2-rs/blob/572a436a7a1bf7234f5c92576fc40edba6c9ae7f/CHANGELOG.md,"Fixed in 0.1.8 by using unreleased libwebp master, fixed in 0.1
@Nachtalb
Nachtalb / init.vim
Created April 20, 2023 14:01
Minimal init.vim for testing
set nocompatible
set showmatch
set ignorecase
set mouse=v
set hlsearch
set incsearch
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
[Desktop Entry]
Version=1.0
Name=Telegram Instance X
Comment=Official desktop version of Telegram messaging service
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -workdir /home/kali/.local/share/TelegramDesktop/instance_X -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application