Just sayin' you can do something like this in bash out of the box... Don't let me spoil the party though, the more the merrier.<p><a href="https://www.gnu.org/software/bash/manual/html_node/Redirections.html" rel="nofollow">https://www.gnu.org/software/bash/manual/html_node/Redirecti...</a><p>"/dev/tcp/host/port
If host is a valid hostname or Internet address, and port is an integer port number or service name, Bash attempts to open the corresponding TCP socket.<p>/dev/udp/host/port
If host is a valid hostname or Internet address, and port is an integer port number or service name, Bash attempts to open the corresponding UDP socket."<p>I've got an example of a "practical" way to use it in an answer I did over here <a href="https://superuser.com/questions/563083/how-to-transfer-files-over-ssh-while-already-sshd-into-the-server/1632961#1632961" rel="nofollow">https://superuser.com/questions/563083/how-to-transfer-files...</a>
Aww, what a great idea. I'd love to use a self hosted version of this for work, but there's no way I could pipe my shell output to a 3rd party site, too many juicy secrets.
This would be even cooler if it could be end to end encrypted. E.g. client side it spits out a decryption key, and encrypts all traffic with it. Then on the browser, you paste that in and it will decrypt.<p>Obviously you have to trust the javascript to not do anything nefarious with your data, so maybe it’s not really adding much security.
Are there any legal security issues to be concerned about as a developer of this kind of anonymous service?<p>I wonder every time I see a project like this, namely anonymous or transient hosting of any kind of user data, whether the developers get any kind of flak from agencies claiming it could be used to nefarious ends.<p>Serving plain text is obviously less of a concern
than hosting images, video, etc.<p>But I imagine the more anonymous a service is, the more attractive it is for use by unsavory actors.<p>Anyone have any thoughts?
Something similar has existed in the Gentoo community for many years: wgetpaste [0]. Also I distinctly remember seeing something like this before which exactly the same minus the Python package (so you could only use netcat). wgetpaste is mostly for sharing debug information in IRC but I could imagine it being useful for many other ad hoc troubleshooting type things.<p>[0] <a href="https://wiki.gentoo.org/wiki/Wgetpaste" rel="nofollow">https://wiki.gentoo.org/wiki/Wgetpaste</a>
Piping Server is a similar (but more extensive) solution:<p><a href="https://github.com/nwtgck/piping-server" rel="nofollow">https://github.com/nwtgck/piping-server</a><p><a href="https://dev.to/nwtgck/the-power-of-pure-http-screen-share-real-time-messaging-ssh-and-vnc-5ghc" rel="nofollow">https://dev.to/nwtgck/the-power-of-pure-http-screen-share-re...</a>
For generally converting cli output to HTML see also
<a href="https://github.com/pixelb/scripts/commits/master/scripts/ansi2html.sh" rel="nofollow">https://github.com/pixelb/scripts/commits/master/scripts/ans...</a>
I think the application of it is reasonable only when you are thinking of simple applications like Yes/No notifier and not outputting logs. I wonder if it works well with TQDM so I can see the code execution progress bar.