Skip to content

Instantly share code, notes, and snippets.

@o0101
Forked from stefanocudini/web_htop.sh
Created January 3, 2023 04:23
Show Gist options
  • Save o0101/04dfdc25d470c717cf13437383bfe399 to your computer and use it in GitHub Desktop.
Save o0101/04dfdc25d470c717cf13437383bfe399 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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment