Code Monkey home page Code Monkey logo

Comments (5)

jdppettit avatar jdppettit commented on June 9, 2024

Can you give me a better idea of the use case of this? Do you mean like making a paste /foo instead of the randomized ID?

from pb.

buhman avatar buhman commented on June 9, 2024

In particular, @polyzen among others want something like:

https://ptpb.pw/polyzen

His flow generally involves using only PUT whenever he wants to paste, and then just spitting out the same ptpb.pw/polyzen URL.


Somewhat related, I had a similar-ish idea for buhPaste: where instead of URL paths, each paste gets a unique IPv6 address (if a /64 is dedicated to the task, that means 2 ** 64 possible pastes).

The 'vanity' name in that scheme would work something like: you create an AAAA (and optionally A) record for some arbitrary DNS name. If the AAAA is connected to, things proceed as normal; if the A is hit, we look up the AAAA record for the same Host:, then proceed with routing as usual.

The server only keeps track of IPv6->paste mappings, and not vanity names.

This could be combined with buhDNS (and we could work on a nice public TSIG-generation HTTP API for that). If we moved authority of ptpb.pw and/or ppb.io to czar, we could then hand things like polyzen.ptpb.pw.


The latter is super nice because we can then accept arbitrary vanity names of any length with no collisions with regular paste IDs.

What do you think?

from pb.

jdppettit avatar jdppettit commented on June 9, 2024

I like the vanity paste idea (the first part). The second part is either ridiculously awesome or ridiculously dumb, can't decide which. I say put the second part on the drawing board for future stuff, the first part sounds good to do now.

from pb.

buhman avatar buhman commented on June 9, 2024

18:35:27 jpettit I think we should do post at /yourshit and retain the ability to change with put

from pb.

buhman avatar buhman commented on June 9, 2024

These will be their own special kind of paste in a special table.

The route is going to need to be something like /<string(minlength=5):vanity> on both GET and POST.

Shouldn't be hard after that.

from pb.

Related Issues (20)

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.