Last active
February 11, 2017 01:17
-
-
Save base698/aca67bf32dd74ef6397129064a8f4489 to your computer and use it in GitHub Desktop.
Easy copy and paste markdown.
This file contains 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 | |
bucket=rbmhmisc | |
uploaded_name=jt-$(date +"%Y-%m-%d-%s")-sn.png | |
s3_path=s3://$bucket/$uploaded_name | |
file=$(ls -tr ~/Desktop/Screen* | tail -n 1) | |
aws s3 cp "$file" "$s3_path" --acl public-read | |
echo "\![Screenshot](https://$bucket.s3.amazonaws.com/$uploaded_name)" | pbcopy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment