Skip to content

Instantly share code, notes, and snippets.

@SlothDpal
SlothDpal / README.md
Created September 20, 2026 15:47
Setting up the Mi R02 WiFi Repeater (Mi Wi-Fi Repeater 2)

Setting up the Mi R02 WiFi Repeater (Mi Wi-Fi Repeater 2) involves powering it, opening the Mi Home app, adding the device, and selecting your 2.4GHz network. Ensure the indicator light blinks yellow before starting, and it turns solid blue upon successful connection, after which it can be moved anywhere with a solid outlet. Pre-setup Preparation

Power the Device: Plug the repeater into a USB power source, such as a power bank, USB hub, or phone charger.
Check Indicator: Wait for the LED indicator to flash yellow, signaling it is ready to connect.
Factory Reset (If Needed): If the light isn't flashing yellow, use a pin to hold the reset button for 5-10 seconds until it flashes. 

Method 1: Using the Mi Home App (Recommended)

@SlothDpal
SlothDpal / Dockerfile
Last active November 15, 2026 05:24 — forked from sst311212/build_pico_fido2.sh
Description: Dockerfile for building pico-fido2 firmware (RP2350/RP2040) in multi-stage container. Outputs .uf2 via scratch image. Topics: docker, pico, rp2350, fido2, webauthn, raspberry-pi, firmware, dockerfile
#
# based on build_pico_fido2.sh
#
FROM ubuntu:24.04 AS builder
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y --no-install-recommends \
@SlothDpal
SlothDpal / Dockerfile (webui)
Last active November 8, 2025 14:24
Run stable diffusion webui on Debian 13 (trixie)
FROM nvidia/cuda:12.4.1-cudnn-runtime-ubuntu22.04
# Install system dependencies
RUN apt-get update && apt-get install -y \
python3.10 \
python3.10-venv \
python3-pip \
git \
curl \
libgl1-mesa-dev \
@SlothDpal
SlothDpal / OVERLAYFS
Created April 21, 2022 13:23 — forked from mutability/OVERLAYFS
readonly root via overlayfs
- install the two shellscripts into the appropriate places under /etc/initramfs-tools
- run update-initramfs
- put "overlay=yes" on the kernel command line
- reboot
With the overlay in place, the real root is mounted readonly on /ro.
Only the root fs is changed, other filesystems are mounted normally.
Remove "overlay=yes" (or change it to something other than yes) and reboot to go back to readwrite.
(This probably means that you want the commandline config to live somewhere other than on the root fs, e.g. under /boot)