How To Make Firefox Focus on the URL not Search in a New Tab

Author: , September 5th, 2017

Set browser.autofocus to false in about:config

How To Find Non-ASCII Characters in Vi

Author: , July 7th, 2015

To search for non-ASCII characters: /[^\d0-\d127] Use the substitute function to clean them up: :%s/[^\d0-\d127]/ /g

How To Batch Search and Replace Multiple Files Using PERL

Author: , October 16th, 2014

Using PERL, we can easily do a search and replace across multiple files. perl -pi -w -e ‘s/SEARCH_FOR/REPLACE_WITH/g;’ FILE_LIST The following example will replace all occurrences of “hello” with “goodbye” inside files ending with .txt: 1 perl -pi -w -e ‘s/hello/goodbye/g;’ *.txt perl -pi -w -e ‘s/hello/goodbye/g;’ *.txt To handle special characters, use the hex […]

How to Re-Index Spotlight to Fix Email Search Bug

Author: , November 25th, 2009

sudo mdutil -E -i on / or You need to get Spotlight to reindex the mail folder (Home/Library/Mail), but you don’t have to mess about in terminal. From the Apple menu, choose System Preferences. Click Spotlight. Click the Privacy tab. Drag the folder to the list. Remove the item or volume you just added. ~or~ […]

How to Ignore Case During Searches in VIM

Author: , September 29th, 2009

To ignore case in the searches, enter the following command: :set ignorecase This command can be abbreviated as: :set ic To turn off this feature, use: :set noignorecase This command can be abbreviated as: :set noic