Live data from Hacker News

Ask HN: Best Command-Line Applications?

news.ycombinator.com

371–380 of 393 posts

Re: Ask HN: Best Command-Line Applications?

#373

websocketd - Turn any command that uses stdin into a web socket server (i.e. connect to it from any browser) https://github.com/joewalnes/websocketd sqlite shell - https://www.sqlite.org/download.html combine the two for a high throughput web app - https://hackernoon.com/stream-a-million-websocket-sql-reques...

I had blogged about websocket with an example using Python and JavaScript here:

Use WebSockets and Python for web-based system monitoring:

https://jugad2.blogspot.com/2014/01/use-websockets-and-pytho...

websocketd and Python for system monitoring - the JavaScript WebSocket client:

https://jugad2.blogspot.com/2014/01/websocketd-and-python-fo...

Will check out your hackernoon post, sounds interesting.

Re: Ask HN: Best Command-Line Applications?

#374
neofetch [https://github.com/dylanaraps/neofetch] for showing a friendly system information

gst123 [http://space.twc.de/~stefan/gst123.php] a music player

prettyping [https://github.com/denilsonsa/prettyping] a prettier ping

kakoune [https://github.com/mawww/kakoune] a nice (relatively friendly) modal text editor

Re: Ask HN: Best Command-Line Applications?

#375
post #8

I love watch . watch df -h watch ls -sh watch cat file watch nmcli device wifi list watch -n 10 --color curl -s wttr.in

Yes, watch is a cool command. I had written a Python program somewhat like watch:

A Python version of the Linux watch command:

https://jugad2.blogspot.com/2018/05/a-python-version-of-linu...

Re: Ask HN: Best Command-Line Applications?

#376
post #367

Earlier quoted context omitted.

the one that comes with nmap?

Doesn't matter because every re-implementation of that old unix tool is made for same purpose and mostly accept same arguments. For example you can make tar archive and pipe it to nc. On other server nc would accept data and pipe it to tar for unpack. This shows real power of unix pipes.

I asked, because the one from nmap actually supports multiplexing.

Re: Ask HN: Best Command-Line Applications?

#377
post #232

Tmux: https://github.com/tmux/tmux/ ts: http://vicerveza.homeunix.net/~viric/soft/ts/ (TaskSpooler) queue commands in different terminals socat: http://www.dest-unreach.org/socat/ -- Multi-purpose relay most: http://www.jedsoft.org/most/ pager more features than less/more sshfs: https://github.com/libfuse/sshfs remote filesystem using SFTP via FUSE passgo: https://github.com/ejcx/passgo Simple golang password manager…

If you want more complete cloud backup, try restic or duplicacy which have encryption, dedup and retention policy. https://github.com/restic/restic https://github.com/gilbertchen/duplicacy

Also, I found borg better than restic since borg also does compression

https://github.com/borgbackup/borg

Re: Ask HN: Best Command-Line Applications?

#378
post #89

Earlier quoted context omitted.

As someone who hasn't invested much time into tmux/screen, what are the benefits of it over just using eg; multiple terminal tabsn or using the terminal's built in split windowing? I'm sure there's probably a benefit but I dunno what it is

I agree with everyone else that it's great on remote systems, but the reason I use it locally too is because I can set up all a project's "tabs" with just one command. I have dozen-line scripts for each client/project that will either create or attach to a tmux session, and when creating set up all the windows how I want: setting their names, cd'ing, opening psql, tailing a log, changing the bottom color (green for d…

occasionally i need to restart the GUI. using tmux locally is very helpful for that. also sometimes i log into my workstation from remote, like when i am travelling. it's nice to be able to access the running session.

Re: Ask HN: Best Command-Line Applications?

#379
post #308

Lots of great stuff here! Key takeaway though (for me at least) is that a lot of this stuff turns into cumbersome management if you're not doing the bulk of your work on localhost, but instead dealing with a various few dozen or hundreds (in my case) of different servers. Yeah you can use ansible to automate installation/setup, but then again if you suddenly end up on a fresh server without root access you're gonna b…

localhost or remote does not make a difference, any manual setup required is annoying either way.

most of the tools don't need manual configuration though and so it's a single command to install all of them that you can have tucked away somewhere to use when needed.

but yeah, i use salt for automating this.

Re: Ask HN: Best Command-Line Applications?

#380
post #373

websocketd - Turn any command that uses stdin into a web socket server (i.e. connect to it from any browser) https://github.com/joewalnes/websocketd sqlite shell - https://www.sqlite.org/download.html combine the two for a high throughput web app - https://hackernoon.com/stream-a-million-websocket-sql-reques...

I had blogged about websocket with an example using Python and JavaScript here: Use WebSockets and Python for web-based system monitoring: https://jugad2.blogspot.com/2014/01/use-websockets-and-pytho... websocketd and Python for system monitoring - the JavaScript WebSocket client: https://jugad2.blogspot.com/2014/01/websocketd-and-python-fo... Will check out your hackernoon post, sounds interesting.

I read that post. It's impressive that the combination of websocketd and sqlite can be so fast.
Post reply on HN