This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$rules = [ | |
'@PSR12' => true, | |
// There is a lot of opinionated PSR-12 extending rules below, they all don't break PSR-12. | |
// Each risky rule marked by the comment. | |
// @array_notation | |
'array_syntax' => [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Ubuntu WSL2 must be already installed in C: system drive and user should be able to call windows binaries like wsl.exe from bash. | |
2. We will install Alpine WSL2 distro in an external partition/disk: | |
Download an Alpine ZIP file from here: | |
https://github.com/yuk7/AlpineWSL/releases/ | |
Extract the files in an external partition/disk. (for example D:\Alpine) | |
Make sure WSL2 is enabled by default (wsl.exe --set-default-version 2) | |
Inside the Alpine folder run `winpty Alpine.exe` to install the Distro. An ext4.vhdx file will be created in that same folder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Link https://stephenreescarter.net/how-to-shrink-a-wsl2-virtual-disk/ | |
wsl -l -v | |
wsl --shutdown | |
diskpart | |
select vdisk file="D:\WSL\...\ext4.vhdx" | |
attach vdisk readonly | |
compact vdisk | |
detach vdisk |
OlderNewer