Update httpup command with new Python3 script

This commit is contained in:
Jeremy Gardais 2023-01-27 13:56:57 +01:00
parent 9ec904304a
commit 0e99fa073a
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 2 deletions

4
zshrc
View File

@ -324,8 +324,8 @@ alias rd='rmdir'
## Minimal webserver from current directory and available at http://IP.AD.RE.SS:8002 ## Minimal webserver from current directory and available at http://IP.AD.RE.SS:8002
## See : https://docs.python.org/3/library/http.server.html ## See : https://docs.python.org/3/library/http.server.html
alias httpserv='python3 -m http.server -b $(hostname -i) 8002' alias httpserv='python3 -m http.server -b $(hostname -i) 8002'
## Créer un mini serveur web à partir du quel les utilisateurs peuvent uploader des fichiers sur la machine ## Minimal webserver with upload option and storage in dedicated directory
alias httpup="python /home/${USER}/bin/droopy -m \"Salut, c'est Bob l'éponge, envoi moi un fichier stp.\" -p /home/${USER}/avatar.png -d /media/data/download" alias httpup="mkdir --parent -- /tmp/http.upload.directory && cd -- /tmp/http.upload.directory && python3 ${HOME}/bin/upload-http-server.py --listen $(hostname -i) --port 8004"
## Limite l'envoi à 3 requêtes pour ping ## Limite l'envoi à 3 requêtes pour ping
alias ping="ping -c 3" alias ping="ping -c 3"