Git tips

git show Show the file changes for a commit : git show --stat $commit_num git log show logs between two tags: git log kernel-3.10.0-54.el7..kernel-3.10.0-59.el7 git diff Show git diff even after git add : git diff --staged git diff > some.patch or git diff master > some.patch git add Use git add -p to split a file git commit edit the last commit : git commit --amend commit seperate line for a file git add –patch git commit git blame show the commit by each line

How to use QA Tools

Install QA Tools QA Tools Wiki Page Get repo : I suggest to install qa-tools-workstation directly. wget -O /etc/yum.repos.d/qa-tools.repo http://liver.englab.brq.redhat.com/repo/qa-tools.repo Install related packages 1 $ yum install -y qa-tools-workstation python-bugzilla python-nitrate ##TCMS-Submit Usage All filed Trancer Summary Script Automated Related bugs (from testinfo or beaker task, RHTSdone and external tracker) Status confirmed Priority Default tester Estimated time Components Create test case $

How to install a dictionary on fedora

yum -y install stardict download the dict you want from yum or http://abloz.com/huzheng/stardict-dic/zh_CN/ tar jxf $what_you_download and mv them to /usr/share/stardict/dic Ok, modify the hot key and just use it

Linux Kernel Networking Learning

How to create Proc proc_net_fops_create() /* create and init the file*/ |- create_proc_entry() proc_net_remove() |- remove_proc_entry() struct socket struct socket { sk ops } socket buffer include/linux/skbuff.h net/core/skbuff.c Network module init start_kernel() |-> … |-> trap_init() |-> rcu_init() |-> … |-> rest_init |-> kernel_thread(init, …) |-> … | | |—————— init() |-> … |-> do_basic_setup() |-> … | | |———— do_basic_setup() |-> init_workqueues() |-> usermodehelper_init() |-> driver_init() |-> sysctl_init() ->