Skip to content

Instantly share code, notes, and snippets.

View br0kenpixel's full-sized avatar
😁

Fábián Varga br0kenpixel

😁
  • Slovakia
  • 07:54 (UTC +01:00)
View GitHub Profile
@br0kenpixel
br0kenpixel / custom.json
Created September 26, 2025 14:58
Brave Linux Debloat config
// place in /etc/brave/policies/managed/custom.json
{
"BraveRewardsDisabled": true,
"BraveWalletDisabled": true,
"BraveVPNDisabled": true,
"BraveAIChatEnabled": false,
"BraveNewsDisabled": true,
"BraveTalkDisabled": true,
"BraveStatsPingEnabled": false,
}
@br0kenpixel
br0kenpixel / Plex_CGNAT_bypass_with_wireguard.md
Last active October 18, 2025 08:02
Bypass CGNAT for Plex remote access using Wireguard and a VPS

Introduction

The goal of this guide is to show you how to bypass CGNAT in order to allow remote access for your Plex server.

Why not a reverse proxy?

Unlike other self-hostable apps, such as Jellyfin, qBittorrent, Vaulwarden, etc., Plex needs to be tied to a public IP, and it expects port-forwarding to "just work."

Requirements

  • A Plex server running inside Docker, using an image like lscr.io/linuxserver/plex, configured using a Compose file.
  • A VPS with a public static IPv4 address.
  • IPv6 should theoretically work too, but I haven't tried.
@br0kenpixel
br0kenpixel / alpine_headless_rpi.md
Last active October 2, 2025 13:34
Alpine linux headless install on RPi
  1. Download Alpine Linux from here.
  2. Connect your SD Card to your PC.
  3. Format the card. Create a single FAT32 partition.
  4. Extract the contents of the downloaded tar.gz archive.
  5. Copy the contents to the root of the SD Card.
  6. Add headless configuration if needed.
  7. Connect to the SD Card to your Raspberry Pi.
  8. Power it on.

Run the following commands in the shell:

@br0kenpixel
br0kenpixel / organizer.py
Last active June 2, 2023 19:31
Organize songs into a nice folder structure (Artist/Album/Song)
import music_tag
from os import listdir, system, mkdir
from subprocess import run
from os.path import exists
import unicodedata #Django
import re
F_EXT = "m4a"
TARGET_DIR = "organized"
@br0kenpixel
br0kenpixel / micropython-pico-setup.txt
Created September 24, 2022 15:22
Setting up a build environment for building MicroPython for Raspberry Pi Pico (W) and Arduino Nano RP2040 Connect.
Source: https://forum.micropython.org/viewtopic.php?f=21&t=9965
1) Clone the repo:
a) git clone https://www.github.com/micropython/micropython
b) Specific version:
i.) git clone -b v1.19.1 https://github.com/micropython/micropython.git
Note: v1.19.1 does not work! Use latest instead.
Note: --recursive is not needed
2) Build mpy-cross: