This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[package] | |
name = "rumble" | |
version = "0.1.0" | |
edition = "2024" | |
[dependencies] | |
sdl3 = "0.14" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! 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; } |