- Locate the partion of the newly flashed Raspberry Pi OS.
- Create a new empty file named
ssh
with no extension in the boot partition.
or
echo '' > ssh
arr = ["a", "b", "c", "d", "e", "f", "g", "h", "i", "j"] | |
chunk_three = chunk(arr, 3) | |
assert chunk_three == [["a", "b", "c"], ["d", "e", "f"], ["g", "h", "i"], ["j"]] | |
chunk_default = chunk(arr) | |
assert chunk_default == [["a", "b", "c", "d"], ["e", "f", "g", "h"], ["i", "j"]] | |
chunk_max = chunk(arr, 1000) | |
assert chunk_max == [['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j']] |
In PowerShell, run:
netsh interface portproxy add v4tov4 listenport=<host post> listenaddress=0.0.0.0 connectport=<wsl port> connectaddress=<wsl IP address>
e.g. forward port 8080 to port 8080
netsh interface portproxy add v4tov4 listenport=8080 listenaddress=0.0.0.0 connectport=8080 connectaddress=172.30.144.20
🔗 https://nickjanetakis.com/blog/install-docker-in-wsl-2-without-docker-desktop
cd /tmp
sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt install --fix-broken -y
Follow the instructions below to force all files to be checked out as LF, especially in Windows.
.gitattributes
file in the root directory of the project, if one does not exist.* text=auto eol=lf
.
, it indicates current path)sudo apt install fonts-noto-color-emoji
🔗 Reference: https://gist.github.com/arafathusayn/3d384adfbbdfe0b6a12868e9046e9a23