lucko / paste Goto Github PK
View Code? Open in Web Editor NEWpaste is a simple web app for writing & sharing code.
Home Page: https://pastes.dev
License: MIT License
paste is a simple web app for writing & sharing code.
Home Page: https://pastes.dev
License: MIT License
Ctrl S to save, etc
Support for Hocon syntax highlighting would be amazing
As the description suggests I would love for this project to have support for TOML config language support.
I had a look at PRing it myself but as I don't know JS/TS very well I couldn't figure out how to add it to monaco correctly!
This can be seen as an addition to #9
My suggestion is, to allow the language to be (pre-)selected based on a query parameter defined in the URL.
This would allow people to share a link, where the code highlighting is already set, only requiring a paste of the info and subsequently save.
For example:
Providing https://pastes.dev/?lang=yaml would automatically select YAML as the language for the paste.
The paste service currently seems to apply ligatures to text, meaning displaying text like ->
as โ
(Not accurate ligature... probably).
The text itself remains the same, it's only visual.
However, this may still cause confusion if someone f.e. shares a configuration file, or an error and the text displayed does not represent the text actually used visually.
Ligatures shoudl honestly only be utilized in the [code]
languages, which is what I would like to propose now.
All other categories do not really have a need for ligatures to be used and may only cause general confusion for the people who read the paste, as it wouldn't represent what is actually used.
Currently the language defaults to plain, it would be nice to detect the language being used (e.g. how Github does it with https://github.com/github/linguist)
I have used the Docker method for the repo and the site it self works but not the /data/post path. It says 502 Bad Gateway. I use a custom Port. (1020)
amd64 on debian12
root@dev:/home/soft/paste# docker logs -f de0
/docker-entrypoint.sh: /docker-entrypoint.d/ is not empty, will attempt to perform configuration
/docker-entrypoint.sh: Looking for shell scripts in /docker-entrypoint.d/
/docker-entrypoint.sh: Launching /docker-entrypoint.d/10-listen-on-ipv6-by-default.sh
10-listen-on-ipv6-by-default.sh: info: Getting the checksum of /etc/nginx/conf.d/default.conf
10-listen-on-ipv6-by-default.sh: info: /etc/nginx/conf.d/default.conf differs from the packaged version
/docker-entrypoint.sh: Sourcing /docker-entrypoint.d/15-local-resolvers.envsh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/20-envsubst-on-templates.sh
/docker-entrypoint.sh: Launching /docker-entrypoint.d/30-tune-worker-processes.sh
/docker-entrypoint.sh: Configuration complete; ready for start up
2023/09/09 15:52:37 [notice] 1#1: using the "epoll" event method
2023/09/09 15:52:37 [notice] 1#1: nginx/1.25.2
2023/09/09 15:52:37 [notice] 1#1: built by gcc 12.2.1 20220924 (Alpine 12.2.1_git20220924-r10)
2023/09/09 15:52:37 [notice] 1#1: OS: Linux 6.1.0-10-cloud-amd64
2023/09/09 15:52:37 [notice] 1#1: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2023/09/09 15:52:37 [notice] 1#1: start worker processes
2023/09/09 15:52:37 [notice] 1#1: start worker process 29
2023/09/09 15:52:37 [notice] 1#1: start worker process 30
2023/09/09 15:52:37 [notice] 1#1: start worker process 31
2023/09/09 15:52:37 [notice] 1#1: start worker process 32
2023/09/09 15:52:37 [notice] 1#1: start worker process 33
2023/09/09 15:52:37 [notice] 1#1: start worker process 34
2023/09/09 15:52:37 [notice] 1#1: start worker process 35
2023/09/09 15:52:37 [notice] 1#1: start worker process 36
2023/09/09 15:52:37 [notice] 1#1: start worker process 37
2023/09/09 15:52:37 [notice] 1#1: start worker process 38
2023/09/09 15:52:37 [notice] 1#1: start worker process 39
2023/09/09 15:52:37 [notice] 1#1: start worker process 40
2023/09/09 15:52:37 [notice] 1#1: start worker process 41
2023/09/09 15:52:37 [notice] 1#1: start worker process 42
2023/09/09 15:52:37 [notice] 1#1: start worker process 43
2023/09/09 15:52:37 [notice] 1#1: start worker process 44
Love using pastes.dev, but would love to see the ability from e.g. https://termbin.com/ to netcat content to pastes.dev.
I guess an alternative to this would be sending an HTTP request to the pastes.dev API which I guess I could create an alias for, but something like netcat is a lot easier.
Since there is a raise in ARM based server usage, it would be awesome to have MultiArch enabled for docker
to host paste in ARM based servers
A language option to display the text as (MC Console) logs would be nice.
It would allow to more easily identify warnings and errors if there's a bunch of lines shared.
This is especially an issue on mobile. If you open a paste on mobile, your keyboard will likely pop up every time you try to scroll.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.