Friday, February 27, 2009

Tips for Setting up Cygwin on Windows

Create these useful symbolic links:
ln -s "/cygdrive/c/Documents and Settings/username/My Documents/" ~/docs
ln -s "/cygdrive/c/Documents and Settings/username/Desktop" ~/desktop
ln -s '/cygdrive/c/Program Files/Adobe/Acrobat 6.0/Acrobat/Acrobat.exe' ~/bin

To add ~/bin to your path,
export PATH=$HOME/bin:$PATH
You can put this in your .bash_profile or .bashrc file.

Useful aliases:
alias open='cygstart'     # for Mac OS X
alias start='cygstart'    # for Windows

Re-run setup.exe to keep Cygwin up-to-date.

To find out the latest changes on your system,
ls -lt /usr/share/doc/Cygwin | head

Monday, February 2, 2009

Keyboard Shortcuts for Web Browsers

These are the keyboard shortcuts that I find quite useful that are common in most browsers.

  • To highlight the text in Address/Location bar area:
    [Alt]d (Also [Ctrl]l or [F6] in Chrome and Firefox.)
  • Select the Instant Search Box/Web Search:
    [Ctrl]e, [Ctrl]k, or [Ctrl]j
  • Add "http://www." and ".com" to the text in the Address/Location Bar:
  • Open website or search result in new tab:
  • Open link in new foreground tab:
    [Ctrl][Shift]{Left Arrow} or
    [Ctrl][Shift]{middle mouse button}
  • Open current webpage in new window (IE only):
  • Open new tab:
  • Add current page to Favorites/Bookmark this page:
  • Open Favorites/Bookmarks:
  • Open Favorite/Bookmark Manager:
    [Ctrl]b or [Ctrl][Shift]b
  • Toggle Full Screen:
  • Automatic Scrolling: Middle-Click and move the mouse up or down. (If your mouse does not have a Middle Button, click Left and Right buttons at the same time should achieve the same result.)
  • Select Tab (1 to 8) (Chrome and Firefox only):
    [Ctrl]1 to 8
  • Close tab:
    (In Chrome, you can use [Ctrl][Shift]t to reopen the tab that you just closed.)
  • Find a word or phrase on a page:
    [Ctrl]f ([Ctrl]g to find again.)
    (In Firefox, use ' and / for incremental search for Link and Text, respectively.)

For a complete shortcut keys list on each browser, follow these links:

Firefox with NoScript:

  • NoScript Menu:
  • Temporary allow top-level script: