15 lines
410 B
Plaintext
15 lines
410 B
Plaintext
|
#!/bin/bash
|
||
|
set -e
|
||
|
|
||
|
FILENAME="/Users/tyrel/tmp/screenshot.png"
|
||
|
screencapture -i $FILENAME
|
||
|
|
||
|
sleep 1
|
||
|
|
||
|
MD5=($(md5 -q "$FILENAME"))
|
||
|
fname=$MD5.png
|
||
|
scp -rp "$FILENAME" vps:/www/tyrelsouza.com/screenshots/$fname;
|
||
|
osascript -e "display notification \"Uploaded $FILENAME to https://tyrelsouza.com/screenshots/$fname\" with title \"Tyrel Upload\""
|
||
|
echo https://tyrelsouza.com/screenshots/$fname | pbcopy
|
||
|
rm "$FILENAME"
|