Skip to content

Instantly share code, notes, and snippets.

View aleksasiriski's full-sized avatar

Aleksa Siriški aleksasiriski

View GitHub Profile
@aleksasiriski
aleksasiriski / patronitocnpg.md
Last active February 25, 2024 10:16
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 April 4, 2024 07:40
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 April 23, 2024 12:09
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

Fedora Silverblue with Gnome VRR This has been finally merged in GNOME 46, so this gist is deprecated.

  1. Download the repo file from here and save it to /etc/yum.repos.d/kylegospo-gnome-vrr-fedora.repo
sudo curl -L https://copr.fedorainfracloud.org/coprs/kylegospo/gnome-vrr/repo/fedora/kylegospo-gnome-vrr-fedora.repo -o /etc/yum.repos.d/kylegospo-gnome-vrr-fedora.repo
  1. Install mutter VRR:
@aleksasiriski
aleksasiriski / EldenRingSeamlessUnlockOnSteamFlatpak.md
Last active April 26, 2024 16:35
Elden Ring running on Steam Flatpak with Seamless COOP and other mods like FPS Unlock

Linux Guide - How to run Elden Ring on Steam Flatpak with Seamless COOP and other mods like FPS Unlock

Steam Flatpak and Proton-GE

Download the latest Proton-GE using ProtonUp-Qt

Elden Ring Mod Loader

Download and extract this to your game folder:

cd ~/.var/app/com.valvesoftware.Steam/.steam/steam/steamapps/common/ELDEN\ RING/Game
@aleksasiriski
aleksasiriski / proxmoxlxcjellyfin.md
Last active April 5, 2024 17:45
Proxmox LXC Alpine Docker Jellyfin

How to setup VA-API within Proxmox LXC Unprivileged container

Proxmox configuration

No drivers need to be installed on the proxmox, from now called host.

Find GIDs of video and render group on host:

cat /etc/group | grep video

cat /etc/group | grep render