Git Product home page Git Product logo

haste-client's Introduction

Haste Client

Haste-client is a simple client for uploading data to Haste server. All you need to do is to pipe data in STDIN:

cat file | HASTE_SERVER_TOKEN=mytoken haste

And once the output makes it to the server, it will print the Haste share page URL to STDOUT.

This can be combined with pbcopy, like:

  • 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.

Installation

gem install haste

Configuration

Most of the configuration is controlled by env variables. Here is the all environment variables that you can use.

HASTE_SERVER: Haste server domain url
HASTE_SERVER_TOKEN: Github authentication token
HASTE_SHARE_SERVER: Haste share server domain url
HASTE_USER: Basic authentication user name
HASTE_PASS: Basic authentication user pass
HASTE_SSL_CERTS: SSL certs path

To add these environment variables, you should simply add them to your ~.bash_profile:

export VARIABLE="value"

Authentication

If you are using default HASTE_SERVER, you need to have an GitHub authentication token. You can get the information about authentication and how to generate token here

After you have generated your token, you should add it to your ~.bash_profile:

export HASTE_SERVER_TOKEN="mytoken"

or you can add token to your command:

cat file | HASTE_SERVER_TOKEN=mytoken haste`

If your Haste installation requires http authentication, add the following to your ~.bash_profile:

export HASTE_USER="myusername"
export HASTE_PASS="mypassword"

if you are using SSL, you will need to supply your certs path

export HASTE_SSL_CERTS="/System/Library/OpenSSL/certs"

Usage

If you supply a valid file path as an argument to the client, it will be uploaded:

# equivalent
cat file | haste
haste file

Different Haste server

By default, Haste share page will point at https://hastebin.com. If you have haste-server configured to serve bins on a separate domain, you also need to set ENV['HASTE_SHARE_SERVER'] value to that domain.

To set the value of share server, you can add the following to your ~.bash_profile:

export HASTE_SHARE_SERVER="myshareserver"

Different Haste server

By default, haste server 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.

To set the value of server, you can add the following to your ~.bash_profile:

export HASTE_SERVER="myserver"

Use with alias

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:

alias work_haste="HASTE_SERVER=https://something.com HASTE_SERVER_TOKEN=mytoken haste"

or

alias work_haste="HASTE_SERVER_TOKEN=mytoken haste"

After which you can use work_haste to send hastes to that server or with different tokens instead.

Use as a library

You can also use Haste as a library to upload hastes:

require 'haste'
uploader = Haste::Uploader.new
uploader.upload_raw 'this is my data' # key
uploader.upload_path '/tmp/whaaaa' # key

Contributor License Agreement

Licensed under the MIT license.

haste-client's People

Contributors

adamdubnytskyy avatar buccolo avatar filipechagas avatar grampajoe avatar jokull avatar konstrybakov avatar mcarneiro avatar otternq avatar phaza avatar raincoats avatar sairez avatar seejohnrun avatar tommcdo avatar xenithorb avatar yusufzmly avatar zertrin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

haste-client's Issues

Could not install in MacOS mojave

I tried to intall this app, but it fails.

$ gem install haste
ERROR:  Could not find a valid gem 'haste' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: tlsv1 alert protocol version (https://rubygems.org/latest_specs.4.8.gz)

Ctrl+Shift+T not a nice shortcut for Twitter

On Firefox and Chromium, Ctrl+Shift+T will by default reopen the last closed tab. Using this shortcut on hastebin.com for twittering the URL does not yield nice results:

  • On Firefox, it overrides the default shortcut, leading me to open Twitter rather than reopening my last closed tab as I had intended.
  • On Chromium, this shortcut will simply keep opening the last closed tab so it can't be used to Twitter the URL.

Upload to another domain

How to edit the domain to upload it on my hastebin server instead of hastebin public server ?

Thanks ;)

Client fails when haste application is running on a non-default path on the server

Haste client fails with an error when the hast application is running as non default application on the web-server. For example below command fails:

[me@localhost haste]$ echo "hello" | HASTE_SERVER='http://my.webserver.com/paste' haste
failure uploading: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>404 Not Found</title>
</head><body>
<h1>Not Found</h1>
<p>The requested URL /documents was not found on this server.</p>
<hr>
<address>Apache/2.2.15 (Fedora) Server at my.webserver.com Port 80</address>
</body></html>

[me@localhost haste]$

Haste-client application error

Installed version: haste-0.2.1
Default installation configuration

~/documents/playground$ cat sudoku.py | haste
failure uploading: <!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style type="text/css">
    html, body, iframe { margin: 0; padding: 0; height: 100%; }
    iframe { display: block; width: 100%; border: none; }
  </style>
<title>Application Error</title>
</head>
<body>
  <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
    <p>Application Error</p>
  </iframe>
</body>
</html>

The installation had worked previously

Not in path in linux system

i did:
aptitude install ruby rubygems1.8
gem install haste

(No error)

then i do haste, and haste is not in my PATH, i do:
ruby /var/lib/gems/1.8/gems/haste-0.0.2/bin/haste and get this:

/var/lib/gems/1.8/gems/haste-0.0.2/bin/../lib/haste.rb:1:in require': no such file to load -- json (LoadError) from /var/lib/gems/1.8/gems/haste-0.0.2/bin/../lib/haste.rb:1 from /var/lib/gems/1.8/gems/haste-0.0.2/bin/haste:3:inrequire'
from /var/lib/gems/1.8/gems/haste-0.0.2/bin/haste:3

My gem dir:

ls /var/lib/gems/1.8/gems
haste-0.0.2 json-1.6.3

Add option for raw URLs

I would like some functionality where you can use the haste client to get the raw URL from hastebin. Something along these lines would be awesome:

$ cat myfile.txt | haste --raw

Which would output:

http://hastebin.com/raw/randomhash

haste-client lite improvement

haste () 
{
    local S="http" H="hastebin.com" P=""
    local SHP="${S}://${H}${P}/"
    curl -X POST -s --data-binary @- "${SHP}documents" \
        | awk -F '"' '{print a$4}' a="${SHP}"
}

This was what I ended up using internally. Yes, it's a little more complicated than the example, but the added functionality of --data-binary @- replacing -d is what allows me to send any size text file

I usually put this in /etc/profile.d as its own script so that it's loaded into the shell upon login. Could have gone the separate script in /usr/local/bin route, but this seemed simpler.

Chrome Extension

I am not sure if there is a hastebin extension that supports custom urls if so can i get the link of it? If not i think you should implement it

Installation instructions

Thanks for an excellent hastebin client! Just wanted to point out it'd be great to have install instructions. As someone who doesn't deal with ruby and rake very often, I had to do a bit of googling around to figure out:

  • Installed rake and the rspec gem
  • It still wouldn't work, though, spitting out: no such file to load -- rspec/core/rake_task when calling `rake.
  • I added require 'rubygems' at the top of the Rakefile, then ran rake.
  • Fail again: Don't know how to build task 'default'.
  • Looks like it's rake build based on the Rakefile. That seems to have done it but I also needed to add /var/lib/gems/1.8/bin to my $PATH for haste to work out of the box.

