Mac like keyboard layout for Windows

Whenever I use Windows on my Mac I'm always frustrated with the keyboard layout. I'm used to the Mac layout and Windows does it differently. All the special characters you use when programming, { } \ etc. are in the wrong places and what it says on the keys does not correspond to what actually appears. Urgh.

Internationalizing the Mac OS X terminal

That international characters don't work properly in Terminal.app is fairly annoying when everything else in OS X just works out of the box.

Here is my recipe for fixing it. For good measure we'll fix the X11 xterm and GTK too.