2016-02-20 03:56:16 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2017-02-15 17:23:57 +00:00
|
|
|
MD5=($(md5 -q "$@"))
|
2016-02-20 03:56:16 +00:00
|
|
|
fname=$MD5."${1##*.}"
|
2019-02-25 19:42:07 +00:00
|
|
|
scp -rp "$1" vps:/www/tyrelsouza.com/screenshots/$fname;
|
2017-02-15 17:23:57 +00:00
|
|
|
osascript -e "display notification \"Uploaded $1 to https://tyrelsouza.com/screenshots/$fname\" with title \"Tyrel Upload\""
|
|
|
|
echo https://tyrelsouza.com/screenshots/$fname | pbcopy
|
2016-02-20 03:56:16 +00:00
|
|
|
rm "$1"
|