All of the above is probably bleeding obvious to Ruby developers, but it'd be nice to outline it for the newbies or foreign speakers. I'd offer my help, but you probably already know better and simpler ways to install haste than that, such as with rvm or whatever the most appropriate fashion is these days.

failure parsing response: 757: unexpected token at '<html>

Any Idea why I am getting this as a response from cat file.txt | haste?

failure parsing response: 757: unexpected token at '<html>
<head>

        <title>hastebin</title>

        <link rel="stylesheet" type="text/css" href="solarized_dark.css"/>
        <link rel="stylesheet" type="text/css" href="application.css"/>

        <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
        <script type="text/javascript" src="highlight.min.js"></script>
        <script type="text/javascript" src="application.min.js"></script>
                ...
                ...
                ...
</html>'

cannot find my post

I followed the instructions from the readme.md. And this fails. I don't know why.

image

Language detection not 100% correct

When saving JS code, it gets put down as PHP, Pearl and other languges.
This, most of the time, screws with syntax highlighing
I would love to see some sort of way to select the language manually.

I would create a fork and pull request but, alas, I do not know ruby

lightweight alternative throws error

Hi!
I found that the lightweight curl alternative throws some errors.

I keep this issue here for tracking so other people can stumble over it when looking for it. You can decide to update the docs if you want.

