2018-12-18 19:36:52 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
FILENAME="/Users/tyrel/tmp/screenshot.png"
|
2019-02-25 19:42:07 +00:00
|
|
|
screencapture -io $FILENAME
|
2018-12-18 19:36:52 +00:00
|
|
|
|
|
|
|
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\""
|
2021-02-11 16:25:39 +00:00
|
|
|
echo -ne https://tyrelsouza.com/screenshots/$fname | pbcopy
|
2018-12-18 19:36:52 +00:00
|
|
|
rm "$FILENAME"
|