Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Disable audible bell in Terminal.app

defaults read com.apple.Terminal Bell
#defaults write com.apple.Terminal Bell -string YES
defaults write com.apple.Terminal Bell -string NO


# some further options to consider
#defaults read com.apple.Terminal FocusFollowsMouse
#defaults write com.apple.Terminal FocusFollowsMouse -string YES
#defaults write com.apple.Terminal FocusFollowsMouse -string NO

#defaults read com.apple.Terminal OptionClickToMoveCursor
#defaults write com.apple.Terminal OptionClickToMoveCursor -string YES
#defaults write com.apple.Terminal OptionClickToMoveCursor -string NO

Removing <?xml version="1.0"?> from the output of XSLTProcessor->transformToXml()

Just add this as a top level element in your XSL document.

<xsl:output method="html" />


Thanks to this post on php.net for the answer:
http://us3.php.net/manual/en/xsltprocessor.transformtoxml.php#80887