Skip to content

Simple pastebin, oriented for commandline (curl) usage. Can colorize to shell escape colors

Notifications You must be signed in to change notification settings

mechmind/curlbin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

curlbin, the curl-oriented pastebin

WARNING: project in early alpha stage

curlbin intended to be used by curl or other shell http clients. It is simple: just pipe your text/logs/code chunks into curl --data-binary @- $URL and it will give you link back. Curl it and it will give you content back, possibly coloring the code or adding line numbers (see options below).

Installation

go get github.com/mechmind/curlbin For now, requires pygmentize to work.

Running

curlbin has those configuration options:

  • -datadir - directory for storing pastes;
  • -listen - address and port to listen on;
  • -logfile - log to given file. Set to "-" to use stdout
  • -server-name - server name with port that will be used in urls when adding pastes. If not specified, will reuse "Host" header from request.

Usage

Uploading pastes

Pipe some data into curl --data-binary @- $URL. Server will return an url for that paste.

Viewing paste

Curl url from previous phase to retrieve paste content, unchanged or filtered (see below).

View filters

TODO.

About

Simple pastebin, oriented for commandline (curl) usage. Can colorize to shell escape colors

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages