I really like to have the Terminal.app to focus on the window without me having to click on it to make it active..
I found the following command:
defaults write com.apple.terminal FocusFollowsMouse -string YES
Source: osxdaily.com
I really like to have the Terminal.app to focus on the window without me having to click on it to make it active..
I found the following command:
defaults write com.apple.terminal FocusFollowsMouse -string YES
Source: osxdaily.com
The Two way authentication from Google is very cool! I found a post describing how to install it under sid, but I have modified it to apply to the current version of Debian stable.
sudo aptitude install libqrencode3sudo dpkg -i libpam-google-authenticator_20110413.68230188bdc7-1.1_amd64.debgoogle-authenticatorChallengeResponseAuthentication yesauth required pam_google_authenticator.soservice ssh restart
Sources:
I don’t really know why, but I don’t like the fact that my terminal (bash) keeps a record of every command that I have typed..
So I added the following lines to my ~/.bash_profile file:
rm ~/.bash_history
touch ~/.bash_history
I really like Spaces or Mission Control in Mac OS X.
There is a pretty good alternative in Windows, not built-in of course…But with a small app called Dexpot.
Download the beta here.
I have a few scripts that I want want my macbook to run just before I put it to sleep (by simply closing the lid).
To achive this I did the following:
brew install sleepwatchercp /usr/local/Cellar/sleepwatcher/2.2/de.bernhard-baehr.sleepwatcher-20compatibility-localuser.plist ~/Library/LaunchAgentsSource: EchoDitto Labs, Stack Overflow
I just remapped the Caps Lock key since I’m not using it!
In my case I want it to open nvALT for really fast note-taking.
Source: How To Turn Caps Lock Into A Search Key On Your Mac, Redux
Start by enabling mod_rewrite then create an .htaccess file in the directory that you want to force HTTPS.
The content of the .htaccess-file:
RewriteEngine On RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} somefolder
RewriteRule ^(.*)$ https://www.domain.com/somefolder/$1 [R,L]
Now if you go to http://www.domain.com/somefolder you will be redirected to https://www.domain.com/somefolder.
I have been using TotalTerminal for a while now. But since the latest 1.1.1 the visor is displayed under the dock. (I have my dock on the left side of my screen) This is both annoying and renders the TotalTerminal useless.
This is all due to a bug fix in 1.1.1. There is a way to fix this issue.
Open a new terminal.app window and enter the following line:
defaults write com.apple.Terminal TotalTerminalVisorWindowOnHighLevel -bool YES
Restart Terminal.app with TotalTerminal.
The TotalTerminal visor is now shown on top of the dock.
Source: GetSatisfaction
Found this great tip at techrepublic.com!
Configure BgInfo to run via a GPO for a consistent experience
First enable local or remote TSM from the vSphere Client on every ESXi host:
Next enable Clipboard Copy and Paste on every ESXi host:
Log in to the ESX/ESXi host as a root user and open the /etc/vmware/config file using a text editor.
Add these entries to the file:
isolation.tools.copy.disable="FALSE"
isolation.tools.paste.disable="FALSE"
Save and close the file. The Copy and Paste options are only enabled when the virtual machines restart or resume the next time.
So I’ve decided to make a USB boot drive with lion just in case of my MacBook Pro HDD decides to die on me..

Fired up Disk Utility, created a Mac OS X partition on the thumbdrive and restored the lion dmg (InstallESD.dmg) to the drive.

This is the first thing I removed from my Mac OS X Lion install.
How to remove the Login Window entry from the OS X Lion Menu Bar – Simple Help.
Great post!
I found this the other day! It’s just awesome.
Great post at maclife.com!
If you frequently copy email addresses out of Mail using the Control-click contextual menu. By default, Mail.app includes the user’s real name as well as their email address — that is, until you take a visit to Applications > Utilities > Terminal and type in the following with Mail.app closed: defaults write com.apple.mail AddressesIncludeNameOnPasteboard -bool NO — goodbye, real name, hello email address only!
I found a great post on how to remove the Host <ESXi Hostname> currently has no management network redundancy warning that you get on a typical ESXi whitebox installation. Due to the fact that most whitebox machines don’t have multiple nics..
For more info and screenshots, checkout the original post.
When you completed building your ESX cluster from so called whitebox machines, you might see a warning sign at the cluster level. It will tell you the management network has no redundancy. This is probably correct because whitebox clusters usually don’t have 2 NIC’s for the management network.
To loose this irritating warning message do the following.
- Go to the properties of your cluster
- Select HA from the left pane
- Click the ‘Advanced Options’ button
- Fill in the first column of the first row by double clicking and typing the value ‘das.ignoreRedundantNetWarning’
- Fill in the second column of the same row by double clicking and typing the value ‘True’
- Close the Advanced Options window
- Now deselect the option ‘Enable HA’ and press OK
- HA will be disabled, this will take some time
- Go back to the options and select ‘Enable HA’ and press OK
- HA will be enabled and the warning will be gone
Have you ever used the right-click “Open With” feature in Finder when opening a specific type of file? While this feature is usually pretty handy, if you install and remove applications on a regular basis there may still be traces of those applications that have been long-gone from your Mac. In this how-to, we’ll show how you can rebuild this list so it remains up-to-date and only shows what you currently have on your hard drive.
Basically you open a terminal and run the following command…And wait.
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Support/lsregister -kill -r -domain local -domain system -domain user
So I really have to share a great Firefox add-on called Instaright.
Instaright is social bookmarking platform and recommendation service.
With Instaright on a single click you can save article, links on article or text selection from article. Firefox enhancement for Instapaper. Earn badges while surfing.
Awesome and I use it all the time!
I use VIM to edit text-files on my mac. Or I use VIM to edit a couple of text-files containing my my worklogs. So I can keep track of what I have done on different projects and at what time.
I have edited my .bash_profile with the following line
alias wl='vim + ~/Dropbox/NV/worklog.txt; clear'
This in combination with quick access to terminal.app using Visor makes appending to my worklog almost instant.
Done.
To make this logfile more readable I use a customized color formatting.
This is the content of my .vimrc file.
colorscheme desert
syntax on
au BufRead,BufNewFile *.txt set filetype=txt
au! Syntax newlang source ~/.vim/syntax/txt.vim
I downloaded Tomasz Kalkosinski’s universal syntax script for all txt docs. But I added a couple of changes of my own:
syn match logDate /^\d\{4}-\d\{2}-\d\{2}/
syn match logTime /\d\{2}:\d\{2}:\d\{2},\d\{3}/
And later in the file:
HiLink logDate Comment
HiLink logTime Todo
You can download my vim.txt file here.
HTTPS Everywhere is a Firefox extension produced as a collaboration between The Tor Project and the Electronic Frontier Foundation. It encrypts your communications with a number of major websites.
Many sites on the web offer some limited support for encryption over HTTPS, but make it difficult to use. For instance, they may default to unencrypted HTTP, or fill encrypted pages with links that go back to the unencrypted site.
This plug-in is an absolute must-have.
Download it here.
I just wanted to share, in my opinion, the best looking Firefox theme: