Last active
February 15, 2016 20:23
-
-
Save cirrusUK/ab94710c4b12504464ec to your computer and use it in GitHub Desktop.
scripts for quickly uploading files to server(s)
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
| #!/bin/bash | |
| red=`tput setaf 1` | |
| green=`tput setaf 2` | |
| yellow=`tput setaf 3` | |
| tput setaf 1 | |
| scp -P 22 -rv $1 [email protected]:/home/cirrus/public_html && echo "πΈπΊπ¨π¨πͺπΈπΈ , $1 uploaded to openshells public directory " | ccze -A ; | |
| xdg-open http://cirrus.openshells.org | |
| exit |
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
| #!/bin/bash | |
| red=`tput setaf 1` | |
| green=`tput setaf 2` | |
| yellow=`tput setaf 3` | |
| tput setaf 1 | |
| scp -P 22 -rv $1 [email protected]:/srv/http/ && echo "$1 πΈπΊπ¨π¨πͺπΈπΈ im done, $1 uploaded to server " | ccze -A ; | |
| xdg-open http://192.168.1.33:8080 | |
| exit |
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
| #!/bin/bash | |
| red=`tput setaf 1` | |
| green=`tput setaf 2` | |
| yellow=`tput setaf 3` | |
| tput setaf 1 | |
| scp -P 22 -rv $1 [email protected]:/mnt/pi2/mpd && echo "πΈπΊπ¨π¨πͺπΈπΈ, $1 uploaded to MPD directory" | ccze -A ; | |
| xdg-open http://192.168.1.33:8080/pi2/mpd | |
| exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment