vanutsteen.nl => nerds only A blog on rails, php, computing, my bass guitar and stuff

3 useful route commands

on in Linux

To route an ip address through a (vpn) connection:

1
2
          <div>
            <div class="highlight shell"><table style="border-spacing: 0"><tbody><tr><td class="gutter gl" style="text-align: right"><pre class="lineno">1

2 3

sudo route add...

Sublime Text 2

on in Development, Linux, PHP, Python, Ruby

I installed sublime text on my Ubuntu 11.10 box but I had some troubled loading external python modules:

1
2
3
4
5
loaded 937 snippets
>>> import distutils
Traceback (most recent call last):
  File

Using rsync with spaces

on in Linux

Something to never forget again:

1
rsync --recursive me@remote:'"~/Very complicated path/"' ~/Downloads/

So: single quote, double quote, path, double quote, single quote

Install pcntl (pcntl_fork) on Ubuntu Hardy

on in Linux, PHP

No apt-getting on Hardy :(

1
2
3
4
5
6
7
8
9
10
11
cd ~/
mkdir php
cd php
apt-get source php5
cd php5-*/ext/pcntl
phpize
./configure
make
no=`phpize | grep "Zend Module Api No" | cut -d : -f2 | awk...

Lsyncd

on in Linux, Python

I was messing around with some python script to test a spamassassin install. It checks al the mail in the spam folder an see if it is marked as spam. Then it goes through the mail in ham/ and see if it passes as not-spam.

So I’m developing it on my...