Skip to content

Instantly share code, notes, and snippets.

@jpaulickcz
jpaulickcz / remove-old-kernels.sh
Last active December 30, 2023 16:38 — forked from spyesx/readme.md
Clean up old linux kernels
#!/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() {
@jpaulickcz
jpaulickcz / removeNonEnglish.py
Last active February 10, 2021 10:28 — forked from majora2007/removeNonEnglish.py
Removes foreign language audio and subtitle tracks from mkv files in bulk. Edited for disposable use on Linux.
#!/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