Search This Blog

Monday, August 15, 2011

Useful pbs tutorial

In a pbs script for qsub,

echo ${JOB_ID}


http://cac.engin.umich.edu/resources/systems/nyxV2/pbs.html

How to disable blinking cursor of gnome terminal of Ubuntu 11.04




gconftool-2 -s /apps/gnome-terminal/profiles/Default/cursor_blink_mode -t string off

from http://www.jurta.org/en/prog/noblink

Saturday, August 13, 2011

splitting vim editor windows horizontally


  • Press :split to split horizontally the currently edited file into two Vi editor windows.

  • Press :split file2 to split the Vi editor windows horizontally. The upper Vi editor windows access to file2 while the bottom Vi editor windows access to the currently edited file.

  • While in splitting mode, press CTRL+WW to switch between split Vi editor window. Copy between files made even easier in split Vi editor windows - just copy the block of lines and press CTRL+WW switching to target file then press p to paste the copied lines.

  • To close splitted  windows press :q.


  •  
    from  http://bloggerdigest.blogspot.com/2006/09/vi-editor-quick-reference.html

    Monday, May 30, 2011

    tortoise SVN + sshkey authorization using Putty

    The key point is to put session name (not host name)

    svn+ssh://[username]@[putty saved session name]/path/to/repository

    http://www.vectorns.com/blog/11-tortoisesvn-over-ssh-on-windows-via-putty

    Wednesday, May 18, 2011

    mounting hfsplus file type on Ubuntu

    Following packages are requried:

    sudo apt-get install hfsplus hfsutils hfsprogs

    check the file system:

    mkfs.hfsplus -J /dev/sdc3

    mount  -t  hfsplus  /dev/sdc3  /media/mybook  -o rw,nosuid,nodev,uhelper=hal

    or put the following line in /etc/fstab
    /dev/sdc3 /media/mybook hfsplus rw,nosuid,nodev,uhelper=hal 0 0

    Friday, May 6, 2011

    To tar and gzip directories

    #!/bin/sh

    for dirs in  AAA   BBB  CCC
    do
            tar   cvf    $dirs.tar   $dirs   ;   gzip    $dirs.tar 
    done

    Linux / Unix Command: zip

    When given the name of an existing zip archive, zip will replace identically named entries in the zip archive or add entries for new names. For example, if fooz.zip exists and contains foo/file1 and foo/file2, and the directory foo contains the files foo/file1 and foo/file3, then:

    zip -r fooz foo
    will replace foo/file1 in fooz.zip and add foo/file3 to fooz.zip. After this, fooz.zip contains foo/file1, foo/file2, and foo/file3, with foo/file2 unchanged from before.

    http://linux.about.com/od/commands/l/blcmdl1_zip.htm

    Labels