Brad Lucas

Programming, Clojure and other interests

Hosting a Git repo on a VPS

June 1, 2017

Hosting a Git repo on your own VPS server is a simple. Though paying for GitHub to host a private repo does not cost very much you may have reasons to keep your source repositories on your own server. You might enjoying do things yourself, have reasons to keep your source on your own server or would like to simply have a place to manage your personal projects. The following will walk you through the process of creating and hosting a git repository on your own server.


On your server create a directory where you will store your repository. I'd image you'll create more than one over time so name the directory something appropriate such as repos. If you are just starting off and it is only you I suggest for simplicity you create a directory called repos under your home directory.

For our example here I'm going to create a repo called project on a machine with the domain name of My username for this example will be user. Before continuing make sure you can ssh easily into your account on your server. In our example you would need to be able to execute the following command.

Continue reading →

Project Euler

October 9, 2015

I've reached Level 1 on Project Euler using Clojure as the programming language.

Level 1 is reached when you've completed 25 exercises.

You get this nice badge.

Continue reading →

Countries without the letter 'A' in their name

March 23, 2015

The problem. Find all the countries in the world without an ‘A’ in their name.

  1. Find a list of the world’s countries. [
  2. Cut/paste the list to a file. countries.txt
  3. Note the file is a list of numbers and names. Need to remove the numbers and filter out the ones without ‘A’s.
     def remove_country_line_numbers():
        return [l.strip() for l in  open('countries.txt').readlines() \
                     if not l.strip().isdigit() and l.lower().find('a')==-1]


In [81]: ", ".join(remove_country_line_numbers())
Out[81]: "Belgium, Belize, Benin, Brunei, Burundi, Chile, Comoros, Congo, 
Republic of the, Cote d'Ivoire, Cyprus, Czech Republic, Djibouti, Egypt,
 Fiji, Greece, Guernsey, Hong Kong, Jersey, Lesotho, Liechtenstein, Luxembourg, 
Mexico, Morocco, Niger, Niue, Peru, Philippines, Puerto Rico, Reunion, Seychelles, 
Sweden, Timor-Leste, Togo, Turkey, United Kingdom, Yemen"

Continue reading →


April 22, 2013


Continue reading →


November 6, 2012

Getting back to things and have updated my personal page at

It is a simple page with six thumbnails using Twitter Bootstrap ( What made it nice is that it is responsive so it works well on any device.

Continue reading →