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-----/' '{*}'
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
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
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-upgrade
See:
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
// Name of the struct tag used in examples | |
const tagName = "validate" |
-
https://docs.microsoft.com/ru-ru/windows/terminal/tutorials/powerline-setup - основная статья
-
https://docs.microsoft.com/en-us/windows/terminal/custom-terminal-gallery/powerline-in-powershell
-
https://www.ricalo.com/blog/install-powerline-windows/#install-and-configure-powerline-fonts ставим шрифты в wsl
-
Ставим импдементаци. powerline
- https://github.com/justjanne/powerline-go - go-powerline
- https://github.com/powerline/powerline - powerline
- Install and configure Ubuntu WSL
- Install application
- Docker in Windows without Docker Desktop
- Docker/Kubernetes Clients
- Git tricks
See items marked with ❤️🔥 to use winning variants
- Install and configure Ubuntu WSL
- Install application
- Docker in Windows without Docker Desktop
- Docker/Kubernetes Clients
- Git tricks
sudo apt install curl nano micro mc git net-tools
- xclip as pbcopy