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
def check_filename(filename: str) -> str: | |
"""Verifica se já existe um arquivo com o mesmo nome, adiciona um número ao final do nome caso exista. | |
Arguments: | |
filename {string} -- Nome do arquivo | |
Returns: | |
string -- Nome de arquivo válido com numero no final. | |
""" | |
n = 2 |
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
# Dynamically binds port 1080 on localhost to a remote ssh server. | |
# can be used as a socks 5 proxy | |
# usage ./ssh_proxy.sh user host port | |
ssh -f -N -n -D localhost:1080 -p $3 -l $1 $2 |
NewerOlder