Skip to content

Instantly share code, notes, and snippets.

@programminghoch10
programminghoch10 / lsdvdjson.sh
Created September 12, 2024 17:33
lsdvd output as JSON
lsdvd -x -Oy | sed -e 's/^lsdvd = //' -e "s/'/\"/g" | tr -d '\n'| sed -e 's/,\s*}/}/g' -e 's/,\s*]/]/g'
@programminghoch10
programminghoch10 / RipDVDsusingFFmpeg.md
Last active September 17, 2024 10:44
Rip DVDs using FFmpeg

Rip DVDs using FFmpeg

This Gist provides an easy to use script for ripping DVDs using FFmpeg.

Install

Install ffmpeg, libdvdcss2 and lsdvd on your system.

@programminghoch10
programminghoch10 / mintedcleverref.tex
Created February 23, 2025 14:45
LATeX Minted Cleverref Line Numbers
% insert these two lines after your \usepackage{cleveref}
% then use \mintedlinelabel{labelname} inside the minted file using the "escapeinside" minted option
% then \cref and deriviates should correctly reference as "line x"
\newcounter{line}
\newcommand{\mintedlinelabel}[1]{\setcounter{line}{\value{FancyVerbLine}}\addtocounter{line}{-1}\refstepcounter{line}\label{#1}}