Archive for February 2012

morocco

in search for some February sunshine i’ve spent 11 days in Morocco.
Continue reading ‘morocco’ »

extracting single database from a [large] mysqldump

extracting the whole database:

sed -n '/^-- Current Database: `databaseName`/,/^-- Current Database: `/p' /path/to/the/fill/dump.sql  > output.sql

single table:

sed -n '/^CREATE TABLE `MyTable`/,/^DROP TABLE /p' test.sql

[via this blog]

aspies

few articles about mild form of autism:

sounds familiar?

cloning the server using rsync

braindump of things to do/directories not to copy when cloning physical debian to a vm using rsync
Continue reading ‘cloning the server using rsync’ »