Giter VIP home page Giter VIP logo

Comments (6)

xakrume avatar xakrume commented on June 14, 2024

I understand that this goes beyond the principles where we do not store anything. But it looks like a nightmare if I post the link in a chat message. Users can still use link shorteners to send a message, but to get short links - users need to do a few additional steps

from nopaste.

d3r1n avatar d3r1n commented on June 14, 2024

btw kutt.it is great to do this its opensource and free

from nopaste.

Alyetama avatar Alyetama commented on June 14, 2024
$ pip install requests
$ pip install unu
$ pip install pyperclip

Create a python script (let's name it shortner.py):

from unu import unu
import pyperclip

link = pyperclip.paste()
pyperclip.copy(unu(url=link, action="shorturl", format="simple"))

Then run the command like this:

echo -n 'Hello Short World!' | lzma | base64 | xargs -0 printf "https://nopaste.ml/#%s\n" | pbcopy && python3 shortner.py

from nopaste.

 avatar commented on June 14, 2024

That's why I'm using paste.sh.

from nopaste.

jzeuzs avatar jzeuzs commented on June 14, 2024

You could use this: https://github.com/qntm/base65536

from nopaste.

xakrume avatar xakrume commented on June 14, 2024

closed because we switched to dpaste.
Nopaste offers another idea that I find uncomfortable, because the big text/code in encoding and decoding loads the CPU.

from nopaste.

Related Issues (9)

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.