Securely copying files via an intermediate server with SSH or SCP

View Comments
Filed under: Tips Unix

ssh-copy-intermediate-server.png

A couple tricks to copy files from a remote server through an intermediate gateway; useful when you don't have direct access to the remote server but the gateway does.

Setting up a Percona/Galera MySQL Cluster

View Comments
Filed under: Database

percona-cluster.png

In which I go through the steps required to set up a MySQL cluster based on Galera's synchronous replication using Percona's optimised distribution of MySQL.

Setting up an L2TP over IPSec VPN server on Ubuntu, also compatible with iOS devices

View Comments
Filed under: Security Unix

vpn.png

A simple guide on how to quickly setup a secure VPN access for use with computers as well as iPhones and other mobile devices.

OS X: Moving a user's home directory to an encrypted second drive

View Comments
Filed under: Mac Miscellaneous Tips

filevault2.png

FileVault2 makes it easy to fully encrypt the main drive, but if you want to migrate your home directory to a second drive also encrypted, you are normally out of luck. Here's a workaround to achieve exactly this.

Bitwise operations in Ruby, and an example application to testing with Rspec

Filed under: Ruby & Rails Testing
bitwise.png

How to simplify some scenarios in testing by applying simple bitwise operations.

Read more »

Recovering from MySQL replication stops caused by failing statements

Filed under: Database Unix
mysql-replication.png

A simple tip on how to quickly get a slave in sync again when replication stops and there is no need to rebuild the slave.

Read more »

Resque: automatically kill stuck workers and retry failed jobs

Filed under: Ruby & Rails Unix
resque.png

If you use Resque for your background jobs, and have to manually intervene when workers get stuck or jobs fail for some reason, you might find this tip useful.

Read more »

Managing KVM-LVM based virtual machines: backups, cloning, and more

Filed under: Unix Virtualisation
kvm.png

In this follow up I'll mention a few commands that I use to do basic management of my KVM virtual machines - things such as backups, cloning VMs and more.

Read more »

Setting up a KVM-LVM based virtual machine host

Filed under: Unix Virtualisation
kvm.png

In this post I describe the environment and tasks I am currently using to manage virtual machines for development, testing and fun. The setup involves KVM as hypervisor and using an LVM-based storage pool for storing the virtual machines; instructions are based on Ubuntu as OS.

Read more »

Custom RSpec matchers for blocks, and the Ruby magic behind their inner workings

Filed under: Ruby & Rails Testing
rspec-custom-matchers.png

In RSpec it is possible to define special custom matchers that enable us to test with a neat syntax what happens when some code is executed, while also helping reduce duplication.

Read more »