1
0
mirror of https://github.com/seejohnrun/haste-client.git synced 2025-12-15 16:25:57 +00:00

Merge branch 'master' of github.com:seejohnrun/haste-client

This commit is contained in:
John Crepezzi
2014-11-01 10:22:53 -04:00
2 changed files with 5 additions and 5 deletions

View File

@@ -26,7 +26,7 @@ gem install haste
If you supply a valid file path as argument #1 to the client, it will be uploaded: If you supply a valid file path as argument #1 to the client, it will be uploaded:
``` bash ``` bash
# equivelant # equivalent
cat file | haste cat file | haste
haste file haste file
``` ```
@@ -67,16 +67,16 @@ If you'd like an alternative on Windows that supports functionality similar to `
## Lightweight Alternative ## Lightweight Alternative
Han Boetes has contributed a simple shell-script alternative for those not interested in installing a RubyGem: Han Boetes and @nickthename have contributed a simple shell-script alternative for those not interested in installing a RubyGem:
``` bash ``` bash
haste(){ ( echo "% $@"; eval "$@" ) | curl -F "$@=<-" http://hastebin.com/documents|awk -F '"' '{print "http://hastebin.com/"$4}'} haste() { a=$(cat); curl -X POST -s -d "$a" http://hastebin.com/documents | awk -F '"' '{print "http://hastebin.com/"$4}'; }
``` ```
Usage: Usage:
``` bash ``` bash
haste `cat index.html cat file.txt | haste
``` ```
## Author ## Author

View File

@@ -1,5 +1,5 @@
module Haste module Haste
VERSION = '0.1.7' VERSION = '0.2.0'
end end