Skip to content

Instantly share code, notes, and snippets.

@cirrusUK
Last active February 15, 2016 20:23
Show Gist options
  • Select an option

  • Save cirrusUK/ab94710c4b12504464ec to your computer and use it in GitHub Desktop.

Select an option

Save cirrusUK/ab94710c4b12504464ec to your computer and use it in GitHub Desktop.
scripts for quickly uploading files to server(s)
#!/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
#!/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
#!/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