l-7kqg
Last Updated: February 25, 2016
·
267
· victorbjelkholm

Dead simple pastbin service for programmers, pipe terminal commands, use files, images etc

http://paste.click/ is a dead simple service where you can POST any data to it and it'll give you an URL back with the data you sent.

Picture

These are two common command used

Pipe output from command into paste.click

ls | curl --data-binary @- paste.click

Post contents of testfile into paste.click

curl --data-binary @testfile paste.click

But, writing this commands all the time becomes tiring quickly, plus, we have to manually copy the link that comes out from the command, or add pbcopy to the commands as well.

So, aliases and functions in your bash/zsh/whatev rc comes to the rescue!

paste_file()
{
    curl --data-binary @"$1" paste.click | pbcopy
}
alias paste_pipe='curl --data-binary @- paste.click | pbcopy'

Now we have two commands, paste_file and paste_pipe which automagically copies the link to you as well.

Usage:

Paste some system information

uname -a | paste_pipe

Paste contents from file

paste_file /etc/passwd

And the link to the paste is now in your clipboard.

Enjoy your newly found free time! (approximate time saved, 2 hours/day )