find . -name "*.sh" -exec git ls-files -s {} \;
find . -name "*.sh" -exec git update-index --chmod=+x {} \;
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
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
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:
// reference to receiver
package main
import "fmt"
type Obj struct {
f string
}
func (o *Obj) Log() {
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" |
#!/bin/bash
i=0
while [[ ! $S == *[] ]]
do
(( i++ ))
S=$(curl -s -k 'https://gitlab.com/api/v4/projects/17678/repository/branches?private_token=<my-access-token>&page='$i)
echo "$S" | jq > $i.json
echo "$S" | wc-
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