All Projects → moulecorp → pasthis

moulecorp / pasthis

Licence: other
Simple stupid pastebin

Programming Languages

PHP
23972 projects - #3 most used programming language
CSS
56736 projects
python
139335 projects - #7 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to pasthis

Pastebin Scraper
Live-scraping pastebin to fight boredom.
Stars: ✭ 66 (+83.33%)
Mutual labels:  sqlite, pastebin
Postmate
📭 A powerful, simple, promise-based postMessage library.
Stars: ✭ 1,638 (+4450%)
Mutual labels:  simple, secure
logger
☠ 😈 👀 Simple,Secure & Undetected (6.11.2017) keylogger for Windows :)
Stars: ✭ 37 (+2.78%)
Mutual labels:  simple, secure
Ugly-Distributed-Crawler
基于Redis实现的简单到爆的分布式爬虫
Stars: ✭ 45 (+25%)
Mutual labels:  simple
sqlite-amalgamation
The SQLite amalgamation mirror with cmake
Stars: ✭ 72 (+100%)
Mutual labels:  sqlite
i2pchat
🌀 i2pchat. Anonymous private secure opensource chat using end-to-end encrypted transport.
Stars: ✭ 25 (-30.56%)
Mutual labels:  secure
Vp.FSharp.Sql.Sqlite
F# Wrapper for SQLite using System.Data.SQLite and Vp.FSharp.Sql
Stars: ✭ 25 (-30.56%)
Mutual labels:  sqlite
Zipcodes
A simple library for querying U.S. zipcodes.
Stars: ✭ 63 (+75%)
Mutual labels:  sqlite
pastebin-bot
Advanced functional Pastebin Telegram Bot made using better-pastebin and TelegrafJS. This bot will help you to create pastes (Texts) on Pastebin which is a text cloud.
Stars: ✭ 16 (-55.56%)
Mutual labels:  pastebin
contentfully
A simple but performant REST client for Contentful.
Stars: ✭ 13 (-63.89%)
Mutual labels:  simple
simpleRPC
Simple RPC implementation for Arduino.
Stars: ✭ 28 (-22.22%)
Mutual labels:  simple
FlashPaper
One-time encrypted password/secret sharing
Stars: ✭ 85 (+136.11%)
Mutual labels:  sqlite
EFCore.Sqlite.NodaTime
Adds support for NodaTime types when using SQLite with Entity Framework Core.
Stars: ✭ 21 (-41.67%)
Mutual labels:  sqlite
couchwarehouse
Data warehouse for CouchDB
Stars: ✭ 41 (+13.89%)
Mutual labels:  sqlite
simple-image-classifier
Simple image classifier microservice using tensorflow and sanic
Stars: ✭ 22 (-38.89%)
Mutual labels:  simple
astro
Astro allows rapid and clean development of {Extract, Load, Transform} workflows using Python and SQL, powered by Apache Airflow.
Stars: ✭ 79 (+119.44%)
Mutual labels:  sqlite
flip-jump
The simplest programming language - Flip a bit, then Jump
Stars: ✭ 18 (-50%)
Mutual labels:  simple
deutschland
Free open public domain football data for Germany (Deutschland) incl. Deutsche Bundesliga, 2. Bundesliga, 3. Liga, DFB Pokal etc.
Stars: ✭ 64 (+77.78%)
Mutual labels:  sqlite
PastebinMarkdownXSS
XSS in pastebin.com and reddit.com via unsanitized markdown output
Stars: ✭ 84 (+133.33%)
Mutual labels:  pastebin
SSTMCSPGAAS
Stupidly Simple Tiny Minimal Coming Soon Page Generator As A Service
Stars: ✭ 23 (-36.11%)
Mutual labels:  simple

Pasthis

Pasthis is a pastebin written in PHP using SQLite as database backend, prettify to handle syntax highlighting and skeleton. This project is licensed under GPLv2+.

Pasthis screenshot

Privacy, security, simplicity

  • Expired pastes are automatically deleted.
  • Paste IDs aren't predictable (their URL cannot be guessed easily).
  • No statistics, counter or public list of pastes is available.
  • The use of HTTPS to post or get the pastes is enforced.
  • A trivial anti-spam filter is built-in.
  • By default the content is not formatted nor changed in any way (no wrap, no syntax highlighting). It is a user driven choice to do so.
  • Pastes can be displayed as raw.
  • A command-line tool can be downloaded to post pastes directly from terminals.
  • Tabulations are handled within the textarea to avoid changing the focus.
  • The design is mobile friendly (responsive) 😊

Deployment

  1. Download Pasthis.
  2. Configure the web server:
  3. Make sure that the folder is readable and writable by www-data, since this is required by PHP to be able to create the SQLite database.

It is required to call the cron method on a regular basis to delete expired pastes, as a privacy concern. To do this on a GNU/Linux machine edit the /etc/crontab file and add the following line:

*/10 * * * * www-data php /path/to/pasthis/index.php

Be aware expired pastes can only be deleted when requested or when the cron method is called. Without the previous cron configuration, their deletion can't be ensured. They just won't be displayed.

Update

  1. Update to the latest version (keep the database!).
  2. Run php update.php.

Command line tool

A command line tool is available allowing you to post files. In order to take advantage of this utility, download it, make it executable and display the help output for more information:

chmod +x ./pasthis.py
./pasthis.py --help
./pasthis.py --url https://www.example.net/pasthis/ file.txt

Anti-spam

Every time a paste is sent, a value (called degree) is associated to the poster's ip hash. It is used in the following formula:

T = time() + intval(pow(degree, 2.5))

If the user posts another paste after T, the degree is reset to zero. If he tries before T, the degree is incremented, and the paste is denied.

There is also an hidden field, that set the degree to 512 (which corresponds to ~72h) if filled.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].