In the consulting space, I’ve been in several situations where there’s a need to get a rough idea of the relative complexity of a product/code base.  I’ve seen this used in acquisition negotiations as well as for estimates to maintain or re-write an existing code base.  One way of doing this is through measuring lines of code.  Enter CLOC (Count Lines of Code). Read more →

Display Linux octal file permissions

Any Linux user quickly becomes familiar with chmod and file permissions. While I love `ll` as much as anyone, I also wanted a quick command to be able to display Linux octal file permissions as an integer – the same number you provide to chmod. You get used to translating the commandline outputs to numbers, but I wanted something that would show permissions in integer form: 600, 755, etc. I’m using Centos / Red Hat.

Read more →

Start Apache on boot

I was reminded that by default, Linux distros don’t start services on boot. I found this out the hard way on EC2 when setting up an apache server.

Read more →

Self signed certificate in Apache

I haven’t been able to update the Monocle Chronicles as much as I would like, so I’m trying to focus on shorter, more direct posts, rather than larger, multi-part tutorials, which is what I was previously trying to do.

Recently I’ve been working on a number of OSS web-based projects, using Apache on various Linux distros.  As with most of these projects, there’s a need for enabling SSL (HTTPS) for certain sections of the site (login, admin/user actions, etc.), if not the whole thing.  On a previous project, I worked through this and didn’t take great notes as to how to setup SSL, specifically with a self-signed certificate.  For these particular projects, self-signed was fine – and certainly cheaper – but this isn’t a great/ideal configuration, particularly for anything for widespread use.  The browser warnings alone are off-putting, and for good reason.

Read more →