Пастебин

Storage

File

To use file storage (the default) change the storage section in to
something like:

where represents where you want the files stored.

Redis

To use redis storage you must install the package in npm, and have
running on the machine.

Once you’ve done that, your config section should look like:

You can also set an option to the number of seconds to expire keys in.
This is off by default, but will constantly kick back expirations on each view
or post.

All of which are optional except with very logical default values.

If your Redis server is configured for password authentification, use the field.

Postgres

To use postgres storage you must install the package in npm

Once you’ve done that, your config section should look like:

You can also just set the environment variable for to your database connection url.

You will have to manually add a table to your postgres database:

You can also set an option to the number of seconds to expire keys in.
This is off by default, but will constantly kick back expirations on each view
or post.

All of which are optional except with very logical default values.

Memcached

To use memcache storage you must install the package via npm

Once you’ve done that, your config section should look like:

You can also set an option to the number of seconds to expire keys in.
This behaves just like the redis expirations, but does not push expirations
forward on GETs.

All of which are optional except with very logical default values.

RethinkDB

To use the RethinkDB storage system, you must install the package via npm

In order for this to work, the database must be pre-created before the script is ran.
Also, you must create an table, which will store all the data for uploads.

You can optionally add the and properties to use a user system.

License

(The MIT License)

Copyright 2011 John Crepezzi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ‘Software’), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE

Storage

File

To use file storage (the default) change the storage section in to
something like:

{
  "path": "./data",
  "type": "file"
}

where represents where you want the files stored.

File storage currently does not support paste expiration, you can follow #191 for status updates.

Redis

To use redis storage you must install the package in npm, and have
running on the machine.

Once you’ve done that, your config section should look like:

{
  "type": "redis",
  "host": "localhost",
  "port": 6379,
  "db": 2
}

You can also set an option to the number of seconds to expire keys in.
This is off by default, but will constantly kick back expirations on each view
or post.

All of which are optional except with very logical default values.

If your Redis server is configured for password authentification, use the field.

Postgres

To use postgres storage you must install the package in npm

Once you’ve done that, your config section should look like:

{
  "type": "postgres",
  "connectionUrl": "postgres://user:password@host:5432/database"
}

You can also just set the environment variable for to your database connection url.

You will have to manually add a table to your postgres database:

You can also set an option to the number of seconds to expire keys in.
This is off by default, but will constantly kick back expirations on each view
or post.

All of which are optional except with very logical default values.

Memcached

To use memcache storage you must install the package via npm

Once you’ve done that, your config section should look like:

{
  "type": "memcached",
  "host": "127.0.0.1",
  "port": 11211
}

You can also set an option to the number of seconds to expire keys in.
This behaves just like the redis expirations, but does not push expirations
forward on GETs.

All of which are optional except with very logical default values.

RethinkDB

To use the RethinkDB storage system, you must install the package via npm

Once you’ve done that, your config section should look like this:

{
  "type": "rethinkdb",
  "host": "127.0.0.1",
  "port": 28015,
  "db": "haste"
}

In order for this to work, the database must be pre-created before the script is ran.
Also, you must create an table, which will store all the data for uploads.

You can optionally add the and properties to use a user system.

Amazon S3

Once you’ve done that, your config section should look like this:

{
  "type": "amazon-s3",
  "bucket": "your-bucket-name",
  "region": "us-east-1"
}
{
    "Version": "2012-10-17",
    "Statement": ,
            "Effect": "Allow",
            "Resource": "arn:aws:s3:::your-bucket-name-goes-here/*"
        }
    ]
}

License

(The MIT License)

Copyright 2011-2012 John Crepezzi

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the ‘Software’), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

Other components:

  • jQuery: MIT/GPL license
  • highlight.js: Copyright 2006, Ivan Sagalaev
  • highlightjs-coffeescript: WTFPL — Copyright 2011, Dmytrii Nagirniak

Options

Some features are optional and can be enabled or disabled in the configuration
file:

  • Password protection

  • Discussions, anonymous or with nicknames and IP based identicons or vizhashes

  • Expiration times, including a «forever» and «burn after reading» option

  • Markdown format support for HTML formatted pastes, including preview function

  • Syntax highlighting for source code using prettify.js, including 4 prettify
    themes

  • File upload support, images get displayed (disabled by default, possibility
    to adjust size limit)

  • Templates: By default there are bootstrap CSS, darkstrap and «classic ZeroBin»
    to choose from and it is easy to adapt these to your own websites layout or
    create your own.

  • Translation system and automatic browser language detection (if enabled in
    browser)

  • Language selection (disabled by default, as it uses a session cookie)

  • QR code generation of URL, to easily transfer pastes over to a mobile device

License

(The MIT License)

Copyright 2011-2012 John Crepezzi

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the ‘Software’), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

Other components:

  • jQuery: MIT/GPL license
  • highlight.js: Copyright 2006, Ivan Sagalaev
  • highlightjs-coffeescript: WTFPL — Copyright 2011, Dmytrii Nagirniak

hastebin alternatives and similar software solutions

