Skip to content

Instantly share code, notes, and snippets.

@lmarburger
Created October 8, 2012 15:07
Show Gist options
  • Save lmarburger/3853012 to your computer and use it in GitHub Desktop.
Save lmarburger/3853012 to your computer and use it in GitHub Desktop.
TextExpander snippets to create a Markdown image from the CloudApp link on the clipboard. (Simple only works with private links.)
#!/usr/bin/env bash
curl -H 'Accept: application/json' `pbpaste` | sed -e 's/.*"name"//' -e 's/:"\([^"]*\).*"content_url":"\([^"]*\)/![\1](\2)/' -e 's/",.*//'
![](%clipboard/content)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment