Skip to content

Instantly share code, notes, and snippets.

View fractal-fumbler's full-sized avatar

fractal-fumbler fractal-fumbler

View GitHub Profile
@fractal-fumbler
fractal-fumbler / nspawn_gaming_amd
Last active September 17, 2022 10:39
setting systemd-nspawn "container" for steam gaming in with amdgpu (archlinux)
mkdir gamecontainer
sudo pacstrap -i -c gamecontainer base nano sudo bash-completion
sudo arch-chroot gamecontainer
useradd gamer
passwd gamer
mkdir /home/gamer
chown -R gamer:gamer /home/gamer
@fractal-fumbler
fractal-fumbler / encoding.md
Last active July 13, 2021 00:11
ffmpeg bluray encoding (libx264 + x265 + svtav1)
bluray video/audio/subtitle info
ffprobe -show_entries stream=index,codec_type:stream_tags=language -of compact \
bluray:"/path/to/bluray/folder" 2>&1 | { while read line; do if $(echo "$line" |\
grep -q -i "stream #"); then echo "$line"; fi; done; while read -d $'\x0D' line; \
do if $(echo "$line" | grep -q "time="); then echo "$line" | awk '{ printf "%s\r", $8 }'; fi; done; }

#todo map -d? map -t?

@fractal-fumbler
fractal-fumbler / yt-dl.md
Last active June 27, 2021 10:53
use youtube-dl to download list of yt links
  youtube-dl \
  --external-downloader aria2c --external-downloader-args '-c -j 3 -x 3 -s 3' \
  --user-agent='Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36' \
  --limit-rate '7.25M' \
  --retries '3' \
  --no-overwrites \
  --call-home \
  --write-info-json \
  --write-description \
@fractal-fumbler
fractal-fumbler / arch-kvm-vps.md
Last active October 27, 2024 17:41 — forked from d-513/arch-ovh.md
Arch Linux on KVM VPS

Install Arch on KVM VPS

How to install Arch Linux on an VPS (kvm).

Conventions

This guide assumes the following:

  • x86_64, KVM-based VPS
  • VPS has one ROM drive (virtio)
  • VPS has more around 8 GB RAM