I'm confused ... you are running the command 'htop' locally (and piping it) so how is that not installed locally ?
Is htop a local, (n)curses based app that you run in a console or is it something else that I am missing ?
Assuming you have 'htop' installed, you can pipe it's output to seashells.io via `nc` (netcat) and it will give you back a URL where you can see the output.
while true;do date;sleep 1; done | nc seashells.io 1337
while sleep 1; do date; done | ...
Also, there are similar things out there that you can self-host, e.g. https://rtail.org/
Obviously it's your decision, but any particular reason it's not open source? I can't imagine it being commercially viable.
To receive messages with nc do
nc -l 3333
To send messages do
nc 192.168.1.XX 3333
with the IP or hostname of the receiving server. No encryption though.
A tiny nitpick: if you have a little description in the page title it's easier to find it when searching the bookmarks. It's easy to append a bit more information when bookmarking on desktop, but when bookmarking on mobile it's harder, and as usually you don't see the bookmark's details after bookmarking, it can become unfindable.
The source is available here: https://gist.github.com/antoniomika/2f56cd2d62145d10e10423fb...
Seriously this is pretty hacky, especially since I put it together in less than an hour and took some bad shortcuts. It works well though, and should technically support multiple clients but it can definitely be made better. Open to any questions/comments.
EDIT: Zooming out does the trick
The site is now down but here's a snapshot:
Incase the url is blocked for anyone else.
Pretty Awesome, does anyone knows if it is an Open Source library?
Snarky dismissals are not allowed on HN, especially not allowed in response to new work. That's like trampling someone's garden when new plants are sprouting. From the Show HN guidelines:
Instead of "you're doing it wrong", suggest alternatives. When someone is learning, help them learn more. When something isn't good, you needn't pretend that it is. But don't be gratuitously negative.
Would you please read https://news.ycombinator.com/newsguidelines.html and https://news.ycombinator.com/showhn.html and follow them when commenting here? We'd appreciate it.
Ever tried to render an interactive cli gui as a website in a browser? It’s atrivial.
It’s a neat project that has the added twist of rendering it’s own status. You’re seeing the htop output of the server rendering its own htop output.
Which part of it is interactive?
The cli gui part is also suspect. For all we know it could be handcrafted, which would make GP correct, although in an unintended way.
> Should be maximum a high school project.
Edit: looks like there isn't much in the way of interaction ...