alias pip='uv pip' && source ~/.bashrc
uv python install 3.12
uv venv --python 3.12
mkdir -p .venv/lib/python3.12/site-packages/pip
nano .venv/lib/python3.12/site-packages/pip/__main__.py
alias pip='uv pip' && source ~/.bashrc
uv python install 3.12
uv venv --python 3.12
mkdir -p .venv/lib/python3.12/site-packages/pip
nano .venv/lib/python3.12/site-packages/pip/__main__.py
###### WSL2 DEBIAN SETUP ##### | |
# wsl --install Debian | |
# wsluser | |
# password | |
echo cd ~ >> ~/.bashrc && source ~/.bashrc | |
sudo nano /etc/wsl.conf | |
```wsl.conf | |
[boot] |
# Without Hyper-V Enabled | |
# Powershell (As Administrator) | |
wsl --shutdown | |
diskpart | |
# Diskpart Compacting Operations | |
select vdisk file="E:\LABS\DockerWSL\docker-desktop-data\ext4.vhdx" | |
attach vdisk readonly | |
compact vdisk | |
detach vdisk |
history -c && history -w && clear && cd ~ |
ls -R -d */.git | cut -d'.' -f1 | xargs -P10 -I{} git -C {} pull | |
# make sure to run it on the folder that have all those repositories that needs to be updated |
Get-ChildItem -Directory -Force -Recurse -Filter ".git" -Depth 1 | ForEach-Object {$currentLocation = Get-Location; Set-Location -Path $_.Parent.FullName; Write-Host $_.Parent.FullName; git pull; Set-Location -Path $currentLocation} | |
# make sure to run it on the folder that have all those repositories that needs to be updated |