Skip to content

Instantly share code, notes, and snippets.

View br0kenpixel's full-sized avatar
😁

Fábián Varga br0kenpixel

😁
View GitHub Profile
@br0kenpixel
br0kenpixel / update-arch.sh
Last active April 19, 2026 10:39
update-arch.sh
#!/bin/zsh
sudo pacman -Syu
paru -Syu
flatpak update
rustup update
cargo install-update -a
cargo cache --autoclean-expensive
@br0kenpixel
br0kenpixel / super-compression.md
Last active April 11, 2026 15:30
Super file compression commands

Super compression commands cheatsheet

This is a collection of commands you can use to compress files with the highest compression levels possible.

This cheatsheet primarily uses XZ/LZMA as it has the best compression ratios most of the time (but not always). This algorithm generally has very slow compression times, but decompression is much faster. Similiarly, compression usually requires a lot of RAM, while decompression needs much less. The bigger is the file you're trying to compress, the more memory you will need.

Important note

Tools labeled (raw) below are programs that work on data streams. They do not understand filesystems and therefore cannot be used to compress multiple files or even directories. For such tasks you need an archiver (e.g. tar, 7-Zip, etc.). They will be labeled as (archiver).

Archivers like tar usually work by first creating an uncompressed archive file that is essentially a container for multiple files and directories, and then passing i

@br0kenpixel
br0kenpixel / update-fedora.sh
Created March 8, 2026 08:26
update-fedora.sh
#!/bin/zsh
sudo dnf update --refresh
sudo akmods
sudo dracut -f --regenerate-all
rustup update
cargo install-update -a
espup update
@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: