Jumlins TechBlog

The coding hell and the daily IT of Niklas Jumlin

July 28th, 2010

Having to synchronize some data among a Debian linux cluster, i settled on using csync2 for the job.
Here’s a short guide to set it up.
Read the rest of this entry »

July 14th, 2009

So i was asked to tell how many lines of code a project was at so far..

After some brain bashing i came up with the following, there is proberbly better ways to do it.. but it seems to work pretty nice.

grep -R --include=*.php --include=*.js --include=*.css --include=*.htm* . * | wc -l

This counts the lines in all the text types i had used in that project.