Skip to content

Instantly share code, notes, and snippets.

View rzaluska's full-sized avatar

Radosław Załuska rzaluska

View GitHub Profile
@rzaluska
rzaluska / wireless-aa-aaa-battery-powered-hotswap-keyboards.md
Last active April 14, 2026 18:02
Wireless AAA Battery-Powered Hotswap Keyboards

Wireless AA/AAA Battery-Powered Hotswap Mechanical Keyboards

A comparison of mechanical keyboards that utilize 2x AAA batteries (non-rechargeable for months-long runtime) and support hotswappable switches. All models prioritize extreme battery efficiency by minimizing or eliminating per-key RGB.

Keyboard Model Image Layout Connectivity Hotswap Support Notable Features
MAGIC-REFINER RK96 image 96% (100 keys) 2.4G + BT 5.0 3/5-pin (full key) Gasket-mount with Poron sandwich layer + slow-rebound bottom foam; no backlight for ~6-month battery life on 2x AAA; 2-in-1 USB-A/Type-C receiver; connects to 3 devices (Fn+W/E for BT, Fn+Q for 2.4G); double-shot keycaps; 30-min auto-sleep; Win/Mac/Android compatible.
ZIYOULANG M88
@rzaluska
rzaluska / iptables
Created March 21, 2016 20:12
/etc/network/if-up.d/iptables
#!/bin/sh
iptables -F
iptables -X
iptables -A INPUT -p tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --dport 22 -m state --state NEW,ESTABLISHED -j ACCEPT
iptables -A OUTPUT -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp --sport 22 -m state --state ESTABLISHED -j ACCEPT