sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgradeSee:
sudo sed -i -re 's/([a-z]{2}\.)?archive.ubuntu.com|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list
sudo apt-get update && sudo apt-get dist-upgradeSee:
ssh-keygen -t ed25519 -C "[email protected]"
See gitub.com: Generating a new SSH key and adding it to the ssh-agent:
Key/pub will be here ~\.ssh and will look like id_ed25519 and id_ed25519.pub
How to remove the Win10's PATH from WSL
Create or edit /etc/wsl.conf
[interop]
enabled=false # enable launch of Windows binaries; default is true
appendWindowsPath=false # append Windows path to $PATH variable; default is true
then wsl --shutdown
docker run -it -v $(pwd):/home/docker -v /var/run/docker.sock:/var/run/docker.sock -w /home/docker docker:19.03.8 /bin/sh
IN_CERTS=$(cat in.pem)
echo -e "$IN_CERTS" > ./tmp.pem
sed -i '/^[[:space:]]*$/d' ./tmp.pem
mkdir -p _certs
csplit -s -z -f './_certs/cert-' -b '%02d.crt' ./tmp.pem '/-----BEGIN CERTIFICATE-----/' '{*}'find . -name "*.sh" -exec git ls-files -s {} \;
find . -name "*.sh" -exec git update-index --chmod=+x {} \;
How to check that CA certificate is untrasted under WSL2 (Ubuntu) and fix it
HOST=abc.foo.cloud # or another
openssl s_client -connect ${HOST}:443 -showcerts
Result:
CONNECTED(00000003)
cat | tee -a ~/.bashrc > /dev/null << "EOF"
# supported cases:
# git config user.email
# git clone https://aaa.git bbb && ls -al ~/.gitconfig
# git clone https://aaa.git aaa
# git checkout -b test
# git commit -am 'issue-42"s '
# git commit -am "issue-42's "package aaa;
import com.google.common.util.concurrent.Uninterruptibles;
import io.vertx.core.Vertx;
import io.vertx.core.http.*;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.*;