Skip to content

Instantly share code, notes, and snippets.

@amotrak
amotrak / comfast_cf-wr632ax_unbrick.md
Created February 14, 2026 13:40
comfast cf-wr632ax U-Boot layout unbrick

For those who have already switched to the U-Boot layout and wanted to go back to the stock bootloader:

Prerequisites:

Here is the photos when the top case is removed: https://openwrt.org/toh/comfast/cf-wr632ax#photos

  1. Remove the top case of the router and solder UART (I have a cp210x usb to UART bridge)
  2. Get mt7981-ram-ddr3-bl2.bin and openwrt-mediatek-filogic-comfast_cf-wr632ax-ubootmod-bl31-uboot.fip from the andros-ua repo to boot them using mtk_uartboot
  3. Get the latest snapshot of *initramfs-recovery.itb from the OpenWrt firmware selector
  4. Rename *initramfs-recovery.itb to openwrt-mediatek-filogic-comfast_cf-wr632ax-ubootmod-initramfs-recovery.itb and serve on TFTP (/srv/tftp on Arch, use TFTPD64 on Windows)
@ngoc-minh-do
ngoc-minh-do / Proxmox-install-Nvidia-driver.md
Last active March 13, 2026 20:19
Install Nvidia driver on Proxmox

Install NVIDIA Driver on Proxmox with Secure Boot

This guide walks you through installing the NVIDIA driver on Proxmox with Secure Boot enabled, including automatic signing of DKMS modules and troubleshooting tips.


1. Check Secure Boot Status

mokutil --sb-state
@Spiritdude
Spiritdude / blkenvflash
Created June 18, 2024 10:21
LuckFox Pico Pro/Max SD card writer from .env.txt
#!/usr/bin/python3
# == BLKENVFLASH == written by Rene K. Mueller <spiritdude@gmail.com>
#
# Description:
# Writes an image (.img) or to the SD card direct from existing .env.txt for LuckFox Pico Pro/Max
#
# % ./blkenvflash disk.img
# -- inquery with `lsblk` which device is your SD card resides --
# % sudo dd if=disk.img of=/dev/sdX bs=1M; sync
@samster395
samster395 / ESPHome Hardware Monitor
Last active June 19, 2024 21:20
Relies on the home assistant Open Hardware Monitor integration and a wake on lan switch set up to poll PC status.
esphome:
name: hardwaremonitor
friendly_name: HardwareMonitor
esp8266:
board: nodemcuv2
# Enable logging
logger:
@thesamesam
thesamesam / xz-backdoor.md
Last active March 9, 2026 22:51
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.

Background

@benuski
benuski / compose.yml
Created January 31, 2024 15:50
changedetection.io and browserless v2 docker compose
version: '3.2'
services:
changedetection:
image: ghcr.io/dgtlmoon/changedetection.io:latest
container_name: changedetection
hostname: changedetection
volumes:
- changedetection-data:/datastore
environment:
@babacarcissedia
babacarcissedia / google-recaptcha.md
Last active February 9, 2024 01:41
Add google recaptcha to website

Opinionated code Laravel code for adding recaptcha on website. Bot protection especially on open form (without user authentication)

  1. Create blade component for ease of reuse
resources/views/components/input/captcha.blade.php

@props([
    'id',
    'name',
@shigenobuokamoto
shigenobuokamoto / network-mirrored.service
Last active May 18, 2025 20:22
/etc/systemd/system/network-mirrored.service
[Unit]
Wants=network-pre.target
Before=network-pre.target shutdown.target
[Service]
User=root
ExecStart=/bin/sh -ec '\
[ -x /usr/bin/wslinfo ] && [ "$(/usr/bin/wslinfo --networking-mode)" = "mirrored" ] || exit 0;\
echo "\
add chain ip nat WSLPREROUTING { type nat hook prerouting priority dstnat - 1; policy accept; };\
@adelyser
adelyser / CB1 Armbian Bookworm 3D Acceleration Optimization.md
Last active April 22, 2024 09:06
CB1 3d Acceleration running Armbian Bookworm

This is a quick guide for optimizing the 3D acceleration for the Bigtreetech CB1 running Armbian Bookworm. Armbian already has the proper drivers installed, so disregard my previous guide.

**NOTE: The best perorming UI with panfrost is Gnome Wayland##

To optimize the drivers, only a few things are needed:

  1. Install the boot overlays to enable the cpu and gpu governors.
  2. Set the governors in the OS.
  3. Optional: Run the benchmark (glmark2 or kmscube)

Install boot overlays

@peters
peters / Sony WH-1000XM4.md
Last active February 8, 2026 00:42
Connecting Sony WH-1000XM4 to Ubuntu 22.04 (Jammy)

Connecting Sony WH-1000XM4 to Ubuntu 22.04 (Jammy)

This guide will help you connect your Sony WH-1000XM4 headset to Ubuntu 22.04 using Bluetooth. Once connected, you'll be able to listen to music and use the microphone on apps like Microsoft Teams.

1. Connect to Bluetooth Headset

Steps:

  1. Open a terminal and launch bluetoothctl: