Terminal – calculate number of lines of code in a directory

We had an interesting question, can we calculate how many lines of code we have written for an entire project? It turns out this isnt the easiest thing to calculate for a web-project, but we gave it a go. This is the best we have come up with so far for all code we have …
Continue reading Terminal – calculate number of lines of code in a directory

Ubuntu – set the time zone so that it takes BST into account

On Ubuntu, if you set the time manually using sudo locale-gen en_GB.UTF-8 then the problem is that it does not take BST (British Summer Time) into account, so during BST the server time is out by 1 hour. This is obviously an issue if you have time restrictions on logging on to whatever system is …
Continue reading Ubuntu – set the time zone so that it takes BST into account