Tagged: tips

Rescue your server with a little magic

What to do when your server just started malfunctioning with disk errors and the filesystem switches to read only mode? You may also find various files disappearing before your eyes as you try to...

netcat – a handy port scan and more

Here’s a quick and easy way to check if a server port is open to connections.. nc -zv somehost 22 Connection to somehost 22 port [tcp/ssh] succeeded! To check a range of ports you...

How to clone a mysql database

Here’s an easy way to copy or clone a database either on the same server or to a remote server and at the same time search/replace some data in the tables if needed.. All...

How to remove ^M characters from a file

Sometimes you come across a file, maybe a config file for some application you have installed, that has a load of ^M chars at the end of each line.. perhaps because the file at one...

Easy install Subversion 1.6 on Centos 5

The version of subversion included in the default centos yum repos is a little old so to install the latest and greatest, this is all you need to do.. First install the rpmforge repo...

blank php pages – mystified?

A common problem with php applications is the inscrutable blank page. No matter what you do, nothing shows on the page, nothing shows in the apache error logs, nothing in the syslog.. you try...

Secure your web browsing with socks

Create an ssh connection to a server somewhere and proxy your web browsing over that secure connection.. On your pc or netbook or whatever you use for browsing, run this in a terminal.. ssh...