language and parsing
nm --dynamic
Switch to the previous branch used in git(1)
git checkout -
Use Linux coding style in C program
indent -linux helloworld.c
Show log message including which files changed for a given commit
git --no-pager whatchanged -1 --pretty=medium
c_rehash replacement
for file in *.pem; do ln -s $file `openssl x509 -hash -noout -in $file`.0; done
SVN Status log to CSV
svn log | tr -d '\n' | sed -r 's/-{2,}/\n/g' | sed -r 's/
Find chronological errors or bad timestamps in a Subversion
URL=http://svn.example.org/project; diff -u <(TZ=UTC svn -q log -r1:HEAD $URL | grep \|) <(TZ=UTC svn log -q $URL | grep \| | sort -k3 -t \|)
Find which jars contain a class
find . -name "*.jar" | while read file; do echo "Processing ${file}"; jar -tvf $file | grep "Foo.class"; done
Redirect a filehandle from a currently running process.
yes 'Y'|gdb -ex 'p close(1)' -ex 'p creat("/tmp/output.txt",0600)' -ex 'q' -p pid
Display GCC Predefined Macros
gcc -dM -E - < /dev/null
archive all files containing local changes (svn)
svn st | cut -c 8- | sed 's/^/\"/;s/$/\"/' | xargs tar -czvf ../backup.tgz
Remove all subversion files from a project recursively
rm -rf `find . -type d -name .svn`
add all files not under version control to repository
svn status |grep '\?' |awk '{print $2}'| xargs svn add
Watch a the local directory for changes and auto-commit every
while TRUE; do git add *; git commit -a -m 'auto commit'; sleep 60; done
Make sure your compiler is using ccache
watch ccache -s
Commit all the changes in your java code
svn st | grep /main/java | awk '{print $2}' | xargs echo | xargs svn ci -m "my comment here"
revert one or more changesets in svn
svn merge -r 1337:1336 PATH PATH
search user defined function in c language
cflow file.c | grep ':$' | sed 's/ <.*//'
Add SVN keywords property to all PHP and Javascript files
find . \( -name "*.php" -o -name "*.js" \) -exec svn propset svn:keywords Id {} \;