################################################################################
######                                                                    ######
###                                                                          ###
#                              _                 _  _       _                  #
#               ___  ___  ___ | |_  ___     ___ | ||_| ___ | |_                #
#              | . || .'||_ -||  _|| -_| _ |  _|| || ||  _|| '_|               #
#              |  _||__,||___||_|  |___||_||___||_||_||___||_,_|               #
#              |_|                                                             #
#                      A simple text and file online clipboard.                #
#                                                                              #
################################################################################
#                                                                              #
#   0x00 | Table of Contents                                                   #
#   =======================================================================    #
#   0x01 | Usage                                                               #
#   0x02 | Examples                                                            #
#   0x03 | Apps / Programs                                                     #
#   0x04 | Themes                                                              #
#   0x05 | Contact and complain                                                #
#                                                                              #
###                                                                          ###
######                                                                    ######
################################################################################


 > x/s &0x01    

 Usage:
 
   POST to http://paste.click and get a URL.
     
     $ curl --data-binary @filename paste.click
     $ ls|curl --data-binary @- paste.click

   The POST returns the url of the paste. If the paste is text, you can add a
   /s/ after the domain to syntax highlight the paste. If you POST to
   http://paste.click/s/ it will return the url with the /s/ added.
     
     Raw paste   - http://paste.click/bGGcnq
     Highlighted - http://paste.click/s/bGGcnq

   There is also a basic text paste form at http://paste.click/up

   All files can also be accessed via our cdn by using the subdomain http://cdn.paste.click/
     
     For example http://paste.click/bSaCLR can also be accessed over the cdn at http://cdn.paste.click/bSaCLR
   
   CDN proudly sponsored by BelugaCDN.com

   

   

------------
 
 > x/s &0x02    
 
 Examples:

   ## Function to upload to paste.click, either reads from STDIN or specifiy 
   ## a file. Outputs url and copys it to the clipboard. Convient in your 
   ## .bashrc or equivilent.
   
      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


------------
 
 > x/s &0x03

 Apps / Programs:
   
  Android app here: 

     https://play.google.com/store/apps/details?id=org.packetfire.pasteclick
  
  Screenshots: 

     http://paste.click/xZEVqT
     http://paste.click/bSaCLR

  Windows users can use this small script to upload from the right click menu: 

     https://github.com/vincehoward/throwie
  
  (Thanks d0nut)


------------
 
 > x/s &0x04

 Themes:

   By default the style is set to monokai, but can be changed by adding
   #stylename from the list below to the URL.
   (http://paste.click/s/TMtTCo#monokai)
   
   This will also change the style on an already loaded page without requiring a
   reload.
   
   Currently supported styles are:
   (Click to try them) 


  ____________________________________________________________________________
 |   dark                              |   tomorrow-night-blue                |
 |   far                               |   tomorrow-night-eighties            |
 |   idea                              |   railscasts                         |
 |   sunburst                          |   obsidian                           |
 |   zenburn                           |   docco                              |
 |   vs                                |   mono-blue                          |
 |   ascetic                           |   foundation                         |
 |   magula                            |   atelier-dune.dark                  |
 |   github                            |   atelier-dune.light                 |
 |   googlecode                        |   atelier-forest.dark                |
 |   brown_paper                       |   atelier-forest.light               |
 |   school_book                       |   atelier-heath.dark                 |
 |   ir_black                          |   atelier-heath.light                |
 |   solarized_dark                    |   atelier-lakeside.dark              |
 |   solarized_light                   |   atelier-lakeside.light             |
 |   arta                              |   atelier-seaside.dark               |
 |   monokai                           |   atelier-seaside.light              |
 |   monokai_sublime                   |   paraiso.dark                       |
 |   xcode                             |   paraiso.light                      |
 |   pojoaque                          |   color-brewer                       |
 |   rainbow                           |   codepen-embed                      |
 |   tomorrow                          |   kimbie.dark                        |
 |   tomorrow-night                    |   kimbie.light                       |
 |   tomorrow-night-bright             |   hybrid                             |
 |_____________________________________|______________________________________|
 
 
------------
 
 > x/s &0x04

 Contact and Complain:
   
   Note: This is a work in progress, and pre-alpha. Things WILL change, things
   will break.
   
   HTML currently breaks very very badly with syntax highlighting, a fix is in
   the works.
   
   If you run into problems or a MIME type is getting set wrong, please file 
   an issue at https://gitlab.packetfire.org/Tiksi/paste-click/ and/or hop on 
   irc and yell at me (Tiksi) (Patches also accepted and welcomed).
    
   irc.packetfire.org #packetfire
     
   Tiksi@packetfire.org 


------------