Denial of Service

April 2nd, 2015

Denial of Service attacks is a very vague term for a group of attacks that causes a service to be denied to legitimate users. Obviously when you host your website publicly you want it to be available – so having it taken down by some hacker is highly annoying. And I’m not referring to only websites, there are many other types of applications and services out there that can be “taken down”, or to which “service can be denied”.
Read the rest of this entry »

PS1 tips and tricks

September 1st, 2014

So two things have been bugging me off late, knowing if the previous command exited non-zero, and I’ve just now once too many times committed on the wrong git branch. The former question is easy enough to answer with “echo $?” and the latter with “git branch” before “git commit” – but lets be honest – how regularly do you really double check which branch you’re on?
Read the rest of this entry »

Asterisk – massively speeding up those REGISTER requests

August 1st, 2013

So recently I started bumping into an issue where I would see a buildup of traffic in the RX queue of asterisk’s SIP port 5060 (udp bound). After some scavenging of the code I quickly came to realize that asterisk only processes a single incoming SIP request (or response) at a time. So I cooked a rather crude patch (that I for the shame of it won’t share here) in an attempt to figure out what went wrong.
Read the rest of this entry »

apache+php-fpm – A site admin’s perspective

June 5th, 2013

Recently I posted a blog on using php-fpm combined with mod_proxy_fcgi instead of mod_php or one of the myriad of problematic mod_fcgi modules (I think there about three of them, the one worse than the next in my experience – although I’m pretty sure that somehow they do work). Some of my recommendations and mechanisms are very different from what people are used to, and does actually solve the 777 permissions issue, in a way that is even more secure and more fine grained than the typical recommendations, and actually closes the actual problem.
Read the rest of this entry »