Skip to content

Instantly share code, notes, and snippets.

View aleksasiriski's full-sized avatar

Aleksa Siriški aleksasiriski

View GitHub Profile
@aleksasiriski
aleksasiriski / resticprofile.md
Last active September 13, 2026 10:54
`resticprofile` - my config for backing up personal computers (Fedora Atomic)

How to setup resticprofile on Fedora Atomic

Install restic

rpm-ostree install restic --apply-live

Install resticprofile

@aleksasiriski
aleksasiriski / belabox-modified.md
Last active June 23, 2026 10:01
Setup Belabox modified with Wireguard remote access and BiB-Comms audio output working via Pipewire, Pulse and ALSA

Setup Belabox modified with Wireguard remote access, wireguard-multipath and BiB Comms audio output working via Pipewire, Pulse and ALSA

DO NOT RUN ON BELABOX: Flash belabox image to SD card (/dev/sdX):

sudo dd if=Downloads/belabox_rock_5b_plus-xxxxxxxx-xxxxxxx.img of=/dev/sdX bs=4M status=progress oflag=sync

Update the system:

sudo apt update -y && sudo apt upgrade -y

Install Docker on Debian 11/12/13

Prepare system:

sudo apt update && \
sudo apt install -y ca-certificates curl && \
sudo install -m 0755 -d /etc/apt/keyrings && \
sudo curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \
sudo chmod a+r /etc/apt/keyrings/docker.asc

ZFS on Proxmox - Creating a proper dataset for media storage

zfs create stor/media
zfs set recordsize=1M stor/media
zfs set atime=off stor/media
zfs set compression=zstd stor/media
zfs set quota=4T stor/media
zfs set primarycache=all stor/media
zfs set secondarycache=all stor/media
@aleksasiriski
aleksasiriski / intelgvtgproxmoxve9.md
Created December 18, 2025 00:14
Intel GVT-g on Proxmox VE 9
@aleksasiriski
aleksasiriski / reddit-redlib-redirect.js
Last active September 8, 2025 10:37
Greasemonkey redlib redirect
// ==UserScript==
// @name Reddit Redlib Redirect
// @namespace http://tampermonkey.net/
// @version 1.1
// @description Redirect reddit.com to redlib
// @author Aleksa Siriški
// @match http://reddit.com/*
// @match https://reddit.com/*
// @match http://www.reddit.com/*
// @match https://www.reddit.com/*
@aleksasiriski
aleksasiriski / patronitocnpg.md
Last active July 16, 2025 09:52
Migrate Patroni PostgreSQL cluster to cloudnative-pg

Migrate Patroni PostgreSQL cluster to cloudnative-pg

Prerequisites

  • Stable connection to Patroni cluster from cnpg nodes
  • Same major PostgreSQL version (for example 15.1, cnpg image tag needs to correspond to that)
  • Empty files called custom.conf and override.conf inside pgdata folder on all nodes (folder where postgresql.conf is)
  • User named strictly streaming_replica with REPLICATION ROLE attached (if it's not streaming_replica cnpg will fail because it needs that user to exist)
  • Patroni dynamic config:
@aleksasiriski
aleksasiriski / fedora-atomic-xmm7360.md
Last active April 26, 2024 16:32
Fedora Atomic - Commands needed to have a working xmm7360 wwan module tested on Thinkpad T14 and T14s

Overlay kernel headers and needed packages:

rpm-ostree install kernel-devel kernel-headers gcc make python-pip

Reboot to apply:

reboot
@aleksasiriski
aleksasiriski / bootstrapwyse.sh
Last active February 7, 2025 23:52
Bootstrap Dell Wyse 3040 with Spotifyd using ALSA on fresh Alpine install.
#!/usr/bin/env bash
# Enable https repos
sed 's/http:/https:/g' /etc/apk/repositories
# Update packages
apk update
# Install intel firmware
apk add linux-firmware-intel
@aleksasiriski
aleksasiriski / immutabledesktop.md
Last active September 25, 2026 18:00
My ideal Fedora Atomic Desktop setup

My ideal Fedora Atomic Desktop setup

System

Set keyboard layout

localectl set-keymap us-colemak && \
localectl set-x11-keymap us "" colemak