Skip to content

Instantly share code, notes, and snippets.

@Diegus83
Diegus83 / set_mkv_title.sh
Created November 5, 2020 16:22
Set mkv Title tag using the file name, removing the extension
# Usage: set_mkv_tile.sh *.mkv
for f in "$@"
do
if [ ${f: -4} == ".mkv" ]
then
echo "$f"
echo "${f%.*}"
/usr/local/bin/mkvpropedit "$f" --edit info --set title="${f%.*}"
fi
@Diegus83
Diegus83 / MBpicard.txt
Created November 14, 2020 23:09
Renaming script for MusicBrainz Picard
$if2(%albumartist%,%artist%)/$if(%originalyear%,%originalyear%) - $if($ne(%albumartist%,),%album% $if(%_releasecomment%,\(%_releasecomment%\)) [%label% %catalognumber% %releasecountry%]/,)$if($gt(%totaldiscs%,1),%discnumber%-,)$if($ne(%albumartist%,),$num(%tracknumber%,2) ,)$if(%_multiartist%,%artist% - ,)%title%
1998 - Version 2.0 (special limited edition) [Mushroom Records (UK) Ltd. MUSH29CDX GB]
@Diegus83
Diegus83 / Mac OS X Lion installer.txt
Last active July 31, 2025 10:16
Makes one Bootable USB Lion installer from Apple's provided PKG (2021)
# This is not intended to be guide, I just wrote it as a reminder to myself of the steps necessary.
# If you find it useful, that's great, but keep in mind the paths and device ID's will need
# to be adjusted to your case. And you may need sudo if you are not doing this while booted from recovery like I did.
Get the InstallMacOSX.dmg from https://support.apple.com/kb/DL2077?locale=en_US
Mount the image
hdiutil mount InstallMacOSX.dmg
cd /Volumes/Install\ Mac\ OS\ X