ssl setup

forward secrecy In cryptography, forward secrecy (abbreviation: FS, also known as perfect forward secrecy or PFS) is a property of key-agreement protocols ensuring that a session key derived from a set of long-term keys cannot be compromised if one of the long-term keys is compromised in the future. The key used to protect transmission of data must not be used to derive any additional keys, and if the key used to protect transmission of data is derived from some other keying material, then that material must not be used to derive any more keys.
Read full post gblog_arrow_right

linux cpu

linux cpu
Previously I wrote about how memory works in Linux. In this post I want to write about how the CPU is handled to service processes. processes Before we get started pulling out stats it’s important to understand how processes in Linux work. All processes in Linux except process 0 (the swapper) is created when another process executes the fork() system call. The process that calls fork() is what is called the parent process and all the subsequent processes that it calls are called child processes.
Read full post gblog_arrow_right

rewrite uri to lowercase using nginx/perl, nginx/lua or apache

Just wanted to drop this little snippet here as I’ve seen a lot of people saying you can only rewrite to lower case using embedded Perl. You can indeed do this with LUA which is a little faster than the embedded Perl. If you need to rewrite a uri ‘/TEST’ to ‘/test’ you can do it with the following: perl method location ~ [A-Z] { perl 'sub { my $r = shift; $r->internal_redirect(lc($r->uri)); }'; } OR
Read full post gblog_arrow_right

linux memory

So I thought I’d cover off some understanding I have about how Linux handles memory. Quite often I’ve been asked to take a look at a server to judge whether its memory should be upgraded to handle its workload. To get started first we need a basic understanding of how the kernel handles memory and what all the different measures are. Generally the memory of your Linux server will be allocated to the different tasks that are running.
Read full post gblog_arrow_right

docker 1.0

Previously I wrote about docker (here). I’m now excited to inform you that Docker 1.0 has been released. On March 20, 2013, we released the first version of Docker. After 15 months, 8,741 commits from more than 460 contributors, 2.75 million downloads, over 14,000 “Dockerized” apps, and feedback from 10s of 1000s of users about their experience with Docker, from a single container on a laptop to 1000s in production in the cloud … we’re excited to announce that it’s here: Docker 1.
Read full post gblog_arrow_right