Code Monkey home page Code Monkey logo

upaste's Introduction

upaste Build Status crates.io

paste.rs / hastebin / general pasting client

Simple client for uploading to paste.rs, hastebin.com, or any site that accepts posting and viewing pastes

Also see the personal server upaste-server and the companion vim-plugin vim-upaste

Installation

Binary releases available for linux & osx. See releases.

For installation on other platforms use cargo:

cargo install upaste

Usage

# simple
cat file | upaste
upaste -f <file>
# ->  ** Success! Content available at: https://hastebin.com/<some-key>

# raw
cat file | upaste --raw
upaste --file <file> --raw
# ->  ** Success! Content available at: https://hastebin.com/raw/<some-key>

# custom paste/read locations
upaste --file <file> --paste-root https://hastebin.com/documents --read-root https://hastebin.com
# ->  ** Success! Content available at: <read-root>/<some-key>

# Or specify your alternate roots as ENV vars
UPASTE_PASTEROOT=https://paste.rs
UPASTE_READROOT=https://paste.rs
upaste --file <file>
# ->  ** Success! Content available at: <UPASTE_READROOT>/<some-key>

# specifying a range of lines (start at line 15, read 30 lines)
upaste --file <file> --start 15 --lines 30

# pulling existing paste into file
upaste --pull <key> > <file>

upaste's People

Contributors

jaemk avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

farma70063

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.