Mount remote linux server folder
- sshfs-win
- WinFsp
Open Map Network drive from Win Explorer and add network path as
\\sshfs\user@host/../../path_from_root/| # anaconda | |
| conda create -n myenv | |
| conda create -n myenv python=3.9 | |
| conda activate myenv | |
| conda deactivate | |
| conda env list | |
| conda info --envs |
| #!/usr/bin/env python3 | |
| # import shutil | |
| import os | |
| import sys | |
| import re | |
| from shutil import copyfile | |
| dr = str(sys.argv[1]) | |
| ext = str(sys.argv[2]) | |
| dest = str(sys.argv[3]) |
| #taken from this StackOverflow answer: https://stackoverflow.com/a/39225039 | |
| import requests | |
| def download_file_from_google_drive(id, destination): | |
| URL = "https://docs.google.com/uc?export=download" | |
| session = requests.Session() | |
| response = session.get(URL, params = { 'id' : id }, stream = True) | |
| token = get_confirm_token(response) |
Mount remote linux server folder
\\sshfs\user@host/../../path_from_root/| docker-compose build | |
| docker-compose up | |
| docker-compose down |
| # Internet speed Test Check with speedtest-cli | |
| curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - | |
| # Show free RAM | |
| free -h | |
| vmstat | |
| # Show CPU config | |
| lscpu |
| # Handle line endings automatically for files detected as text | |
| # and leave all files detected as binary untouched. | |
| * text=auto | |
| # Never modify line endings of our bash scripts | |
| *.sh -crlf |
| # mount annonymous smb share | |
| mount -t cifs //<your shareserver name or ip>/sharefolder -o username=guest,password="" /path_to_mountpoint | |
| # access annonymous smb share | |
| smbclient //host/share -U " "%" " | |
| smbclient //host/share -U guest% |
| # init git repo | |
| git init | |
| # start git ignore | |
| touch .gitignore | |
| # clone repo | |
| git clone <remote-repo-link> <local-repo-folder-name> |