9 ms·
Show HN: /usr/bin/htop
- deleted 9y ago[deleted]
- dewey 9y agoReminds me of this submission from a while ago that explained how to have a kinda-live version of the current htop status as the background image of your website as a fun hack: https://news.ycombinator.com/item?id=10323226 https://news.ycombinator.com/item?id=10323226 The site is now down but here's a snapshot: https://web.archive.org/web/20160304133820/http://drunken-security.at/is-it-a-good-idea-to-show-everybody-what-your-server-is-doing/?q=/archives/41 https://web.archive.org/web/20160304133820/http://drunken-se...
- Sean1708 9y agoYour memory is really good.
- anishathalye 9y agoA no-installation version: `htop | nc seashells.io 1337`
- singularity2001 9y agowell this must be one of the most useful comments I've ever seen. not sure how to use it yet but it must be useful one day!
- _joel 9y agoagreed, that's lovely for simple things that I can't quite think of right now but know I'll need in the future (and likely forget this exists)
- jD91mZM2 9y agoWoah, seashells is awesome! Especially cool (and useful) how you can `cat` and it shows up as you type.
- kurason 9y agolooks like termbin's clone (termbin.com)
- cben 9y agotermbin seems to be a classical pastebin. it only gives you a URL after it received all input. seashells gives URL immediately, and streams the terminal in real-time.
- shpx 9y agoWith `nc` you can also just start typing and it'll show up on the other end after you hit enter. `nc` works across any two computers on the same network. 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.
- deleted 9y ago[deleted]
- hackmiester 9y agoWow, this is awesome! I wish the data I want to send here wasn't so sensitive. How can I run this on-premises?
- anishathalye 9y agoSeashells isn't currently open-source (the goal was to have a hosted version to make it easy for people to pipe non-sensitive data). In the next version, I'm planning on adding end-to-end password-based encryption. Also, there are similar things out there that you can self-host, e.g. https://rtail.org/ https://rtail.org/
- udp 9y ago> Seashells isn't currently open-source (the goal was to have a hosted version to make it easy for people to pipe non-sensitive data). In the next version, I'm planning on adding end-to-end password-based encryption. Obviously it's your decision, but any particular reason it's not open source? I can't imagine it being commercially viable.
- anishathalye 9y agoHaven't had time yet. Also, I haven't decided whether I want to extend it and try to turn it into a commercial side project.
- deleted 9y ago[deleted]
- rmetzler 9y agoCheck out gotty https://github.com/yudai/gotty https://github.com/yudai/gotty maybe that's what you want.
- smellf 9y agoThat's so cool. This is the best link in these comments IMHO.
- rsync 9y ago"A no-installation version: `htop | nc seashells.io 1337`" 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 ?
- deleted 9y ago[deleted]
- JosephRedfern 9y agoYou're not installing any additional software onto your machine (like a web server etc)
- sram1337 9y agoPerhaps he means a no installation way to show htop on a web-page? 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.
- tempay 9y agoIf the terminal window is bigger than your browser this shows junk as the lines start wrapping, does anyone know a workaround? EDIT: Zooming out does the trick
- dejawu 9y agoWhoa, this is awesome. This is the sort of thing I wish I'd come up with.
- gkya 9y agoHi, very useful stuff, thanks! 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.
- anishathalye 9y agoGood idea! I'll add a description in a bit.
- antoniomika 9y agoSaw this was cool and was a bit sad that it wasn't yet open source. I decided to make something extremely more simple than this (doesn't require any database management, just a single go app). The source is available here: https://gist.github.com/antoniomika/2f56cd2d62145d10e10423fbfaf7b553 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.
- colordrops 9y agoJust tried that on Android termux and it worked. Cool.
- ReverseCold 9y agoCannot open /proc/stat for me.
- emeraldd 9y agoDo the F keys function ? Edit: looks like there isn't much in the way of interaction ...
- julien_c 9y agoYour pm2 install is outdated, man.
- singularity2001 9y agoI couldn't renice (F7) my uploaded pwn-rootkit process, please fix.
- melq 9y agoCheck out glances in webserver mode: https://nicolargo.github.io/glances/ https://nicolargo.github.io/glances/
- agumonkey 9y agoYou made me press Ctrl-C .. well done
- tandav 9y agoi pressed q
- thinkMOAR 9y agowhats new since the Show HN of 99 days ago?
- theden 9y agoDoA it only got one vote! (It didn't scale well, sockets weren't closed on disconnection, so that was fixed). At least now everyone can watch the server's load average increase real time.
- binaryapparatus 9y agoUptime is nice, that's new.
- kevinastone 9y agoI just typed a `q` out of impulse.
- MawKKe 9y agoHah, me too
- deleted 9y ago[deleted]
- mapcars 9y agoI don't understand what am I looking at. Somebody runs htop command and serves output as an html? How did that end up in HN top? Should be maximum a high school project.
- wyldfire 9y agoI don't think there's an education level prereq for Show HN. It could probably be based on interestingness + utility. Ultimately, upvotes determine a "Show HN"'s success.
- cat199 9y ago> I don't understand what am I looking at. ... > Should be maximum a high school project. umm..
- whalesalad 9y agoWell you’re right in that you have no idea what you’re looking at. 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.
- gspetr 9y ago> Ever tried to render an interactive cli gui as a website in a browser? It’s atrivial. 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.
- dang 9y ago> Should be maximum a high school project. 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 https://news.ycombinator.com/newsguidelines.html and https://news.ycombinator.com/showhn.html https://news.ycombinator.com/showhn.html and follow them when commenting here? We'd appreciate it.
- egeozcan 9y agoGoTTY does that for every console app: https://github.com/yudai/gotty https://github.com/yudai/gotty
- binocarlos 9y agogotty is such a useful tool - especially with interactive mode turned on and you can ssh from the browser
- amelius 9y agoSpeaking of which, why does "top" always truncate user names at 8 characters?
- dec0dedab0de 9y agohttps://github.com/theden/0xfee1dead.top https://github.com/theden/0xfee1dead.top Incase the url is blocked for anyone else.
- unictek 9y agoA fake HTOP is running on this website: https://system76.com/servers/starling https://system76.com/servers/starling Pretty Awesome, does anyone knows if it is an Open Source library?
- thom_nic 9y agoLooks like the magic is done by https://github.com/theZiz/aha https://github.com/theZiz/aha (by looking at the process tree under `htopgen.sh`)
- thristian 9y agoIn Firefox on Linux, I'm seeing a lot of U+000F boxes scattered around, messing up the layout.