has_many :codes

Posts - Page 2 of 7

Installing Gentoo on MacBook Pro

  • 13 min read

I recently decided to switch from OSX to Linux and went with Gentoo, so this post describes how install Gentoo on MacBook Pro. IMO the installation isn’t as complicated and difficult as many think it is, so I eventually…

Read More

Let’s Encrypt certificates with Nginx

  • 6 min read

SSL certificates can be quite cheap these days, but nothing beats free, and in this post I will show you how to use Let’s Encrypt certificates with Nginx (back in early 2011, I wrote a post on the most common reasons why…

Read More

Ubuntu server for Ruby and PHP apps

  • 12 min read

There are several guides on the Internet on setting up Ubuntu server, but I thought I’d add here some notes on how to set up Ubuntu server for Ruby and PHP apps at the same time. Ubuntu’s latest Long Term Support…

Read More

CentOS Parallels VM network configuration

  • 2 min read

This is how I fixed an issue with networking in CentOS Parallels virtual machines . Basically, after cloning the template, the clones appear to report only the loopback interface and one eth interface which seems to be inactive…

Read More

MySQL dynamic column name

  • 3 min read

This post describes how to dynamically generate column names from row values in MySQL databases, also known as pivot tables. Let’s say you have a table or the results of a query with some values by date in different rows…

Read More

I’m back!

  • 3 min read

Well, it’s been a while since I’ve last updated this blog and I just wanted to make a short little post here to update y’all on a few things. It seems it’s not just me – the blog thing is kinda dying…

Read More

Downtime and DDoS against PowerDNS.net

  • 1 min read

This site is back to normal now, after problems caused by a DDoS were resolved earlier today. The attack was not against the site/server directly, but against the DNS service I’ve used until this morning, PowerDNS.net…

Read More

Backups with duplicity and xtrabackup

  • 5 min read

Here’s how to perform backups with duplicity and xtrabackup with some scripts I wrote and which you can find on Github at . xtrabackup Xtrabackup is a great tool for taking MySQL hot backups (both full and incremental) of…

Read More

Nginx rate limits for third party services

  • 2 min read

API rate limits: the problem In order to prevent abuse many APIs limit the number of requests that a client can make in a given amount of time, through rate limiting practices; here I’ll show you how it is possible to…

Read More