Set-Service ssh-agent -StartupType Automatic
Start-Service ssh-agent
ssh-add X:\xxx.ed25519
The permission of file X:\xxx.ed25519
need manual tweak before ssh-add:
- Right click
X:\xxx.ed25519
, click "Properties."
#/usr/bin/env bash | |
ARGS=("$@") | |
WPATH=() | |
PPATH=() | |
OIFS="$IFS" | |
IFS=":" | |
X=( $PATH ) |
#!/bin/bash | |
RAINBOW=(196 202 208 214 220 226 190 154 118 82 46 46 47 48 49 50 51 45 39 33 27 21 21 57 93 129 165 201 200 199 198 197 196) | |
function char_rainbow() { | |
local STR="$1" I | |
J=$(( $J % ${#RAINBOW[@]} )) | |
for I in $(seq 0 $(( ${#STR} - 1 )) ) ; do | |
printf "\e[38;5;%dm%c" "${RAINBOW[J]}" "${STR:${I}:1}" | |
J=$(( $J + 1 )) |
#!/bin/bash | |
# rgb R G B | |
# 0 <= RGB <= 5 | |
function rgb() { | |
local R=$1 G=$2 B=$3 | |
echo -n $(( $R * 36 + $G * 6 + $B + 16 )) | |
} |
#!/bin/bash | |
GOBIN=/usr/golang/bin/go | |
function go() { | |
if [ "$1" = "get" ]; then | |
shift | |
echo "run go get ::: $*" >&2 | |
parallel --will-cite -j 4 "$GOBIN" get -u -v ":::" "$@" | |
else | |
"$GOBIN" "$@" | |
fi |
```bash | |
journalctl -ft privoxy | |
``` |
Then you can just write every file standalone, compile them all (to commonjs format), and others can use. perfect.
import xxx from "vs/code/workbench"
)
require
call to handle absolute import pathimport { | |
createCompilerHost, | |
createProgram, | |
Diagnostic, | |
formatDiagnostic, | |
FormatDiagnosticsHost, | |
getParsedCommandLineOfConfigFile, | |
ParseConfigFileHost, | |
ParsedCommandLine, | |
Program, |
#!/bin/bash | |
LOCAL_REPO='http://mirrors.aliyun.com/cygwin/' | |
LOCAL_PACKAGE_DIR='A:/cygwin-repo' | |
if [ ! -e /setup-x86_64.exe ]; then | |
if command -v wget &>/dev/null ; then | |
wget -c "http://cygwin.org/setup-x86_64.exe" -O /setup-x86_64.exe | |
else | |
echo "No setup-x86_64.exe, and no wget." >&2 |
#!/bin/sh | |
export O_P_W_D=$(pwd) | |
trap " | |
cd '$O_P_W_D' | |
pwd | |
echo 'cleanup...' | |
while ! umount root ; do sleep 1 ; done | |
while ! qemu-nbd --disconnect /dev/nbd0 ; do sleep 1 ; done |