Giter Club home page Giter Club logo

beyondpaste's Introduction

Codacy Badge

BeyondPaste

Simple self hosted Pastebin-like tool allowing you to have the pastes uploaded on your own server.
Running on PHP7, it is using Bootstrap 4 for its frontend, Geshi for the syntax highlighting.

The footer can be entirely modified, but keep in mind authors should always be credited :).

Features

  • Paste upload
  • Syntax Highlighting
  • Unlisted Pastes
  • One Time Read Paste
  • Paste auto remove

Installation — Docker

  1. Create .env file from .env.sample and edit its values to your liking
  2. If you need access via your domain or TLS, edit nginx.conf accordingly
  3. Run docker compose up

BeyondPaste should now be running on localhost:8080.

Screenshots

Paste creation

alt text

Paste View

alt text

Credits

Design inspired by Popoliito's securePaste project.

beyondpaste's People

Contributors

rajiska avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fhdk

beyondpaste's Issues

SQL errors when inserting a new paste

SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column beyondpaste.paste.autodestroy at row 1
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect integer value: '' for column beyondpaste.paste.deleted at row 1

изображение

Setup with postgres DBMS

I think that SQL script doesn't conform to SQL standards:

# PGPASSWORD="password" psql -U user -d beyondpaste <./config/structure.sql
ERROR:  syntax error at or near "("
LINE 2:     id INT(6) UNSIGNED NOT NULL AUTO_INCREMENT,
                  ^
ERROR:  syntax error at or near "("
LINE 2:     id INT(6) UNSIGNED NOT NULL AUTO_INCREMENT,

Setup instructions don't work on Gentoo

user@localhost /usr/src/git/github.com/BeyondPaste/RaJiska $ docker-compose up
bash: docker-compose: command not found

user@localhost /usr/src/git/github.com/BeyondPaste/RaJiska $ docker compose up
permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/containers/json?all=1&filters=%7B%22label%22%3A%7B%22com.docker.compose.config-hash%22%3Atrue%2C%22com.docker.compose.project%3Drajiska%22%3Atrue%7D%7D": dial unix /var/run/docker.sock: connect: permission denied

user@localhost /usr/src/git/github.com/BeyondPaste/RaJiska $ sudo docker compose up
Password: 
[+] Running 16/17
...

ebuild says:

pkg_postinst() {
	ewarn
	ewarn "docker-compose 2.x is a sub command of docker"
	ewarn "Use 'docker compose' from the command line instead of"
	ewarn "'docker-compose'"
	ewarn "If you need to keep 1.x around, please run the following"
	ewarn "command before your next --depclean"
	ewarn "# emerge --noreplace docker-compose:0"
}

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.