Archive for the ‘IT’ Category

PS1 tips and tricks

Monday, 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?
(more…)

Asterisk – massively speeding up those REGISTER requests

Thursday, 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.
(more…)

Using php-fpm and mod_proxy_fcgi to optimize and secure LAMP servers

Wednesday, January 16th, 2013

So up until now I’ve been using mpm_itk or mpm_peruser – both with advantages and disadvantages in an attempt to secure web content. Both of these is essentially a forking mpm, kills Keepalive to a greater or lesser extent, and almost as important – neither is supported by mainline apache (so you’re on you own). Personally I prefer mpm_worker (or more recently mpm_event) since it’s threaded, and I find that it uses less resources (in terms of memory mostly). A lot of movement has also been happening with respect to FastCGI and the advantages are very good, both in terms of security and reliability (in theory).
(more…)

Outlook hamstrunged ULS progress

Friday, August 24th, 2012

I’m not one for highly controversial titles. But today Outlook wasted a couple of hours of my life. Instead of posting big explanations I think I’ll rather let the pictures do the talking:
(more…)