Skip to content

Instantly share code, notes, and snippets.

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.');
}
}

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

@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]
@BarkBarklington
BarkBarklington / mullvad vpn beta cli bug error.text
Created September 23, 2025 18:29
mullvad vpn beta cli bug error
.-------------------------: puppy@puppy
.+=========================. -----------
:++===++==================- :++- OS: CachyOS x86_64
:*++====+++++=============- .==: Kernel: Linux 6.16.7-2-cachyos
-*+++=====+***++==========: Uptime: 3 mins
=*++++========------------: Packages: 2523 (pacman), 241 (flatpak)
=*+++++=====- ... Shell: fish 4.0.8
.+*+++++=-===: .=+++=: Display (PHL0000): 1920x1080 @ 1.25x in 32", 60 Hz [External]
:++++=====-==: -*****+ DE: KDE Plasma 6.4.5
:++========-=. .=+**+. WM: KWin (Wayland)

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 / 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
@BarkBarklington
BarkBarklington / resolved.conf
Created February 16, 2026 19:53
dns resolved conf systemd
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it under the
# terms of the GNU Lesser General Public License as published by the Free
# Software Foundation; either version 2.1 of the License, or (at your option)
# any later version.
#
# Entries in this file show the compile time defaults. Local configuration
# should be created by either modifying this file (or a copy of it placed in
# /etc/ if the original file is shipped in /usr/), or by creating "drop-ins" in