Skip to content

Instantly share code, notes, and snippets.

View thumbarnirmal's full-sized avatar
🏠
Working from home

Nirmal Thumbar thumbarnirmal

🏠
Working from home
View GitHub Profile
## Powershell commands
# Shutdown WSL
wsl --shutdown
# Confirm WSL shutdown
wsl --list -v
# Optimize disk to release extra space
# Update path to vhdx file as per your system
@thumbarnirmal
thumbarnirmal / Python env setup
Last active November 21, 2022 18:51
Commands for initial Python environment setup
# Install pip
sudo apt install python3-pip
# Install virtualenv using pip3
sudo pip3 install virtualenv
# Create a virtual environment
virtualenv venv
# Create virtual environment for a specific Python interpreter version
@thumbarnirmal
thumbarnirmal / .bashrc
Created January 18, 2022 17:40
Customizations for my linux machine
# Add battery percentage to terminal prompt
# https://phoenixnap.com/kb/change-bash-prompt-linux
# https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x279.html
export PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\$(cat /sys/class/power_supply/BAT1/capacity)%-\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$"