Skip to content

Instantly share code, notes, and snippets.

@HyShai
Created February 18, 2014 20:11
Show Gist options
  • Save HyShai/9079015 to your computer and use it in GitHub Desktop.
Save HyShai/9079015 to your computer and use it in GitHub Desktop.
#!/bin/bash
img=/Users/$USER/Downloads/tmp64.img
pbpaste 2>&1 | wget --quiet -i - -O $img&&
echo "<img src=\"data:image/png;base64,$(base64 $img)\" />" | pbcopy &&
rm $img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment