Created
June 4, 2015 19:44
-
-
Save nasser/5042bd7a40432158ae69 to your computer and use it in GitHub Desktop.
Data-URI dump file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "data:"`file --mime-type -b $1`";base64," | |
cat $1 | openssl base64 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment