#### Some explamples for paste.click

## Function to upload to paste.click, either reads from STDIN or specifiy a file.
## Outputs url and copys it to the clipboard.

function paste.click(){
  if [ -z "$1" ]; then
    curl -s --data-binary @- paste.click/s/ |tee >(xsel -i);
  else
    curl -s --data-binary @$1 paste.click |tee >(xsel -i);
  fi;
};


## Select an area to take a screenshot of, copys the url to the clipboard.
## The can be bound to a shortcut in your window manager.

file=$((cd /tmp&&maim -s)|egrep -o '/.*') && curl -s --data-binary @$file paste.click |xsel -i && rm -f $file

## Uploads whatever text you have selected and copys the url to the clipboard
## Also nice to have a key binding for.

xsel -p|curl --data-binary @- paste.click/s|xsel -i