Author Archives for Kieran

Find an article
Jun 3

How to dump nginx sites-enabled configuration

Published by in Leave your thoughts
Warning! There was an error loading some of the images for this post.

I was recently a fool and聽accidentally deleted my nginx sites-enabled configurations. After endless mopping, I stumbled across this. If you add the below to file such as “find_nginx_config.sh”: # Set pid of nginx master process here pid=8192 # generate gdb commands from the process's memory mappings using awk cat /proc/$pid/maps | awk '$6 !~ "^/" {split ($1,addrs,"-"); print "dump memory... Read Arcticle

Apr 25

How to setup your own git repo with HTTP access [DEBIAN]

Published by in with 2 Comments
Warning! There was an error loading some of the images for this post.

Sometimes you find yourself thinking: “I don’t really want to host this code on someone else’s servers.” Especially if you’re particularly fond of your own privacy, and like the flexibility and control of running your own services. One day a project came up that I didn’t really want to host on GitHub, likewise I had ran out of private repositories... Read Arcticle

Aug 8

Tommy Cooper Jokes

Published by in with 1 Comment
Warning! There was an error loading some of the images for this post.

1. 聽 聽 聽 Two blondes walk into a building — you’d think at least one of them would have seen it. 2. 聽 聽 聽 Phone answering machine message: ‘If you want to buy marijuana, press the hash key.’ 3. 聽 聽 聽 聽A guy walks into the psychiatrist wearing only clingfilm for shorts. The shrink says, ‘Well, I... Read Arcticle

Aug 2

What happens when the council keeps letting you down!

Published by in Leave your thoughts
Warning! There was an error loading some of the images for this post.

This happened in Oshawa, Ont. The Horse Shelter It seems a hobby farmer on the city’s outskirts sought council permission to erect a Horse Shelter. Permission was denied, leading to a typical protracted one sided negotiation with Council. Exasperated the property owner wrote “I suppose you wouldn’t even allow me to put a table and chairs out there…”. “Of course... Read Arcticle

Jul 29

How to install dropbear and change the SSH port [CENTOS]

Published by in Leave your thoughts
Warning! There was an error loading some of the images for this post.

So I recently purchased a new server, with the aim to run Virtualizor and OpenVZ on it which happened to mean installing Centos instead of my usual Debian. The experience was definitely an interesting one, but here’s what happened: Add the dropbear repo: rpm -Uvh http://ftp-stud.hs-esslingen.de/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Install dropbear: yum install dropbear I was initially baffled as how to configure Dropbear... Read Arcticle

Jul 14

Detecting mod_rewrite using PHP

Published by in Leave your thoughts
Warning! There was an error loading some of the images for this post.

I came across a rather intriguing issue the other day whilst working, the issue being detecting mod_rewrite using PHP. As I will explain later some of you may be thinking, why on earth would you want to do that? I assume that previous programmers wanted to only build SEO links within the backend if they could confirm that a suitable... Read Arcticle

Jul 5

Fetchmail and procmail setup [DEBIAN]

Published by in Leave your thoughts
Warning! There was an error loading some of the images for this post.

Having decided to start posting a range of computer science related 聽topics I thought it would be nice to explain how to setup fetchmail and procmail, which I personally use to, well, fetch my e-mails and then forward them on to my main e-mail account. I’m sure you know that having to login to multiple e-mail accounts is a huge... Read Arcticle

Jun 15

Nginx SSL setup [DEBIAN]

Published by in Leave your thoughts
Warning! There was an error loading some of the images for this post.

Today I decided I’d add a self-signed SSL certificate to my 128 MB VPS in preparation for some projects I’m hoping to setup. Below is a guide of how to create and add a self-signed SSL certificate to your Nginx web server. Start by creating a folder to store your SSL certficiates on the server: mkdir -p /etc/ssl/localcerts Now create... Read Arcticle

May 15

Until we meet again

Published by in , with 1 Comment
Warning! There was an error loading some of the images for this post.

Miami,   My year abroad came to an abrupt end with the second semester flying by at break neck speed. It deeply saddened me to wave good bye to the place I had grown to love and the people I’d become best friends with; the experiences I had will be cherished forever and hopefully the people I’ve met become life... Read Arcticle