Created
August 22, 2016 20:35
-
-
Save mbrock/d888d199a590a4e863ea25c944468dd7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| # use: ipfspic <picture-to-upload> | |
| url=https://ipfs.pics/upload.php | |
| http --headers -f POST $url img@"$1" | | |
| grep Location | | |
| sed 's/^Location: //' | | |
| sed 's#pics/#pics/ipfs/#' | | |
| sed 's/#new//' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment