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
| ''' | |
| This is a helper script to delete all __pycache__ folders | |
| ''' | |
| from ctypes import windll | |
| from pathlib import Path | |
| from shutil import rmtree | |
| import os | |
| import string | |
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
| @echo off | |
| setlocal | |
| if [%~1]==[] ( | |
| echo No input given to the script | |
| echo Usage: %~nx0 name_of_host_to_search | |
| exit /B 0 | |
| ) | |
| for /f "tokens=2" %%a in ('ssh -G %~1 ^| findstr /i /b hostname') do ( |
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
| @echo off | |
| setlocal | |
| set user_config=%USERPROFILE%\.ssh\config | |
| echo. | |
| echo Reading %user_config% i.e., user-specific ssh config | |
| call :parse_ssh_config %user_config% | |
| set global_config=%ProgramData%\ssh\ssh_config | |
| echo. |