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 February 25, 2026 23:54
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}}
@programminghoch10
programminghoch10 / whatsapp-viewonce.sh
Created September 12, 2025 12:09
WhatsApp ViewOnce Magisk Script
#!/bin/sh
# regurarily copy WhatsApp ViewOnce images into sdcard
while true; do
sleep 60
[ "$(ls /data/data/com.whatsapp/files/ViewOnce | wc -l)" -eq 0 ] && continue
mkdir -p /sdcard/Pictures/WhatsApp/ViewOnce
cp -d -u -p /data/data/com.whatsapp/files/ViewOnce/* -t /sdcard/Pictures/WhatsApp/ViewOnce
done
@programminghoch10
programminghoch10 / ReactivationLockBypass.md
Created December 3, 2025 16:27
Samsung Galaxy Note 4 Samsung Account Reactivation Lock Bypass
  1. Downgrade phone to KitKat (4.4.4)
  2. Enter settings and enable ADB
    1. When in samsung account setup, enter text, select text and click on dictionary
    2. Press back and select "Internet Search" on the bottom
    3. In google, remove search terms and search for "Settings" app instead
      If it doesnt work, connect wifi and reboot so that google app can update in background.
    4. enable developer options and enable adb
    5. connect to computer using adb
      if the authorization prompt doesnt show up, go back to settings main page and try switching between simple and normal launcher modes few times