Skip to content

Instantly share code, notes, and snippets.

@FreeSlave
Last active June 18, 2017 22:21
Show Gist options
  • Select an option

  • Save FreeSlave/02df73c6ad5588e3277a4120a95d20eb to your computer and use it in GitHub Desktop.

Select an option

Save FreeSlave/02df73c6ad5588e3277a4120a95d20eb to your computer and use it in GitHub Desktop.
Upload image to pix.academ from command line and get link
#!/bin/sh
curl --silent --form "image=@$1" --form "action=upload_image" http://pix.academ.info/ | sed -rn "s/^.*image link: \"(.*)\".*/\1/p" | xclip -selection clipboard -t text/plain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment