Comments (6)
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.
btw kutt.it is great to do this its opensource and free
from nopaste.
$ 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.
That's why I'm using paste.sh.
from nopaste.
You could use this: https://github.com/qntm/base65536
from nopaste.
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)
- cdn dependency HOT 16
- Icomoon icons
- Question: How did you manage to generate links HOT 4
- syntax formatting for m4 HOT 1
- Wonβt let me make a paste on iOS HOT 5
- Not a bug but something cool I figured out...
- line wrapping not working in the iframe
- example.com/?l=lua#<encrypted text> redirects to example.com/?l=lua HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nopaste.