Friday, December 9, 2011

change liveCD to a PXE target

https://projects.centos.org/trac/livecd/wiki/PxeBoot

Tuesday, December 6, 2011

git send-email

http://morefedora.blogspot.com/2009/02/configuring-git-send-email-to-use-gmail.html

http://felipec.wordpress.com/2009/10/25/git-send-email-tricks/

bash commands shortcuts

http://www.gnu.org/software/bash/manual/bashref.html#Commands-For-History

yank-nth-arg (M-C-y)
alt+ctrl+y

Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument n, insert the nth word from the previous command (the words in the previous command begin with word 0). A negative argument inserts the nth word from the end of the previous command. Once the argument n is computed, the argument is extracted as if the ‘!n’ history expansion had been specified.

yank-last-arg (M-. or M-_)

alt+-
Insert last argument to the previous command (the last word of the previous history entry). With an argument, behave exactly like yank-nth-arg. Successive calls to yank-last-arg move back through the history list, inserting the last argument of each line in turn. The history expansion facilities are used to extract the last argument, as if the ‘!$’ history expansion had been specified.





Monday, December 5, 2011

__releases and __acquires macros in Linux kernel

Is used for sparse (a static analysis tool) to check the lock unlock mismatches.



http://lists.linux-foundation.org/pipermail/linux-pm/2006-May/008346.html


http://marc.info/?l=linux-sparse&m=109865107109043&w=2

use netcat to transfer files between two machines

netcat is a very useful small program to communicate between two machines. If you just want to simply upload a file from one machine to another one, without setting up ftp, ssh server, then you can use netcat (it has many other functions).


commands:

1) listen on a port:

nc -l -p 2222 > log.txt
2) send file:
cat /etc/passwd  nc 192.168.0.50 2222