- based on:
- https://gist.github.com/tristanfisher/e5a306144a637dc739e7 https://docs.ansible.com/ansible/latest/user_guide/playbooks_vault.html
input = file.txt
sed -e's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g' file.txt | xargs echo -e
This file contains 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
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 |
This file contains 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
# 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 |
This file contains 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
# 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 |
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)
#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() {