Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Gordon Gao ghprince

🎯
Focusing
  • Hong Kong
Block or report user

Report or block ghprince

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ghprince
ghprince / tieupgrade.sh
Created Jan 28, 2015
TIE package upgrade in Solaris 10
View tieupgrade.sh
#!/opt/csw/bin/bash
#requires bash 4+
#TIEfile format must be "<PKGNAME> <VERSION>" in each line, e.g.
#SUNWt1tsk 4.33
#SUNWt1ato 2.7
#SUNWtuact 1.10
usage() {
echo "Usage : $0 <TIEfile>" 1>&2
exit 1
@ghprince
ghprince / .bashrc
Created Jan 27, 2015
svn prompt in bashrc
View .bashrc
function in_svn() {
if $(svn info >/dev/null 2>&1); then
return 0
fi
return 1
}
function get_svn_project_and_branch() {
svn info 2> /dev/null | \
awk -F/ \
@ghprince
ghprince / .bashrc
Created Nov 14, 2013
my .bashrc used for test code development in Solaris 10
View .bashrc
function in_svn() {
if $(svn info >/dev/null 2>&1); then
return 0
fi
return 1
}
function get_svn_project_and_branch() {
svn info 2> /dev/null | \
awk -F/ \
@ghprince
ghprince / script.vim
Created Oct 13, 2012
CCK filetype detection for VIM
View script.vim
" Vim support file to detect file types in scripts
"
" Maintainer: Gordon Gao <gordon.gao@oracle.com>
" Last change: 2012 Oct 17
" This file is a user customized script file to detect CCK filetype.
" Only do the rest when the FileType autocommand has not been triggered yet.
if did_filetype()
finish
@ghprince
ghprince / cck.vim
Created Oct 13, 2012
CCK syntax file for VIM
View cck.vim
" Vim syntax file
" Language: CCK
" Maintainer: Gordon Gao <gordon.gao@oracle.com>
" Last Change: 2012 Oct 13
" Please move it to ~/.vim/syntax/cck.vim
if version < 600
syntax clear
elseif exists("b:current_syntax")
@ghprince
ghprince / patch_process.md
Created Oct 12, 2012
Patch Process on Solaris
View patch_process.md

###How to make patches for test packages (or any Solaris packages) by Gordon Gao (gordon.gao@oracle.com)

Creat a folder for your patch and create the following structure (please substitube O000003-03 with your own patch id):

gogao/g3-patches/O000003-03% find .
.
./tmp
./tmp/O000003-03
./src
@ghprince
ghprince / configure_vim.md
Last active Oct 11, 2015
Configure VIM in Solaris 10 for test code development
View configure_vim.md

Configure VIM in Solaris 10

#####for test code development by Gordon Gao 10/12/2012

install vim and gvim using pkgutil

install following plugins (all from Github)

  • Pathogen https://github.com/tpope/vim-pathogen
  • NERDTree https://github.com/scrooloose/nerdtree
@ghprince
ghprince / isu.vim
Created Oct 12, 2012
ISU syntax file for VIM
View isu.vim
" Vim syntax file
" Language: ISU
" Maintainer: Gordon Gao <gordon.gao@oracle.com>
" Last Change: 2012 Oct 11
" Add the following line into your ~/.vimrc for auto detection
" autocmd BufRead,BufNewFile *.isu set filetype=isu
" Based on expect.vim and tcl.vim
" For version 5.x: Clear all syntax items
@ghprince
ghprince / .vimrc
Created Oct 11, 2012
Vim User Config
View .vimrc
" Turn of Vi compatibility
set nocompatible
set encoding=utf-8
set backspace=2
" Universal map leader
let mapleader = ","
" Plugin pathogen setting
call pathogen#infect()
View Preferences.sublime-settings
{
"color_scheme": "Packages/User/Railscasts.tmTheme",
"tab_size": 2,
"translate_tabs_to_spaces": true,
"vintage_start_in_command_mode": true,
You can’t perform that action at this time.