compiling
1 2 ldd -r *.so | grep -v "main" | grep missing
13393 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
1 2 ldd -r *.so | grep -v "main" | grep missing
1 2 diff <dir1> <dir2>
1 2 nawk -Fc '{print $1}' test.txt
1 2 nawk -F: '{print $2}' test.txt
1 2 diff -Naur test.old test.cpp > test.patch
1 2 patch test.cpp test.patch
1 2 patch -R test.cpp test.patch
1 2 mysqldump -uroot dbname > dbtest.sql
1 2 ctags -R .*
1 2 if( x%2 == 0) 3 { 4 print "even number" 5 } 6 elsif( x%2 > 0) 7 { 8 print "odd number" 9 }
1 2 void XORSwap(void *x, void *y) 3 { 4 *x ^= *y; 5 *y ^= *x; 6 *x ^= *y; 7 }
1 2 #!/usr/bin/perl -w 3 my @ifconfig = `/sbin/ifconfig eth0`; 4 for( @ifconfig ) 5 { 6 if( /(\d+\.\d+\.\d+\.\d+)/ ) 7 { 8 print "IP : $1\n"; 9 last; 10 } 11 }