Archive for the 'Mac OS X' Category

Mac OS X List ports

Posted by pebuchmann on 27 Jun 2010 | Tagged as: Mac OS X

This command lists all port entries which contain the token LISTEN: lsof -i | grep LISTEN

Mac OS X: Adding Entry to “Hosts” File

Posted by pebuchmann_super on 04 Sep 2009 | Tagged as: Mac OS X, Network

Found this tutorial about how to map a domain name to a IP address on the mac. > sudo dscl localhost -create /Local/Default/Hosts/some.stupid.com IPAddress 127.0.0.1 > ping -q -c 1 some.stupid.com

Blogging from within TextMate

Posted by pebuchmann_super on 17 Aug 2009 | Tagged as: Mac OS X

By sheer chance I realized that I can write a blog entry from within TextMate and post it to my site when I have access again. It works like a charm!

Mac OS X – Hidden Files and the Finder

Posted by pebuchmann_super on 21 Jul 2009 | Tagged as: Mac OS X

Found this trick to make hidden files and directories visible in the finder. Open a terminal and type defaults write com.apple.Finder AppleShowAllFiles YES Of course when you want to hide the files, substitute YES with NO. After that, restart the finder; on Leopard that means Apple > Force Quit > Finder (relaunch).