set cpu/memory usage
# turn off all wsl instances such as docker-desktop
wsl --shutdown
notepad "%USERPROFILE%\.wslconfig"
[wsl2]
memory=3GB # Limits VM memory in WSL 2 up to 3GB
processors=4 # Makes the WSL 2 VM use two virtual processors
get host ip
echo $(cat /etc/resolv.conf | grep nameserver | awk '{print $2}')
get wsl ip
echo $(ip addr sh $(ip route list default | grep -Po ' dev \K\w+') | grep -Po ' inet \K[\d.]+')