Skip to content

Instantly share code, notes, and snippets.

@stefanocudini
Last active January 3, 2023 04:23
Show Gist options
  • Save stefanocudini/004d07c03dcd212ee7f9fb8366ea6b8b to your computer and use it in GitHub Desktop.
Save stefanocudini/004d07c03dcd212ee7f9fb8366ea6b8b to your computer and use it in GitHub Desktop.
web colored interface for htop
#!/bin/bash
# requirements: apt install nmap htop aha
# (aha is ANSI color to HTML converter)
ncat -k -l -p 9999 -c "echo 'HTTP/1.1 200 OK\nContent-type: text/html\nconnection: close\\n'; echo q | htop | aha --black --line-fix"
@stefanocudini
Copy link
Author

open htop via web browser
htop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment