Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Created December 27, 2021 15:08
Show Gist options
  • Select an option

  • Save heapwolf/cfbadac7689dd85172978568dec483dc to your computer and use it in GitHub Desktop.

Select an option

Save heapwolf/cfbadac7689dd85172978568dec483dc to your computer and use it in GitHub Desktop.

Revisions

  1. heapwolf renamed this gist Dec 27, 2021. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. heapwolf created this gist Dec 27, 2021.
    12 changes: 12 additions & 0 deletions macOS.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@

    Get `top` from `http://localhost:8081` (on linux use `top -n 1`).

    ```sh
    while :; do nc -l 8081 <<EOF
    HTTP/1.1 200 OK
    Content-Type: text/html
    <pre>`top -l 1`</pre>
    EOF
    done
    ```