Skip to content

Instantly share code, notes, and snippets.

Symptoms

VS code remote will loop the remote server install

file locks from crash or previous connections

"aquiring lock on /home//.vscode-server/bin//vscode-remote-lock.. Failed"

work around

vscode tools plugins

intro

what sets us apart from the animals are our apposable thumbs. " two thumbs up pointed to the camera"

while VSCode is a tool itself, it is also a tool box filled with plugins/purpose built tools, think philips vs flathead screw driver.

( sidebar but what about vim, it also has lots of plugins. However I have only seen the most seasoned vim users doing that)

# windows server
## disable IE enhanced security
server manager -> localmachine -> IE enhanced security
## software
- hyper-v
- image server-2016-with containers has hyperv enabled
- chrome
- wsl
- githubdesktop
- https://central.github.com/deployments/desktop/desktop/latest/win32
@vinnie357
vinnie357 / bfg-tool
Last active February 10, 2021 21:22
# repo history cleanup
# https://rtyley.github.io/bfg-repo-cleaner/
# https://github.com/IBM/BluePic/wiki/Using-BFG-Repo-Cleaner-tool-to-remove-sensitive-files-from-your-git-repo
download bfg jar file
# https://search.maven.org/classic/remote_content?g=com.madgag&a=bfg&v=LATEST
```bash
curl https://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar > bfg.jar
git clone http://yourrepo
cd yourrepo

setup vscode remote

This is for lab only

1 AllowTcpForwarding no

sed -i '/^AllowTcpForwarding/s/no/yes/' /config/ssh/sshd_config

2 copy ssh authorized_keys
sudo cat >> ~/.ssh/authorized_keys <<EOF

ssh-rsa AAAKKEEYYSS

Name:

project name

TLDR

run or usage commands

Requirements:

input = file.txt

sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g' file.txt | xargs echo -e