Coder Social home page Coder Social logo

haste-client's Introduction

Haste-Client

This is a rewritten Haste-Client in Go which is meant to be a little utility that uploads code via command line from pipe. Available for both Windows and Linux.

Usage

Examples:

echo Sample Text | haste

https://haste.zneix.eu/nibazahidu

cat veryLongScript.js | haste | xsel

copies https://haste.zneix.eu/ibadomuvaq to clipboard


Arguments

-h

Shows Help and exits

-v

Shows Program version and exits

-d string

Changes upload destination, can be a URL another haste server (default: https://haste.zneix.eu).

-r

Returns a link to raw paste (text only) instead

Easy Installation

Download binary the latest release from releases page.
Version without extension if for Linux, and .exe is for Windows.

To make sure you can use this tool globally in command line, make sure to put it into your PATH Environment Variable:
Guide for windows
Guide for Linux

Installing on Windows

Download Go 1.15

After installing go, open Command Line with Win + R and typing cmd.
Execute these commands:

go get github.com/zneix/haste-client
cd %userprofile%\go\bin
ren haste-client.exe haste.exe

Installing on Linux

Download Go 1.15

go get github.com/zneix/haste-client
sudo cp ~/go/bin/haste-client /usr/local/bin/haste

Or just clone GitHub repository and build with make.

haste-client's People

Contributors

zneix avatar

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.