Based on the «Pastebins» category

  • PrivateBin is a minimalist, opensource online pastebin/discussion board where the server has zero knowledge of hosted data.

  • Client side encrypted pastebin.

  • An advanced and beautiful pastebin.

  • Code snippets manager with attractive tag-oriented interface.

  • Command line pastebin, all you need is netcat.

  • ZeroBin is a minimalist, opensource online pastebin/discussion board where the server has zero knowledge of hosted data.

  • Lightweight pastebin

  • A powerful open-source pastebin application for effortless code sharing.

  • Long-term memory for coders. Share and store code snippets

  • A very simple

  • An Open Source, Self-Hosted, Snippet Manager.

  • Modern pastebin with a contemporary, minimalistic user interface backed by a robust feature set.

  • Free and Hassle-free Pastebin for Markdown Pages. Simple, clean, password provided, generated-short link.

  • A simple open source web application that lets users encrypt and share messages that can only be read once.

  • Ultra fast, minimalistic, encrypted command line paste-bin, where the server has no knowledge of the paste data.

  • Open source short-term secure messaging

  • The sexiest pastebin and url shortener ever.

  • Self-hosted pastebin server. It is meant to handle Markdown well, but it also works with code snippets

  • A simple, light and standalone pastebin, URL shortener and file-sharing service.

  • Modern self-hosted pastebin service with a restful API.

  • A pastebin for all kinds of files.

  • Perl based pastebin.

  • Self-hosted pastebin written in Laravel

  • a paste bin.

  • Updated version of hastebin plus additional features.

  • Pastebin inspired from project pb and hastebin, with an API and a SQL-based backend.

  • Simple python based pastebin you can run locally, with curl for input. Supports RAW text by default and binary data such as images

  • A simple and modern open-source pastebin made with C# and NancyFX that just works.

  • A Phalcon-based, MySQL pastebin application with privacy-respecting Piwik integration and syntax highlighting.

  • Encrypts your private messages and converts them into clickable links and QR-codes.

  • Simple and fast terminal based pastebin, with optional code highlighting. No specific client required, all you need is netcat. Demo.

  • Paste is forked from the original source pastebin.com used before it was bought.

  • GIST is an open-source application to share code.

* Code Quality Rankings and insights are calculated and provided by Lumnify.They vary from L1 to L5 with «L5» being the highest. Visit our partner’s website for more details.

Do you think we are missing an alternative of hastebin or a related project?

README

Haste

Major design objectives:

  • Be really pretty
  • Be really simple
  • Be easy to set up and use

which will output a URL to share containing the contents of ‘s
STDOUT. Check the README there for more details and usages.

Settings

  • — the host the server runs on (default localhost)
  • — the port the server runs on (default 7777)
  • — the length of the keys to user (default 10)
  • — maximum length of a paste (default 400000)
  • — max age for static assets (86400)
  • — whether or not to compile static js assets (true)
  • — storage options (see below)
  • — logging preferences
  • — key generator options (see below)
  • — settings for rate limiting (see below)

Rate Limiting

When present, the option enables built-in rate limiting courtesy
of . Any of the options supported by that library can be
used and set in .

Key Generation

Generates a random key

The optional keySpace argument is a string of acceptable characters
for the key.

Storage

File

To use file storage (the default) change the storage section in to
something like:

where represents where you want the files stored.

Redis

To use redis storage you must install the package in npm, and have
running on the machine.

Once you’ve done that, your config section should look like:

You can also set an option to the number of seconds to expire keys in.
This is off by default, but will constantly kick back expirations on each view
or post.

All of which are optional except with very logical default values.

If your Redis server is configured for password authentification, use the field.

Postgres

To use postgres storage you must install the package in npm

Once you’ve done that, your config section should look like:

You can also just set the environment variable for to your database connection url.

You will have to manually add a table to your postgres database:

You can also set an option to the number of seconds to expire keys in.
This is off by default, but will constantly kick back expirations on each view
or post.

All of which are optional except with very logical default values.

Memcached

To use memcache storage you must install the package via npm

Once you’ve done that, your config section should look like:

You can also set an option to the number of seconds to expire keys in.
This behaves just like the redis expirations, but does not push expirations
forward on GETs.

All of which are optional except with very logical default values.

RethinkDB

To use the RethinkDB storage system, you must install the package via npm

Once you’ve done that, your config section should look like this:

In order for this to work, the database must be pre-created before the script is ran.
Also, you must create an table, which will store all the data for uploads.

You can optionally add the and properties to use a user system.

Amazon S3

Once you’ve done that, your config section should look like this:

License

(The MIT License)

Copyright 2011-2012 John Crepezzi

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the ‘Software’), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED ‘AS IS’, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE

Other components:

  • jQuery: MIT/GPL license
  • highlight.js: Copyright 2006, Ivan Sagalaev
  • highlightjs-coffeescript: WTFPL — Copyright 2011, Dmytrii Nagirniak

What it doesn’t provide

  • The «key» used to encrypt the paste is part of the URL. If you publicly post
    the URL of a paste that is not password-protected, anyone can read it.
    Use a password if you want your paste to be private. In this case, make sure to
    use a strong password and only share it privately and end-to-end-encrypted.

  • A server admin might be forced to hand over access logs to the authorities.
    PrivateBin encrypts your text and the discussion contents, but who accessed a
    paste (first) might still be disclosed via access logs.

  • In case of a server breach your data is secure as it is only stored encrypted
    on the server. However, the server could be misused or the server admin could
    be legally forced into sending malicious JavaScript to all web users, which
    grabs the decryption key and sends it to the server when a user accesses a
    PrivateBin.
    Therefore, do not access any PrivateBin instance if you think it has been
    compromised. As long as no user accesses this instance with a previously
    generated URL, the content can’t be decrypted.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector