Skip to content

Instantly share code, notes, and snippets.

View planetrocky's full-sized avatar
🧡

miaLDN planetrocky

🧡
View GitHub Profile
@planetrocky
planetrocky / jq_colors.sh
Last active August 28, 2025 21:04
jq color palettes (JQ_COLORS)
#!/usr/bin/env bash
#
# shellcheck shell=bash
#
# https://gist.githubusercontent.com/planetrocky/f49cc1791e0e16a5cac008528049af9c/raw/jq_colors.sh
show_usage() {
echo "Usage: $0 [0-5] [--verbose|-v] [--print|--show|-p|-s]" >&2
echo " [0-5]: color palette 0-5 [default=1]" >&2
echo " --print, --show, -p, -sv: print palette example" >&2
@planetrocky
planetrocky / larger_edit_window_in_plex.user.js
Last active July 30, 2025 23:21
Plex: Larger edit window, and larger match/fix-match dialog with reduced font-size
// ==UserScript==
// @name Larger edit windows in Plex
// @version 0.1.19
// @date 2025-07-21
// @author planetrocky
// @match *://app.plex.tv/desktop*
// @grant none
// @downloadURL https://gist.github.com/planetrocky/64db17e51c846b205e382098c65ac2c0/raw/larger_edit_window_in_plex.user.js
// @updateURL https://gist.github.com/planetrocky/64db17e51c846b205e382098c65ac2c0/raw/larger_edit_window_in_plex.user.js
// @source https://gist.github.com/planetrocky/64db17e51c846b205e382098c65ac2c0/raw/larger_edit_window_in_plex.user.js
@planetrocky
planetrocky / iframe-probe.py
Last active May 1, 2025 01:36 — forked from alastairmccormack/iframe-probe.py
Shows GOP structure for video file using ffmpeg --show-frames output
#!/usr/bin/env python3
#
# pylint: disable=missing-module-docstring, missing-class-docstring, missing-function-docstring
#
# Shows GOP structure of video file. Useful for checking suitability for HLS and DASH packaging.
# Example:
#
# $ iframe-probe.py myvideo.mp4
# GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED
# GOP: IPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP 60 CLOSED