Skip to content

Instantly share code, notes, and snippets.

@base698 base698/screenshot.sh
Last active Feb 11, 2017

Embed
What would you like to do?
Easy copy and paste markdown.
#!/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
You can’t perform that action at this time.