For that large wsl disk.
wsl.exe --list --verbose
wsl –shutdown
optimize-vhd -Path .\ext4.vhdx -Mode full| # Fix for error. | |
| # WARNING: The version '1.4.7' of module 'PackageManagement' is currently in use. Retry the operation after closing the applications. | |
| # Substitute version for latest here. | |
| # https://www.powershellgallery.com/packages/PowerShellGet/2.2.5 | |
| Update-Module -Name PowerShellGet -RequiredVersion 2.2.5 |
| #!/usr/bin/env node | |
| console.log("hello world") |
| choco list --localonly | |
| Chocolatey v0.10.15 | |
| 7zip 19.0 | |
| 7zip.install 19.0 | |
| adobereader 2019.021.20061 | |
| aimp 4.60.2161.20191202 | |
| anaconda3 2019.10 | |
| asio4all 2.14 | |
| atom 1.53.0 | |
| atom.install 1.53.0 |
| # One liner | |
| wget --recursive --page-requisites --adjust-extension --span-hosts --convert-links --restrict-file-names=windows --domains yoursite.com --no-parent yoursite.com | |
| # Explained | |
| wget \ | |
| --recursive \ # Download the whole site. | |
| --page-requisites \ # Get all assets/elements (CSS/JS/images). | |
| --adjust-extension \ # Save files with .html on the end. | |
| --span-hosts \ # Include necessary assets from offsite as well. | |
| --convert-links \ # Update links to still work in the static version. |
| #!/bin/bash | |
| pip install -r requirements.txt | |
| # if repo has a setup.py | |
| pip install git+https://github.com/terrykong/tfrecord-browser | |
| pip install .\terrykong\tfrecord-browser | |
| pip freeze | |
| pip freeze -r requirements.txt | |
| pip freeze -l | |
| pip freeze --trusted-host name:port |
| <# | |
| .SYNOPSIS | |
| Powershell Profile | |
| .DESCRIPTION | |
| Powershell Profile | |
| .PARAMETER | |
| None | |
| .INPUTS | |
| None | |
| .OUTPUTS |
| # https://superuser.com/questions/1072516/open-the-start-menu-using-powershell | |
| (New-Object -ComObject "wscript.shell").SendKeys("^{ESC}") | |
| Start-Sleep 2 | |
| (New-Object -ComObject "wscript.shell").SendKeys("This Pc") | |
| Start-Sleep 2 | |
| (New-Object -ComObject "wscript.shell").SendKeys("+{F10}") | |
| (New-Object -ComObject "wscript.shell").SendKeys("s") | |
| Start-Sleep 2 | |
| (New-Object -ComObject "wscript.shell").SendKeys("p") |