Git Product home page Git Product logo

pasthis's People

Contributors

atenart avatar hyask avatar jvoisin avatar paulkocialkowski avatar tpetazzoni avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pasthis's Issues

Show remaining time

Maybe we should show the remaining time before expiration of the current paste ?

<tab> handling

When the user has javascript, should insert a tab instead of going to the next input.

Throttle

It would be nice to fix a throttle, to avoid/reduce spam.
Storing a timestamp and a hash of the ip?

New release tag

There has been quite a few commits since v4, especially some fixing PHP 8 compatibility issues.

Would it be possible to create a new tag, so php update.php works?

Thanks! :)

Nginx won't rewrite after sending paste

Hi there,

I get always a 404 error, my files.conf look like this:

server {
    listen 80;
    server_name paste.blah.org;

    root /srv/htdocs/paste.blah.org;
    index index.php;

    location / {
            if (!-e $request_filename){
            rewrite "^([a-zA-Z0-9]{6}(@raw)?)$" /index.php?p=$1;
            }
    }

    location /pasthis.db {
                deny all;
    }

    location ~ \.php$ {
                 include fastcgi.conf;
                 fastcgi_index index.php;
                 fastcgi_pass 127.0.0.1:9000;
    }
}

Thanks in advance for helping.
Cheers,

Unusable "burn after reading" option

Summary

When trying to use the "burn after reading" option the paste becomes unavailable, using the latest version of this repo.

Steps to reproduce

  1. Create a new paste
  2. Select "burn after reading"
  3. Send the paste
  4. Get redirected to see the paste

Expected behavior

Create a new paste, get redirected to it but let it be available one more time. I think that the issue comes from step 4 described above.

Line numbers

It would be nice to have line numbers displayed on pastes.

Cosmetic

Improve coding style consistency

Change text color

When the syntax highlight fails, the read is rendered in black, on a black background.

Url routing

Pasthis should come with an .htaccess to have nice urls, and the equivalent for nginx ;)

This should also fix #3 .

Harmonize the design

Currently, the input and the show pages are not assorted at all. Either use the default theme from the browser, or force the black and white one.

Return HTTP code to spammers?

I think we should return an HTTP code to spammers. Either:

  • a 301 (or the shiny new 308), to redirect to a randomly generated URL, or even its own IP
  • a 420 (β™₯) : Enhance Your Calm
  • a 429 : Too Many Requests

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.