How To Reset Nagios State

Author: , November 5th, 2015

Every once in a while there is a hiccup in my internet service and every host that Nagios monitors shows DOWN. In those situations, I do not need the hundreds of the emails and text messages generated by Nagios. Here is the procedure for resetting Nagios v3.5.0 running on MacOSX 10.6.8 via a MacPorts install: […]

How To Clear Inactive Memory in MacOSX

Author: , August 9th, 2013

Open Terminal and run the purge command, located in /usr/bin/. Note: You may need to have XCode Developer Tools installed in order to use the purge command. YMMV… As per Apple: http://support.apple.com/kb/HT1342 Inactive Memory: This information is in RAM but it is not actively being used, it was recently used. For example, if you’ve been […]

How To Clear An HTML File Input Field

Author: , July 19th, 2012

An HTML file input can’t be cleared by normal means (i.e. setting the value to null or an empty string) because of browser security restrictions. In most browsers, setting a null value attribute either will have no effect or cause an error. Creating a new element that clones the old element and swap the two […]

How To Change The Search Highlight Color In VIM

Author: , October 22nd, 2010

Add the following line to your .vimrc file: [code]hi Search ctermfg=white ctermbg=lightgreen guifg=white guibg=black[/code] Color List Color Schemes Color Scroller Use :noh to clear the last search highlight. Place the following in your ~/.vimrc to map the F3 key to a highlight toggle: [code]nnoremap <F3> :set hlsearch!<CR>[/code]