Libin Pan

One post at a time

iftop: display bandwidth usage on an interface

How to install?

  • Download and install the Universal Binary from here
  • Or if you already have MacPort installed

sudo port install iftop

How to use it?

  • run “ifconfig -l” or “/Applications/Utilities/Network\ Utility.app” to get your network interface id.

  • In my case is ‘en1′, so I just type into Terminal:

sudo iftop -i en1

Enjoy!
Tales From The Command Line: Where Has My Bandwidth Gone?

links for 2008-07-03

  • 0 Comments
  • Filed under: Links
  • FireFox did it!

    Don’t forget to download your very own certificate for helping set a Guinness World Record.

  • 0 Comments
  • Filed under: English, Software
  • links for 2008-07-02

  • 0 Comments
  • Filed under: Links
  • links for 2008-07-01

  • 0 Comments
  • Filed under: Links
  • Trading Places with Indian Outsourcers

    This is the best show I’ve seen on this topic, besides the movie Outsourced. Definitely worth watching!

    Roger Spurlock (from the Supersize Me movie) explores what the the US job outsourcing experience is like on the other side.

    Outsourcing has changed our planet.

    This was done on the “30 Days” series on FX hosted by Morgan Spurlock. It was very entertaining and thought-provoking for the guy who went to India, the Indians themselves and, of course, those of us watching.

    read more | digg story

  • 0 Comments
  • Filed under: English, Software
  • links for 2008-06-30

  • 0 Comments
  • Filed under: Links
  • Keyboard navigation for TextMate stacktraces

    Put this script at the end of /Applications/TextMate.app/Contents/SharedSupport/Support/script/webpreview.js.

    document.addEventListener('keypress', function(e){
        var key = e.keyCode
        if (key != 63233 && key != 63232) return
        links = document.getElementsByTagName('a')
        for (var i = 1; i < links.length; i++)
            if (links[i].title == 'focused') break
        if (i == links.length) i = 0
        links[i].title = null
        if (key == 63233){
            if (i == (links.length - 1)) i = 1
            else i += 1
        }
        if (key == 63232){
            if (i <= 1) i = links.length - 1
            else i -= 1
        }
        links[i].title = 'focused'
        links[i].focus()
    })
    

    Incredibly useful when I am running my tests!

    links for 2008-06-29

  • 0 Comments
  • Filed under: Links
  • links for 2008-06-28

  • 1 Comment
  • Filed under: Links
  • Upcoming Events

    Pages