In cmd.exe: wsl -u root
. This logs you in as root in Linux. There from you are free to change password as usual with: passwd username
This file contains hidden or 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. Open "Turn Windows Features On or Off" | |
Check "Windows Subsystem for Linux" & "Virtual Machine Platform" | |
Restart | |
2. Install "https://wslstorestorage.blob.core.windows.net/wslblob/wsl_update_x64.msi" | |
[Ref: https://docs.microsoft.com/en-us/windows/wsl/install-win10#manual-installation-steps] | |
3. In cmd.exe or PowerShell: wsl --set-default-version 2 | |
4. Install Linux distribution of choice from MS store or if to upgrade existing distro from WSL1 to WSL2: |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Brief: Given any IPv4 address check if it is private or public. IPv4 itself is not validated | |
# Exit code: 0 (private); 1 (public); 2 (neither private nor public) | |
# Usage: ipcheck <ip_addr> | |
_test(){ | |
# Brief: Test if given value if within given limits. No output. Just exitcode. | |
local limit1="${1}" value="${2}" limit2="${3}" | |
[[ "$(echo -e "${limit1}\n${value}\n${limit2}" | sort -V | awk NR==2)" == "${value}" ]] | |
# TODO: May be `-V` is not needed in `sort` |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Ref: https://unix.stackexchange.com/questions/159253/decoding-url-encoding-percent-encoding | |
# Ref: https://github.com/sixarm/urldecode.sh | |
input="${@//+/ }" | |
echo -e "${input//%/\\x}" |
-
Do nothing if your user-agent is Chrome, IE, Firefox. They connect to localhost with http://*.localhost:post
-
Edit /etc/hosts or C:\Windows\System32\drivers\etc\hosts: Append lines like
127.0.0.1 example.com 127.0.0.1 subdomain1.exmaple.com subdomain2.example.com
This file contains hidden or 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
base36 linguist-language=bash |
This file contains hidden or 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
#!/usr/bin/env bash | |
# Get localtest.me for curl https://localtest.me | |
sudo nc -lk 443 | grep -Uzo --line-buffered '[0-9a-z\-\.]*test.me' | |
# To read length of client hello handshake - the first 4th and 5th byte - record layer | |
nc -l 8000 | (head -c3 >/dev/null; head -c2 | xxd -p) # for curl https://localtest.me:8000 |
This file contains hidden or 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
ITEM: TIMESTEP | |
1000 | |
ITEM: NUMBER OF ATOMS | |
2 | |
ITEM: BOX BOUNDS xx yy zz | |
0.0 20.0 | |
0.0 20.0 | |
0.0 20.0 | |
ITEM: ATOMS id type x y z c_orient[1] c_orient[2] c_orient[3] c_orient[4] c_shape[1] c_shape[2] c_shape[3] | |
1 1 1.0 0.0 0.0 1.0 0.0 0.0 0.0 3.0 1.0 1.0 |
- Official Guide
- VMagnin's post
- NOTE: Make sure to do
sudo apt update
after adding intel's repositories to apt. - VMagnin's post regarding sourcing
/opt/intel/oneapi/setvars.sh
- Another useful source
My route:
curl -Lo- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | sudo gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
sudo tee /etc/apt/sources.list.d/oneAPI.list <<< "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main"
sudo apt update
Ref:
- https://www.digitalocean.com/community/tutorials/how-to-set-up-squid-proxy-on-ubuntu-20-04
- https://answers.microsoft.com/en-us/windows/forum/all/adding-credentials-to-windows-proxy-settings/d6fdab82-6163-4aad-8133-43f7706ceb9c#:~:text=Setting%20up%20the%20credentials%20for,user%20name%20and%20the%20password.
sudo apt update
sudo apt install squid
- Squid should automatically start running. Check with :
systemctl status squid.service
- Now edit config :
/etc/squid/squid.conf
as described below