List of useful Mac apps

From CoreInfo
Jump to navigation Jump to search

Mac command line (CLI)

Convert HTML page to PDF

Quick commands used

wkpdf --source http://www.apple.com --stylesheet-media screen --print-background yes --paginate no --output apple.pdf


Monitor network traffic

  • Install it sudo port iftop
sudo iftop -p -i en1 -P
iftop: found arguments following options
*** some options have changed names since v0.9 ***
iftop: display bandwidth usage on an interface by host

Synopsis: iftop -h | [-npblNBP] [-i interface] [-f filter code]
                               [-F net/mask] [-G net6/mask6]

   -h                  display this message
   -n                  don't do hostname lookups
   -N                  don't convert port numbers to services
   -p                  run in promiscuous mode (show traffic between other
                       hosts on the same network segment)
   -b                  don't display a bar graph of traffic
   -B                  Display bandwidth in bytes
   -i interface        listen on named interface
   -f filter code      use filter code to select packets to count
                       (default: none, but only IP packets are counted)
   -F net/mask         show traffic flows in/out of IPv4 network
   -G net6/mask6       show traffic flows in/out of IPv6 network
   -l                  display and count link-local IPv6 traffic (default: off)
   -P                  show ports as well as hosts
   -m limit            sets the upper limit for the bandwidth scale
   -c config file      specifies an alternative configuration file

iftop, version 1.0pre2
copyright (c) 2002 Paul Warren <[email protected]> and contributors

Web server

  • Start lighttpd web server from local config file
    sudo lighttpd -D -f lighttpd.conf