Skip to content

Instantly share code, notes, and snippets.

@base698
Last active February 11, 2017 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save base698/aca67bf32dd74ef6397129064a8f4489 to your computer and use it in GitHub Desktop.
Save base698/aca67bf32dd74ef6397129064a8f4489 to your computer and use it in GitHub Desktop.
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