Skip to content

Instantly share code, notes, and snippets.

View miaLDN's full-sized avatar
🧡

miaLDN miaLDN

🧡
  • NY, USA
View GitHub Profile
@miaLDN
miaLDN / iframe-probe.py
Last active December 8, 2025 12:59 — 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, line-too-long
#
# 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
@miaLDN
miaLDN / larger_edit_window_in_plex.user.js
Last active August 31, 2026 06:17
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/miaLDN/64db17e51c846b205e382098c65ac2c0/raw/larger_edit_window_in_plex.user.js
// @updateURL https://gist.github.com/miaLDN/64db17e51c846b205e382098c65ac2c0/raw/larger_edit_window_in_plex.user.js
// @source https://gist.github.com/miaLDN/64db17e51c846b205e382098c65ac2c0/raw/larger_edit_window_in_plex.user.js
@miaLDN
miaLDN / jq_colors.sh
Last active August 31, 2026 06:16
jq color palettes (JQ_COLORS)
#!/usr/bin/env bash
#
# shellcheck shell=bash
#
# https://gist.githubusercontent.com/miaLDN/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
@miaLDN
miaLDN / add_checksums_to_ads.ps1
Created November 15, 2025 04:02
Windows file checksums stored in Alternate Data Stream (ADS)
#!/usr/bin/env pwsh -NoExit
<#
.SYNOPSIS
Adds SHA256 checksums to files as Alternate Data Streams (ADS) and verifies existing checksums.
.DESCRIPTION
This script processes files in the specified directories and either:
- Creates new SHA256 checksums stored in 'hash.sha256' Alternate Data Streams
- Verifies existing checksums against current file content
#!/usr/bin/env bash
# shellcheck shell=bash
# ----------------------------------------------------------------
# Name: find_and_shorten (Recursive Byte-level Truncate)
# Version: 1.3.1
# (C) miaLDN 2026
# ----------------------------------------------------------------
source "${HOME}/.local/bin/ansi_colors.sh"
#!/usr/bin/env bash
#
# shellcheck shell=bash
# shellcheck disable=SC2034
#
# (C) miaLDN 2026
# Control Sequence Introducer (CSI) = `ESC[`
CSI="\033["
CSI_END="m"