mirror of
https://github.com/seejohnrun/haste-client.git
synced 2025-12-12 14:55:56 +00:00
Merge pull request #34 from seejohnrun/move_readme_to_https
Move README to HTTPS
This commit is contained in:
@@ -10,7 +10,7 @@ And once the output makes it to the server, it will print the URL to STDOUT.
|
||||
|
||||
This can be really really cool in combination with `pbcopy`, like:
|
||||
|
||||
* mac osx: `cat file | haste | pbcopy`
|
||||
* mac osx: `cat file | haste | pbcopy`
|
||||
* linux: `cat file | haste | xsel`
|
||||
|
||||
after which the contents of `file` will be accessible at a URL which has been copied to your pasteboard.
|
||||
@@ -42,10 +42,10 @@ haste file --raw
|
||||
|
||||
## Changing the location of your haste server
|
||||
|
||||
By default, haste will point at `http://hastebin.com`. You can change this by setting the value of `ENV['HASTE_SERVER']` to the URL of your haste server. You can also use `alias` to make easy shortcuts if you commonly use a few hastes intermingled with each other. To do that, you'd put something like this into ~.bash_profile:
|
||||
By default, haste will point at `https://hastebin.com`. You can change this by setting the value of `ENV['HASTE_SERVER']` to the URL of your haste server. You can also use `alias` to make easy shortcuts if you commonly use a few hastes intermingled with each other. To do that, you'd put something like this into ~.bash_profile:
|
||||
|
||||
``` bash
|
||||
alias work_haste="HASTE_SERVER=http://something.com haste"
|
||||
alias work_haste="HASTE_SERVER=https://something.com haste"
|
||||
```
|
||||
|
||||
After which you can use `work_haste` to send hastes to that server instead.
|
||||
@@ -70,7 +70,7 @@ If you'd like an alternative on Windows that supports functionality similar to `
|
||||
Han Boetes and @nickthename have contributed a simple shell-script alternative for those not interested in installing a RubyGem:
|
||||
|
||||
``` bash
|
||||
haste() { a=$(cat); curl -X POST -s -d "$a" http://hastebin.com/documents | awk -F '"' '{print "http://hastebin.com/"$4}'; }
|
||||
haste() { a=$(cat); curl -X POST -s -d "$a" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}'; }
|
||||
```
|
||||
|
||||
Usage:
|
||||
|
||||
Reference in New Issue
Block a user