Giter VIP home page Giter VIP logo

go-fiche's Introduction

GoFiche! Build Status GitHub issues GitHub license

Logo

A Go fork of Fiche

Command line pastebin for sharing terminal output.


Server-side usage

Installation From Source

  1. Clone:

    git clone https://github.com/Neo-Desktop/go-fiche.git
    
  2. Build:

    go get github.com/ahmetb/govvv
    govvv build
    
  3. Install:

    cp go-fiche /usr/local/bin
    

Usage

Usage of go-fiche:
  -B, --buffer int        This parameter defines size of the buffer used for getting data from the user. Maximum size (in bytes) of all input files is defined by this value. (default 32768)
  -d, --domain string     This will be used as a prefix for an output received by the client. Value will be prepended with http[s]. (default "localhost")
  -h, --help              Prints this help message
  -S, --https             If set, Go-Fiche returns url with https prefix instead of http.
  -l, --log string        Log file. This file has to be user-writable.
  -o, --output string     Relative or absolute path to the directory where you want to store user-posted pastes. (default "./code")
  -p, --port int          Port in which the service should listen on. (default 9999)

These are command line arguments. You don't have to provide any of them to run the application. Default settings will be used in such case. See section below for more info.

Settings


Output directory -o

Relative or absolute path to the directory where you want to store user-posted pastes.

go-fiche -o ./code
go-fiche -o /home/www/code/

Default value: ./code


Domain -d

This will be used as a prefix for an output received by the client. Value will be prepended with http.

go-fiche -d domain.com
go-fiche -d subdomain.domain.com
go-fiche -d subdomain.domain.com/some_directory

Default value: localhost


Slug size -s

This will force slugs to be of required length:

go-fiche -s 6

Output url with default value: http://localhost/xxxx, where x is a randomized character

Output url with example value 6: http://localhost/xxxx, where is a randomized character

Default value: 4


HTTPS -S

If set, fiche returns url with https prefix instead of http

go-fiche -S

Output url with this parameter: https://localhost/xxxx, where x is a randomized character


Buffer size -B

This parameter defines size of the buffer used for getting data from the user. Maximum size (in bytes) of all input files is defined by this value.

go-fiche -B 2048

Default value: 32768


Log file -l

go-fiche -l /home/www/fiche-log.txt

Default value: not set

WARNING: this file has to be user-writable

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.