Month: July 2006
-
Breaking up a big file into small ones w/ rar
rar a -m0 -v800m file.rar file.big
-
lighttpd & Apache together on multipleIPs
Say you need to run lighttpd & Apache together on the same server, same port 80, but on different IP addresses. Have this in lighttpd.conf: server.port = 80 server.bind = “lighttpd_IP1” $SERVER[“socket”] == “lighttpd_IP2:80” {} And listen to a specific IP in Apache’s httpd.conf Listen Apache_IP:80
-
Count source code lines recursively
Since wc itself does not have a recursive option built-in, it’s as simple as: find . -name ‘*.php’ | xargs wc -l