Skip to content

Instantly share code, notes, and snippets.

@El-Wumbus
El-Wumbus / plex-richpresence.fish
Last active June 10, 2025 20:02
plex-richpresence (https://github.com/Arno500/plex-richpresence) - Discord Rich Presence for Plex Install script (meant to go in ~/.local/src)
#!/usr/bin/env fish
if not test -d ./plex-richpresence
git clone https://github.com/Arno500/plex-richpresence
end
cd ./plex-richpresence
git fetch --tags && git checkout (git describe --tags (git rev-list --tags --max-count=1))
go build -tags unix -ldflags='-s -w'
and install -Dm755 ./plex-richpresence ~/.local/bin/plex-richpresence
@El-Wumbus
El-Wumbus / dv_p7_to_p8.fish
Last active June 27, 2025 17:21
"Convert video from Dolby Vision profile 7 to 8. Requires dovi_tool, mkvtoolnix-cli, and ffmpeg.
#!/usr/bin/env fish
function dv_p7_to_p8 -a input output skip_clean -d "Convert video from Dolby Vision profile 7 to 8"
if test -z $input || test -z $output
return
end
set -l container (path extension "$output")
set -l video_stream_p8 (path normalize "$(pwd)/$(path change-extension '' $(path basename $input))_video_p8.hevc")
set -l contained_video_stream (path normalize "$(pwd)/$(path change-extension '' $(path basename $input))_video_p8.mkv")
@El-Wumbus
El-Wumbus / Cargo.toml
Last active June 8, 2025 05:39
Continuously vibrate a controller using SDL3 in Rust
[package]
name = "rumble"
version = "0.1.0"
edition = "2024"
[dependencies]
sdl3 = "0.14"
@El-Wumbus
El-Wumbus / main.rs
Created December 23, 2024 03:19
Translate GIMP Palette files into CSS.
//! Translate [GIMP Palette Format Version 2 (.gpl)](https://developer.gimp.org/core/standards/gpl/) files into CSS variables.
use std::io::BufRead;
fn main() {
let stdin = std::io::BufReader::new(std::io::stdin());
for line in stdin.lines().skip(1) {
let line = line.unwrap();
let line = line.trim();
if line.is_empty() || line.starts_with("#") || line.starts_with("Name:") || line.starts_with("Columns:") { continue; }