28 April 2026

Compare 2 directories

Compare the contets of 2 directories, while excluding some sub directories in those directories.
diff -r --exclude=.git --exclude=.nuxt --exclude=node_modules directory_one directory_two

27 April 2026

MP3 Tagger

Use Picard - a cross-platform music tagger powered by the MusicBrainz database, to set MP3 metadata

https://picard.musicbrainz.org/

24 February 2026

Compress ISO/CSO to CHD

chdman.exe createcd -i "Input.iso" -o "Output.chd"
Find chdman.exe from MAME Windows Binary - https://www.mamedev.org/release.php

23 February 2026

Options to use with yt-dlp

Options to use with yt-dlp to download MP3 from playlist.
yt-dlp --extract-audio --audio-format mp3 \
--embed-metadata --embed-thumbnail \
--parse-metadata "title:%(title)s" \
--parse-metadata "artist:%(channel)s" \
-o "%(title)s.%(ext)s" playlist

11 December 2024

Exclude Windows PATHs in WSL PATH

In WSL, add the below to /etc/wsl.conf
[interop]
appendWindowsPath = false
You'll need to restart WSL after updating the above. From cmd, run
wsl --shutdown

02 December 2024

Linus Alias or Shortcut using Bash Function

Open ~/.bashrc and add the below function.
artisan() {
docker-compose exec php artisan "$@"
}
Reload the shell configuration.
source ~/.bashrc
Use the alias or shortcut.
artisan make

29 July 2024

Get Code Snapshot from Specific Commit in Git

Here's how you can get code snapshot from a specific commit in Git. Let's go through the steps.
git fetch
Update the branch
git pull
Find the commit hash, eg. commit-hash
git log
Checkout the branch while creating it.
git checkout -b branch_name commit-hash