#https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
#https://betterdev.blog/minimal-safe-bash-script-template/
#!/usr/bin/env bash
set -Eeuo pipefail
trap cleanup SIGINT SIGTERM ERR EXIT
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P)
usage() {
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 |
# 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 |
input = file.txt
sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g' file.txt | xargs echo -e