Linux commands

Find and replace string in file recursively in a directory

Simple command I don't want to forget that find a string and replace it with another using sed.

Simple bash script to monitor your webserver remotely on different ports version 2

Simple bash script to monitor one or multiple webserver on different ports. I'm sure there is over 100 available programs doing this but I wanted something with small memory usage. Also, I only wanted to be notified once, notifications are receive by SMS on my cell. With the software I was using before, I was getting notified every minute until I could reach a computer and fix the problem or stop monitoring which was quite annoying.

Replacing all occurence of a string by another with sed recursively in directory

There is some command that I use once in a while and I always have to search for samples how to use it. This one replace all occurence of a string by another recursively in a directory.

Creating SSL key with CSR file for https

Creating SSL keys is pretty basic but I wrote it here not to forget it :)

Repair MySQL master-master replication

This is an howto that explains how to manage MySQL multimaster replication. Setting it up is fairly easy but managing it when something goes wrong can be a nightmare. Here is information that you need to know if you have a MySQL database in master master replication.

Blocking IPs with iptables

Howto block IP address with iptables and simple usage.

chmod only directory or files recursively

Simple command to chmod recursively.