SysOps Blog

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...

Free hosting for your site in the cloud

Thinking of getting hosting or a vps server for your web site, application or blog? Well now you can get it FREE for a whole year! Not only can you have free hosting, you...

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...