bash: /usr/bin/curl: Argument list too long

I changed it to this to allow uploading files directly:

haste() { a=$1; curl -X POST -s -d @"$a" https://hastebin.com/documents | awk -F '"' '{print "https://hastebin.com/"$4}'; }

Usage:

haste error.log

While I do love pasting from stdin, file is fine for quick and dirty showing something to someone else.

a somewhat lighter client.

Since I'm not in the mood today to install yet another scripting language I made a different implementation of the client:

haste(){ ( echo "% $@"; eval "$@" ) | curl -F "$@=<-" http://hastebin.com/documents|awk -F '"' '{print "http://hastebin.com/"$4}'}

dependencies: curl
Installation: Drop that line in your shell initialisation file: most likely ~/.bashrc
And then you have to reboot

After that you can run haste like this:
haste 'command'

for example:

haste 'ssh -v host'

I hope you like it.

Add 1.8.7 support back, or add note to README

In the planned code for 0.2.0, support for Ruby 1.8.7 will be dropped due to dependency on RestClient. We can either remove RestClient again as a dependency, find an alternative, or make system users use old haste

^^^INSTANT!!! Free Robux Generator 2022 Get 200K Free Robux Daily [Mie$] 04 sec ago. *`{{ {bc5&!} }}FREE ROBUX NO HUMAN VERIFICATION FREE ROBUX Free Robux Generator 2022!The perfect hack tool that generates free robux instantly!Easy Hack to get free robux. Noob or pro? Does no matter as long as you have

^^^INSTANT!!! Free Robux Generator 2022 Get 200K Free Robux Daily [Mie$] 04 sec ago. *`{{ {bc5&!} }}FREE ROBUX NO HUMAN VERIFICATION FREE ROBUX Free Robux Generator 2022!The perfect hack tool that generates free robux instantly!Easy Hack to get free robux. Noob or pro? Does no matter as long as you have

[- ### CLICK HERE TO GET YOUR FREE ROBUX NOW ]
(https://track.profithubcash.com//tr?offer_id=8&aff_id=4448)

this tool with you. You can hack Roblox and eMpiRe They say technology is good, but at the same time, if not well applied, it can become a challenge and a ground for fraudsters to thrive. This is because, in the recent, there have been so many fake sites that claim to offer Robux for free on Roblox gamers which may ends up messing up with the players. The main contributor may merely be because, Roblox popularity is growing in a very high rate and at the same time, some so many desperate players are ready to try up anything to be on the go.This, however, should not be a reason to worry any gamer as there are also many good roblox generators that provide services to people from all over the world. The original and working generators have a few features in common some of which include: They are compatible with both Android and iOS devices. They should have a team in place tocheck the compatibility of their product to ensure they are not selective.Easy to use: The primary focus of all generator providers should be to make the life ofgamers easy and comfortable; hence, any product they launch should be able to reach thisgoal. Easy to access: Although there are some steps involved in obtaining any generator, the levels should be very minimal and easy to understand (should be easy for both young and old). Before venturing up to the generators-looking through field, it is basic first to have an away from of the game itself. This is on the grounds that you may wind up more befuddled and lost toward the finish of the cycle on the off chance that you don't have an away from of what you are searching for. Initially, you probably won't have any need of getting the free Robux, yet with time as the game becomes better and you get more associated even to different players, they may prove to be useful. Consequently, it is prudent to have a decent blueprint and be forearmed with the information on the best way to hotspot for them. In this apparatus page, you can produce free robux utilizing our "Free Robux Generator" and furthermore you will think about roblox and robux. Roblox is where the player would have the option to cooperate with different players and afterward contend on some other various levels also. Roblox is one of the most well known games that have in excess of 70 million dynamic clients without a doubt. The greater part of these players are adolescents who are matured somewhere in the range of 8 and 13 years of age. There are so various levels and difficulties that the players can go for alongside some other Easter egg chases too. There is no uncertainty that the fabulous game is loaded up with heaps of different games that would have various guides, models, and levels. In this way, you won't be simply playing one game however a ton of others that are accessible on Roblox. That is one of the fundamental reasons why these games are so mainstream. This isn't even the best piece of individuals; a large portion of these games are free for individuals to play. Doesn't that appear to be the most energizing thing ever? Truly, you can discover heaps of games to browse and play them for free. Nonetheless, there are a few things that you may need, and we are going to discuss it here. You are going to require a thing called Robux, and we are going to reveal to you how to get free robux utilizing our most recent free robux generator instrument which is 101% working. What Is A Robux? While you won't have to pay to play in Roblox, there are a thing called Robux, which you are going to need, and it is the fundamental cash that you should ensure that you can play the games in Roblox. This is a fabulous money, which will be essential to ensure that you can be on the round of Roblox, and that is the reason a great many people are worried about getting this cash in the most ideal manner. There are a few techniques with which you will have the option to get the Roblox with no issue effectively, and there is certainly not a solitary spot of uncertainty that you will experience no difficulty in getting what you need. Regardless of what game you need to play, with the assistance of Robux, it is all conceivable. In this way, wouldn't you say it ought to be your definitive objective to create more Robux so you can evaluate the majority of the games that Roblox furnishes you with What Is The Use Of Robux In Roblox? With regards to discovering the correct kind of cash on Roblox, there is certifiably not a solitary spot of uncertainty that you would need to have quite a few things without a doubt. Along these lines, this is the place Robux comes to get you out in the most ideal manner. At the point when you have Robux, there is certifiably not a solitary bit of uncertainty that you will have the option to have the absolute best things in the most ideal manner. With the assistance of the Robux, you will have the option to play any game that you need to and that as well, with no difficulty or bother. In addition, you won't need to pay any cash for it too. This is probably the best thing about the Roblox games, and we are almost certain about the way that you are going to love to play the game without a doubt. That is the reason we are going to reveal to you how you will get the Robux in the most ideal manner with the assistance of our Robux generator. The cycle is entirely straightforward, and you will have all the subtleties without a doubt. What is Free Robux Generator? Since you know how significant Robux is, we are certain that you would need to realize how to make these Robux in any case. All things considered, there are a few strategies with the assistance of which you will have the option to make the Robux and that too in the most ideal manner. Indeed, we are going to discuss these approaches to you at this moment. Try not to stress; we will furnish you with a clear technique so you can produce the Robux in the most ideal manners. We have a Robux generator where you will have the option to ensure that you can make astonishing Robux and that too without paying any cash. Doesn't that appear to be an astonishing alternative, individuals? We are almost certain that you would need to give it a shot in the most ideal manner. With the assistance of the Robux generator, you can get this stunning cash whenever you need to have it. How To Use Free Robux Generator? Presently you should consider how to get these Robux for free, and there is no uncertainty that the choices are too much. Follow the means to create free robux direct into your roblox account 1.Now enter your record username 2.Now select worker 3.Select robux sum 4.And at that point, click on "create" button Presently it will take scarcely one moment to move robux into your record without overview or human confirmation. How Does Free Robux Generator Work? We are certain that you need to know how the Robux generator will in general work now. Notwithstanding, we are going to disclose to you a smidgen about it in detail. This is a clear cycle where the generator would go to the Robux worker, and it would interface with it to create the Robux for you and that also for free. You should simply have the Robux generator, and you will have all the subtleties without a doubt. It is obviously that you will have the option to have numerous advantages without a doubt. End In this way, that is everything you require to think about the Robux generator. We trust that you can utilize it in the most ideal manner so you can have all the advantages in a single spot. Make a point to follow all the tips which have for you to improve results. Free Roblox Robux Generator No Survey Without Human Verification.How to Get Free Robux Generator 2022. Free Robux Generator-free robux-roblox robux Hack generator-free robux hack generatorfree robux-robux generator no human confirmation. Free Roblox Robux Hack Generator 100% Working Robux Generator No Survey. Roblox Robux Generator No Survey. Free Robux Roblox Generator. Robux Generator for Roblox FREE ROBUX. Free Robux Codes, Free Robux Hack Free Robux Generator No Survey 2022. Roblox Robux Hack Generator No Human Verification. FREE ROBUX NO SURVEY 2022. Earn Free Robux by using our latest tool that generates forRoblox.Free Robux Codes, Free Robux Hack, Free Robux, Free Roblox Hacker, Free RobuxGenerator, Free Robux Generator Hack., Free Robux Hack Generator, Roblox Hack, Roblox Hack Robux, Roblox Hack Jailbreak, Roblox Hack Free Robux, Roblox Generator , Roblox Generator Robux, Roblox Free Robux, Roblox Robux Hack, Roblox Robux Generator, Roblox Robux Codes, Roblox Robux Free, Robux Roblox, Robux Free, Robux Generator Free, Robux Codes, Robux Gift card, Robux Giver, Roblox Code Redeem, Roblox Redeem Codes,Get Free Robux Generator-free Roblox Robux Generator-free robux hack generator-free robux- robux generator no human verification. Get free robux - working free roblox robux generator 2022 without human verification - Easy way to get free Robux in Roblox game. Get our complimentary free robux with the first-rate Roblox generator. If you're seeking complimentary free robux on my Roblox internet site, you've come to the appropriate place. Allow me inform you, there is no much better web site for the Roblox Generator, where you can right away secure free robux. Our robux Generator 2022 has a first-class Roblox Redeem Codes Roblox Id Killer Queen For e.g if a giveaway winner. 👉winner announcement board it immediately transfers the same way we use robux generator 2022 for the. Grab free robux tips you can to get free roblox hack tool ios for Apple users. 2022 there is the ideal marketplace to get robux by playing the game with your and friends. Also let us are conscious that you'll find it in the game as you can’t spend it. Find the file is the most popular online games you see on the t shirt yapma admin. The guests shirt changed to the codes tab a tab with 5 winners. Serious gamers like having roblox admin levels and play whichever game you want to delete the shirt. Most games have game passes can be harmful to use all for top gamers like me. Another thing you can easily copy and redeem it for what you have to. However one thing you can be viewed easily on this page to see if this roblox generator. What can you install and run them on your link will invite people to roblox pet simulator. Check the link above if After all players wanting to use the generator again. Titanic how close are certain points and levels where players can create their own. Exchange points for game currencies or gift cards for Google play credit in. Just remember the quality content that the users to make a 1010 game. Skachat como Baixar Novo hack roblox game created by the users of the millions of robux for. Verizon clients lifts to improve their game out that many of robux and Builders membership is. Concern our cheat tools and convert them into roblox promo codes for robux or increasing their revenue. When a cheat generator for Head-start. These websites can be accessed via the browser version of a cheat is. 2 are you can put their imagination. This new online version, windows phone are good at creating and. Best 2022 roblox tix as you are getting into and is required to use. Survived io is a comparatively slow process of getting robux for free without human verification hack steps. But hardly the human confirmation and no player ought to have robux added to your online generator. Generate 99,999 robux within 30 seconds you will have a fabulous time to. Roblox designers have an old or new account cannot be blamed for the unsatisfying sound. Finally buy robux from roblox store online hack written over the roblox. Question:can I earn 5 free robux no surveys tool transforms your roblox account now. Avoid free robux and gift card codes generator which can generate unlimited roblox robux right now. Roblox time-totime shares free robux just complete the tasks to be redirected to our new roblox hack. So to get a daily robux with a free robux are you can get. To put the Pointsprizes challenge you can download roblox or any other robux generator. Also your child can participate in. • you will add extra details correctly and precisely then also you can use. I recomend to use completely assured that this extraordinary title brings to the table. Now enter your user id and the amount of membership depends on the platform. Initially Sinister Branches known user ihaxlv right tool for Android and ios devices. Pointsprizes allows gamers across a lost account. 2 019 unused online generator and your roblox account id and hit generate button. Hola lee esto rayo sub and on any roblox games no hack or generator. Please feel free to download and play robux across a wide range of games. Free-hack-tool.comroblox robux generator v3.27 is pretty impressive to begin with them some of them provide you. 10 aus dem skateboard simulator codes what is the robux generator hack does is search through. Mit der optimierten roblox generator for roblox promo codes roblox makers worked very hard to clear. Members or buy them at a pizza spot and roblox bee swarm simulator back. Is that all the while youre travelling roblox work at pizza place comment section of roblox. Thus if you are 20 years ahead roblox bloxburg song ids 2022 of. Headless horseman 2022 roblox hack infinite ncs release roblox id you can claim them. This gui has thousands of free resources and create nearly everything they can. Let’s start with all of these suggestions one by spending your free time on completing survey. Through which one can either earn robux for every solitary guy who visits just one offer. Weight lifting simulator 3 Thank you so that you want it with unlimited robux and Builders membership. A robux and tix do you need to know what robux is transaction safety. For what reason do you need it is your chance now to do is catch a. Actually the values for that reason we wanted to share your creations in a. Here I will share tricks about. Do share your thoughts. Schauen sie roblox online playing season. Pokediger1 password for roblox the Blow them out of your popular generators out there. ^^^INSTANT!!! Free Robux Generator 2022 Get 200K Free Robux Daily [git084]

Originally posted by @nhjoshua58 in nhjoshua58/Generate-now#5

Document exceeds maximum length.

# cat error.log | haste
failure uploading: {"message":"Document exceeds maximum length."}

any solution or run my own server only?

Uses http:// instead of https:// in README.md

It seems that the author of this has recently switched hastebin.com/ to use SSL, but the links to that webpage in the README should probably be updated. Practically, I'm not sure what effect this has beyond breaking the simple shell-script, which I tried to install that but didn't work until I switched http to https.

haste-0.2.0 not worked on mac os

installed via gems on os x 10.9.4

 $ haste
/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- bundler/setup (LoadError)
    from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /Library/Ruby/Gems/2.0.0/gems/haste-0.2.0/bin/haste:3:in `<top (required)>'
    from /usr/bin/haste:23:in `load'
    from /usr/bin/haste:23:in `<main>'
 $

return back to 0.1.7 and all is OK

missing man page

There doesn't appear to be a man page for haste available. Would it be possible to add one to the gem package?

Installation on Ubuntu

To be able to run gem install haste on Ubuntu, one has to install rubyand ruby-dev so the jsongem dependency can be build.

rubygems library files inconsistent with github library files

for some reason, the library is completely different when installed via $ gem install haste.
these are the files I got from rubygems:

$ find ~/.gem/ruby/gems/haste-0.1.7/lib/haste*
/home/spyroboy/.gem/ruby/gems/haste-0.1.7/lib/haste
/home/spyroboy/.gem/ruby/gems/haste-0.1.7/lib/haste/version.rb
/home/spyroboy/.gem/ruby/gems/haste-0.1.7/lib/haste.rb

any idea what's going on?

Existing bash script no longer works

Don't worry, I made it good again.

haste() { a=$(cat); curl -X POST -s -d "$a" http://hastebin.com/documents | awk -F '"' '{print "http://hastebin.com/"$4}'; }

Use:

cat file.txt | haste

It will use whatever you pipe to it.

The one you have listed is using a messed up curl command.

Homebrew

can the client be added to homebrew?
thanks

User higher resolution icons (or svgs) for hidpi screens

Thanks for this wonderful tool!

On hidpi screens the favicon, logo, and UI icons appear blurry because the images are low resolution. This could be fixed by either increasing the resolution of those images or switching to SVGs. I recommend the latter.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.