Skip to content

Instantly share code, notes, and snippets.

@BarkBarklington
BarkBarklington / gist:998a34263100688dcba1932090aba08f
Created November 19, 2025 20:06 — forked from basso/gist:04cbdc9cad5629f2ae83a941875c4ad5
Bazzite How to force transcode Dolby Digital AC3 over HDMI ARC
I have managed to get the alsa-plugins-a52 to output over HDMI on bazzite.
Problem 1: TV's like Samsung does not support LPCM 5.1 over HDMI EARC.
Problem 2: Many recievers in use today only support HDMI ARC, which means only PCM 2.0 / Dolby Digital or DTS.
How to fix on Bazzite so you can enjoy surround sound in your games in your home theater setup :
1. Install alsa-plugins-a52
sudo rpm-ostree install alsa-plugins-a52

yt-dlp termux full installation guide.md

Prepare

  1. Install Termux from Github: https://github.com/termux/termux-app/releases
  2. Download the apk and install it -> Note that installing termux from Play Store is highly discouraged.

In Termux:

pkg update
@BarkBarklington
BarkBarklington / convert_valve_video.py
Created July 2, 2025 04:32 — forked from safijari/convert_valve_video.py
Sketch ass script to convert the m4s files being saved by the new Steam Game Recording feature into an mp4 file. It also allows "clipping" the last 30 seconds of the most recent active background recording.
import os
import subprocess
from random import sample
from uuid import uuid4
from pathlib import Path
def create_filelist(folder, init_file, file_pattern):
files = sorted([f for f in os.listdir(folder) if f.startswith(file_pattern) and f.endswith('.m4s')])
return [f"{os.path.join(folder, init_file)}"] + [f"{os.path.join(folder, file)}" for file in files]

Setting Up a Meshtastic Repeater Node (Android App)

Prerequisites

  • Android Device: Running Android 5.0 or higher
  • Meshtastic Device: Powered on with firmware flashed
  • Bluetooth Enabled: To connect to the device
  • Meshtastic App Installed: Download from the Google Play Store

Steps

function autoScrollToLastFollower() {
const lastFollower = document.querySelector(
'div[data-e2e="follow-info-popup"]>div:last-child>li:last-child'
);
if (lastFollower) {
lastFollower.scrollIntoView();
} else {
console.info('No follower found. Make sure you are on the following page and opening list of followers.');
}
}