Thursday, April 8, 2010
build cmd
Programming in C
+ Marshall
umc:/vol/tmp/boot/liu.ini
/home/fhanka/Fnet/workIntOAM/umc_init_72.t
*.cc; *.h; *.c
cd /vobs/1bts_V1
cd /vobs/fw_V1
SIMENV for older release
View manager: vmgr &
serial -t 1bts70 liu
telnet 135.246.193.204 2002
serial -t 1bts71 liu
telnet 135.246.193.204 2018
serial -t 1bts72 liu
telnet 135.246.193.204 2026
serial 1bts78 liu
route add
If you want to access directly to Twiki using IE, FF on window desktop, please following these steps:
- open hosts file at folder: C:\WINDOWS\system32\drivers\etc
- add this statement: 10.128.208.102 btswww.nt.grp
- save and load this link for TWiki: http://btswww.nt.grp/NbgSwDevelopment/bin/login/Main, this link for load plan: http://btswww.nt.grp/NbgSwDevelopment/bin/view/ProjectManagement/WebHome
P/s: In case you don’t route to Nbg site please run this command first:
Open command line (Start -> Run -> cmd) and add the route to Nbg by command:
route -p add 10.128.0.0 mask 255.255.0.0 10.128.240.1
bashrc configuration
# .bashrc
# User specific aliases and functions
# Source global definitions
[ -f /etc/bashrc ] && . /etc/bashrc
#######################################
# user specific environment
#######################################
# for mc, cvs, svn, ...
export EDITOR=vim
# vim and gnome-terminal have support for 256 colours in fedora 8 at least
# Note debian/ubuntu users should install the ncurses-term package to support this
export TERM=xterm-256color
# setup default search path for python modules.
# Note we add this to the 'path' in .vimrc so the gf
# command will open any .py or .h files etc. in this dir
export PYTHONPATH=~/pb.o/libs/
#######################################
# change app defaults
#######################################
# highlight $HOST:$PWD prompt
PS1='\[\e[1m\]\h:\w\$\[\e[0m\] '
# Don't store duplicate adjacent items in the history
HISTCONTROL=ignoreboth
# adjust settings according to current terminal window width
# which may have changed while the last command was running
# (which is a common occurance for vim/less/etc.)
# Note this is already set in /etc/bashrc on Fedora 8 at least.
shopt -s checkwinsize
# GREP_COLOR=bright yellow on black bg.
# use GREP_COLOR=7 to highlight whitespace on black terminals
# LANG=C for speed. See also: http://www.pixelbeat.org/scripts/findrepo
alias grep='GREP_COLOR="1;33;40" LANG=C grep --color=auto'
alias ls="BLOCK_SIZE=\'1 ls --color=auto" #enable thousands grouping and colour
alias minicom='minicom -c on' #enable colour
alias cal='cal -3' #show 3 months by default
alias units='units -t' #terse mode
alias diff='LC_ALL=C TZ=GMT0 diff -Naur' #normalise diffs for distribution
alias lynx='lynx -force_html -width=$COLUMNS' #best settings for viewing HTML
alias links='links -force-html' #need to enable colour in config menu manually
alias xterm='xterm -fb "" -bg black -fg gray -fa "Sans Mono" -fs 10 +sb -sl 3000 -g 80x50+1+1'
alias sudo='sudo env PATH=$PATH' #work around sudo built --with-secure-path (ubuntu)
alias vim='vim -X' #don't try to contact xserver (which can hang on network issues)
alias gdb='gdb -tui' #enable the text window interface if possible
# I hate noise
set bell-style visible
# Tell less not to beep and also display colours
export LESS="-QR"
# Let me have core dumps
ulimit -c unlimited
#######################################
# shortcut aliases
#######################################
#just list directories
alias lld='ls -lUd */'
#what most people want from od (hexdump)
alias hd='od -Ax -tx1z -v'
# canonicalize path (including resolving symlinks)
alias realpath='readlink -f'
# make and change to a directory
md () { mkdir -p "$1" && cd "$1"; }
# quick dir listing with latest files/dirs at the bottom,
# prettify symlink arrows.
# using eval to precompute the tput sequences.
eval "
l() {
ls -lrt --color=always \"\$@\"
sed 's/ -> / $(tput bold)▪▶$(tput sgr0) /'
}"
srcCp
#!/usr/bin/sh
#DIRs="/uvobs"
echo Start searching files with patterns .............
echo "Starting time: `date`"
SROOT="/uvobs/1btsptf/core"
DIRs="$SROOT/rmt_app $SROOT/oam $SROOT/hdr $SROOT/usl"
for dir in $DIRs
do
echo Searching in $dir ...
find $dir \( -name '*.h' -o -name '*.c' -o -name '*.cpp' -o -name '*.hpp' -o -name '*.cc' -o -name '*.lh' \) -type f -exec cp -f --parents {} . \;
echo `date`
done
echo "Ending time: `date`"
echo Creating tarball ...
tar czf uvobs.tgz uvobs
echo Done! uvobs.tgz created.
Tags: source, Copy, bash, patterns
Wednesday, April 7, 2010
Clearcase useful commands
File: $HOME/.bashrc
alias ct=/usr/atria/bin/cleartool
alias sv='/usr/atria/bin/cleartool setview'
umask 022
See more
Tags: clearcase, setview, cleartool, bashrc
Bash useful command
1. /etc/profile. Executed automatically at login.
2. The first file found from this list: ̃/.bash_profile, ̃/.bash_login, or ̃/.pro-
file. Executed automatically at login.
3. ̃/.bashrc is read by every nonlogin shell. However, if invoked assh, Bash instead
reads $ENV,for POSIX compatibility.
Filename Metacharacters
* Match any string of zero or more characters.
? Match any single character.
[abc...] Match any one of the enclosed characters; a hyphen can specify a range (e.g.,a-z,A-Z,0–9).
[!abc...] Match any character not enclosed as above.
̃ Home directory of the current user.
̃name Home directory of user 'name'.
̃+ Current working directory ($PWD).
̃- Previous working directory ($OLDPWD).
Redirection using file descriptors
cmd>&n Send cmd output to file descriptor n.
cmd m>&n Same as previous, except that output that would normally go to file descriptor
m is sent to file descriptor n instead.
cmd>&- Close standard output.
cmd<&n Take input for cmd from file descriptor n.
cmd m<&n Same as previous, except that input that would normally come from file
descriptor m comes from file descriptor n instead.
cmd<&- Close standard input.
cmd<&n- Move input file descriptor n instead of duplicating it.
cmd>&n- Move output file descriptor n instead of duplicating it.
Multiple redirection
cmd2>file Send standard error to file standard output remains the same
(e.g., the screen).
cmd>file2>&1 Send both standard error and standard output to file.
cmd&>file Same as previous. Preferred form.
cmd>&file Same as previous.
cmd>f1 2>f2 Send standard output to file f1 and standard error to file f2.
cmd | tee files Send output of cmd to standard output (usually the terminal) and
to files.
cmd 2>&1 | tee files Send standard output and error output of cmd to standard output
(usually the terminal) and to files.
stty -a | grep erase
Create a file, /etc/inputrc for system wide use or ~/.inputrc for personal use. Actually, this is the readline initialization file, readline is a library that some programs (bash, kvt) use to read input (try bind -v to see a list of readline key and function bindings). Cut and paste the following in the file to make the Delete key delete characters under the cursor, and make Home and End work as well:
"\e[3~": delete-char
# this is actually equivalent to "\C-?": delete-char
# VT
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# kvt
"\e[H":beginning-of-line
"\e[F":end-of-line
# rxvt and konsole (i.e. the KDE-app...)
"\e[7~":beginning-of-line
"\e[8~":end-of-line
Remove tab and spaces
sed 's/[\t]//g' test.txt > out.txt
sed 's/[\x09]//g' test.txt > out.txt
Zip and Unzip
tar cvf - filenames
gzip > file.tar.gz
gtar cvzf file.tar.gz filenames
tar -pczf uvobs.tar.gz /uvobs/1btsptf/core
gzip -cd mc-4.7.0.4.tar.gz | tar xfv -
Tags: Tab, Delete. Home, End
puTTY multiple sessions
E:\Downloads\putty.exe -load "session_name"
E:\Downloads\pageant.exe E:\fullpath\private.ppk
See more (http://www.unixwiz.net/techtips/putty-openssh.html)
putty with timestamp:
E:\x86tool\utilities\putty-dekt1-&h-&y-&m-&d-&t.log
E:\x86tool\utilities\puttylog-&h-&y&m&d-&t.log
TimeStamp Format
specifier | Replaced by | Example |
---|---|---|
%a | Abbreviated weekday name * | Thu |
%A | Full weekday name * | Thursday |
%b | Abbreviated month name * | Aug |
%B | Full month name * | August |
%c | Date and time representation * | Thu Aug 23 14:55:02 2001 |
%d | Day of the month (01-31) | 23 |
%H | Hour in 24h format (00-23) | 14 |
%I | Hour in 12h format (01-12) | 02 |
%j | Day of the year (001-366) | 235 |
%m | Month as a decimal number (01-12) | 08 |
%M | Minute (00-59) | 55 |
%p | AM or PM designation | PM |
%S | Second (00-61) | 02 |
_MIL | Milliseconds (000-999) | 678 |
%U | Week number with the first Sunday as the first day of week one (00-53) | 33 |
%w | Weekday as a decimal number with Sunday as 0 (0-6) | 4 |
%W | Week number with the first Monday as the first day of week one (00-53) | 34 |
%x | Date representation * | 08/23/01 |
%X | Time representation * | 14:55:02 |
%y | Year, last two digits (00-99) | 01 |
%Y | Year | 2001 |
%Z | Timezone name or abbreviation | CDT |
%% | A % sign | % |
Tags: putty, secure, ssh, OpenSSH, Unix access
label:
OpenSSH,
putty,
secure,
ssh,
Unix access
Monday, April 5, 2010
back up a Karaoke cd+g disk
Karaoke disks are not like your normal audio cd's. It is the graphic part that is the hardest to copy. The first thing you need is a reader and or writer that likes Karaoke discs. Alot do not.
Very few cd roms read Karaoke cd's. I have not yet found one that does. I have to use my writer to READ and write the karaoke disks. Tested models are sony CRX120/140/160 series. Most Yamaha writers plus most lite-on writers will.
Next is the sofware you need. CDRWIN is excellent software (shouldn't be saying that on a clone cd forum). However, CloneCD will do it.
Subscribe to:
Posts (Atom)
Labels
- _ASSERTE (1)
- _CRT_ASSERT (1)
- _CRT_ERROR (1)
- _CRT_WARN (1)
- _RPT0 (1)
- _RPT2 (1)
- _RPTF2 (1)
- -1073741515 (1)
- .vimrc (3)
- \160 (1)
- 00 (1)
- 0unzip (1)
- 10.4 (1)
- 1073741515 (1)
- 10minutemail (1)
- 28022013 (1)
- 5giay (1)
- ABI (1)
- absolute (1)
- Airlines (1)
- alias (2)
- Apple (3)
- Arch Linux (1)
- arduino (1)
- assignment (2)
- Australia (1)
- auto (1)
- Avoid (1)
- AvoidDirectlyAccessGlobals (1)
- AXE central processors (1)
- AXE system (1)
- bash (6)
- Bash script (3)
- bashrc (2)
- BIG_ENDIAN (1)
- bit-fields (1)
- blogspot (1)
- break down (1)
- buffer overflows (1)
- bug tracking (1)
- build (1)
- Built-in Shell Variables (1)
- C library (1)
- C programming (1)
- c shell (2)
- C++ (1)
- C++ Programming (1)
- C++Test (2)
- case (1)
- cast (1)
- cc (1)
- CDRWIN (1)
- CFLAGS (1)
- change management (1)
- check (1)
- check float values equality (1)
- checker (1)
- CHECKSUM (1)
- chrome (1)
- cl.exe (1)
- clearcase (1)
- Clearcase commands (1)
- cleartool (2)
- Clock (1)
- CloneCD (1)
- cloud (2)
- cmd (1)
- co.cc (1)
- CodePlex (1)
- Coding (1)
- Coding standard (1)
- Coding Standards (1)
- color (1)
- colour (1)
- Command Line (1)
- Command-Line (1)
- Command-Line editing (1)
- Command-Line editing mode (1)
- CommandLine (1)
- compilation (1)
- compile (1)
- compiler (2)
- compliance (1)
- compliance checker (1)
- constructor (1)
- Copy (2)
- cpp programming (1)
- CreateFile (2)
- creator (1)
- critical systems (2)
- cscope (3)
- csh (1)
- ctags (1)
- customer service (1)
- CXXFLAGS (1)
- dangerous functions (1)
- DCB sructure (1)
- Debian (1)
- debug (2)
- DEK Technologies (1)
- Delete (1)
- detected (1)
- Dev-cpp (1)
- developers (1)
- device (1)
- device driver (1)
- DeviceIoControl (1)
- diagram (1)
- diff (1)
- Directly (1)
- disposable (1)
- disposable e-mail addresses (1)
- divide and conquer. (1)
- dns (2)
- domainname (1)
- downgrade (1)
- drawback (1)
- dropbox (1)
- e-mail addresses (1)
- eclipse (1)
- Edit (1)
- End (1)
- environment (1)
- epsilon (1)
- Ericsson (4)
- ERLANG (2)
- errno (1)
- Error (2)
- error code (1)
- error result (1)
- example (1)
- Excel (1)
- exec (1)
- execute (1)
- execution time (1)
- exit code (1)
- explicit calculation of pointer (1)
- explorer (1)
- facebook (3)
- fansipan (1)
- fb (1)
- Fedora (1)
- fgets (1)
- Firefox (1)
- Firefox shortcuts (1)
- float (1)
- float equality (1)
- floating point (1)
- folding (1)
- forwarding (1)
- free (1)
- FreeCommander (1)
- from cl (1)
- function (1)
- Functions (3)
- FunctionsCallOrder (1)
- gitdiff (1)
- global data (1)
- gmail (1)
- GNU (5)
- google (1)
- GreatNews (1)
- Ground (1)
- Guerrilla Mail (1)
- Guidelines (1)
- Headquarters (1)
- help desk ticketing (1)
- high-level (1)
- holiday (1)
- Home (1)
- host (1)
- hostname (2)
- hosts (2)
- howto (1)
- iCloud (1)
- ide (1)
- illegal (1)
- implementation code (1)
- indexing (1)
- inet_pton (1)
- interface header (1)
- ioctl() (1)
- iPhone (1)
- iPhoneVietnam (1)
- java (1)
- jetstar (1)
- Job Ad (1)
- Karaoke (1)
- Korn shell (1)
- labelname (1)
- layers (1)
- Legibility (1)
- less confusing (1)
- linux (2)
- LITTLE_ENDIAN (1)
- login (1)
- lsocket (1)
- Lunar new yeat (1)
- Mac (1)
- Mac OS (1)
- Mac OS shortcuts (1)
- mailinator (1)
- maintainability (2)
- make (2)
- make clean (2)
- Makefile (2)
- Mandriva (1)
- Melbourne (1)
- memory (2)
- Microsoft (1)
- Mint (1)
- mintemail (1)
- misra (3)
- MISRA-C (1)
- MISRA-C 2004 (1)
- misra2004 (1)
- Mobifone (1)
- MobileMe (1)
- Modular (1)
- Modular programming (1)
- modules (1)
- more readable (1)
- Multi-Targeting (1)
- nbtscan (1)
- nbtstat (1)
- nested (1)
- network (1)
- network operations (1)
- nm. objdump (1)
- NoMachine (1)
- notepad++ (1)
- OFFLOAD (1)
- open() (1)
- OpenNx (1)
- OpenSSH (1)
- OpenStack (1)
- openSUSE (2)
- Orcas (1)
- outlook (1)
- outlook 2007 (1)
- parasoft (7)
- parts (1)
- password (1)
- Paste (1)
- patterns (1)
- PCLinuxOS (1)
- PCmover (1)
- perl (2)
- pkgmgr (1)
- PLEX (2)
- PLEX-C (1)
- pointer (2)
- pointer alignment (1)
- Pointer arithmetic (1)
- pop (1)
- Precompile (1)
- print16() (1)
- print32() (1)
- printHex() (1)
- programming (4)
- Programming Language for EXchanges (1)
- prompt (1)
- protocol (1)
- Puppy Linux (1)
- push (1)
- putty (2)
- re-use (1)
- read() (1)
- readelf (1)
- ReadFile (1)
- real-time (1)
- regsvr32 (1)
- request tracker (1)
- Reset Windows password (1)
- risky (1)
- rule (1)
- Sabayon Gentoo Live CD (1)
- safe (1)
- safety code (1)
- SBG HW environment (1)
- Screen (1)
- script (2)
- secure (1)
- Security (1)
- Send To (1)
- Send To menu (1)
- SendTo (1)
- serial number (1)
- serial port (1)
- Serial programming (2)
- services (1)
- sethc.exe (1)
- setup (1)
- setview (2)
- shared mem (1)
- shell (3)
- shell:sendto (1)
- side effects (1)
- site feed (1)
- skew (1)
- Slackware (1)
- snprintf (1)
- socket (1)
- source (1)
- ssh (2)
- status (1)
- strace (1)
- stray (1)
- string (2)
- strncat (1)
- strncpy (1)
- struct (1)
- SunOS (1)
- SWAP16/32 (1)
- switch (1)
- symbol (2)
- system (1)
- system() cmd (1)
- Tab (1)
- taglist (1)
- TC shell (1)
- TCP (1)
- tcpdump (1)
- technique (1)
- Telnet Client (1)
- tenmien (1)
- test (1)
- Testing (1)
- Tet (1)
- Thread safe (1)
- Thread safe programming (1)
- thread safety (1)
- Thunderbird (2)
- Tiger (1)
- tip (1)
- Tips (1)
- trick (1)
- tutorial (1)
- typedef (1)
- Ubuntu (1)
- UCdetector (1)
- uninitialized (1)
- union (1)
- unix (3)
- Unix access (1)
- unsafe (2)
- unsafe string (1)
- unzip (1)
- update (1)
- upgrade (1)
- useful tools (2)
- Variable Substitution (1)
- variables (1)
- vav (3)
- vav.vn (2)
- version (1)
- vi (2)
- Vietnam airlines (1)
- Viettel (1)
- vim (4)
- vimdiff (1)
- viminfo (1)
- Vinaphone (1)
- Violation (2)
- Vista (2)
- visual studio (1)
- vnnic (1)
- void (1)
- vs2005 (1)
- vs2008 (1)
- vspc (1)
- warranty (1)
- web (1)
- website (2)
- website test (1)
- Win8 (1)
- Windows (2)
- Windows 8.1 (1)
- winsxs (1)
- winsxslite (1)
- WinXP (1)
- workflow processes (1)
- write() (1)
- WriteFile (1)
- X (1)
- x11 (1)
- x64 (1)
- Xming (1)
- youth counselling (1)
- youtube (1)
- zebrazone (1)
- zebrazoo (1)
- zim (1)