Skip to content

Instantly share code, notes, and snippets.

@alswl
Created August 17, 2016 07:23
Show Gist options
  • Save alswl/6871b312379f614f7526fe40c1bc4f59 to your computer and use it in GitHub Desktop.
Save alswl/6871b312379f614f7526fe40c1bc4f59 to your computer and use it in GitHub Desktop.
image paste to markdown
IMAGE_DIR=/Users/example/Dropbox/Public/upload_dropbox/temp
URL_PREFIX=http://example.qiniudn.com/upload_dropbox/temp
FILE_NAME=paste_`date '+%Y-%m-%dT%H:%M'`.png
pngpaste $IMAGE_DIR/$FILE_NAME
echo -n "![$FILE_NAME]($URL_PREFIX/$FILE_NAME)"
@alswl
Copy link
Author

alswl commented Aug 17, 2016

put this script to Alfred workflow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment