Use KeyRemap4MacBook to remap keys on your OSX keyboard.
Snow Leopard Only:
http://pqrs.org/macosx/keyremap4macbook/files/KeyRemap4MacBook-6.7.0.pkg.zip
It'll enable "FN + Numpad" by default. What I would really like is a way to do "Left/Up/Down/Right" without using the arrow cursor which forces my hand to shift down the keyboard too much. The utility provides a "Vi Mode" where you can map "FN + hjkl" for Left/Up/Down/Right.
To change CapsLock to Escape you need to download another utility from the website.
Snow Leopard Only:
http://pqrs.org/macosx/keyremap4macbook/files/PCKeyboardHack-6.3.0.pkg.zip
Sunday, July 25, 2010
Tunnel Firefox connections through a server
Use openSSH to open up SOCK5 tunneling to server
ssh -fND PORT_NO USERNAME@IP_ADDRESS
Configure network connection in Firefox to use manual proxy. Leave everything blank except
SOCKS Hosts: localhost Port: PORT_NO
Wednesday, July 21, 2010
Controling a Mac OSX using VNC
From "System Preferences > Sharing > Screen Sharing", click "Computer Options" and set password and voila!
reference: http://lifehacker.com/319528/remote-control-leopard-with-tightvnc
reference: http://lifehacker.com/319528/remote-control-leopard-with-tightvnc
Tuesday, July 20, 2010
Using curl to post data to a rails app
curl -X POST -d "location[lat]=111&location[lng]=222" http://localhost:3000/users/123/devices/456/locations
However rails require authenticity token. To overcome that just turn forgery protection off.
# config/environment.rb
config.action_controller.allow_forgery_protection = false
Monday, July 12, 2010
Print screen in Mac OSX
Fullscreen:
- Hold down Apple key ⌘ + Shift + 3 and release all
- Mouse click on screen
Portion of screen:
- Hold down Apple key ⌘ + Shift + 4 and release all key
- Drag mouse to select portion of screen to capture
From http://www.techiecorner.com/138/how-to-do-print-screen-in-mac-os-x/
- Hold down Apple key ⌘ + Shift + 3 and release all
- Mouse click on screen
Portion of screen:
- Hold down Apple key ⌘ + Shift + 4 and release all key
- Drag mouse to select portion of screen to capture
From http://www.techiecorner.com/138/how-to-do-print-screen-in-mac-os-x/
Subscribe to:
Posts (Atom)