This file contains 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
#!/bin/bash | |
# Run this script without any param for a dry run | |
# Run the script with root and with exec param for removing old kernels after checking | |
# the list printed in the dry run | |
# bash <(curl -Ls "https://gist.github.com/jpaulickcz/721ad60ad28bb7875a5689defe005305/raw/?clean-kernels-$(date +%s)") | |
# Function to get disk usage in MB | |
get_disk_usage() { |
This file contains 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/python | |
# Removes non-LANG audio tracks and subtitles from mkv files in a directory. | |
# Original script by greenbender at https://forum.videohelp.com/threads/343271-BULK-remove-non-English-tracks-from-MKV-container | |
# Modified by Joseph Milazzo for updated MkvMerge commands. | |
# Download | |
# wget https://gist.githubusercontent.com/jpaulickcz/55e07c8d654feaf8618137716fc60bb5/raw/removeNonEnglish.py && chmod +x removeNonEnglish.py && apt install mkvtoolnix -y | |
# Use |