Enforce HTTPS with a .htaccess file

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.

How to force TotalTerminal to always display on top of the dock

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

Enable Clipboard Copy and Paste in vSphere Client 4.1

First enable local or remote TSM from the vSphere Client on every ESXi host:

  1. Select the host and click the Configuration tab.
  2. Click Security profile > Properties.
  3. Click Local Tech Support or Remote Tech Support (SSH) and click Options.
  4. Choose the desired startup policy and click Start, then click OK.
  5. Verify that the daemon selected in step 3 shows as running in the Services Properties window

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.

Source: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1026437

Source: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1017910

Ejecting USB drives takes two tries with CleanMyMac

Some time ago I found that when I tried to eject any external drives  from my Mac it always failed on the first try, but succeeded on the second.

This is very annoying, as I’m using alfred to speed up pretty much every command on my Mac. So basically I had to type “eje” (the start of the Eject command) two times instead of one..

It turned out that CleanMyMac checked the drives as they where being unmounted, thereby locking the drive. So I disabled these settings and voila, everything worked.