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