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
Smile More :)
Published by Kieran in Uncategorized 路 Leave your thoughtsSmile More 馃檪
How to setup your own git repo with HTTP access [DEBIAN]
Published by Kieran in Computer Science with 2 CommentsSometimes 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
Tommy Cooper Jokes
Published by Kieran in Uncategorized with 1 Comment1. 聽 聽 聽 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
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
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
Detecting mod_rewrite using PHP
Published by Kieran in Computer Science 路 Leave your thoughtsI 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
Fetchmail and procmail setup [DEBIAN]
Published by Kieran in Computer Science 路 Leave your thoughtsHaving 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
Nginx SSL setup [DEBIAN]
Published by Kieran in Computer Science 路 Leave your thoughtsToday 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
Until we meet again
Published by Kieran in Study Abroad, Tips and Advice with 1 CommentMiami, 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