Category: Linux

Postfix queue monitoring script

Here is a small Perl script which can be useful as a Postfix queue monitor (count number of emails in Postfix queue) #!/usr/bin/env perl # postfix queue/s size # author: # source: http://tech.groups.yahoo.com/group/postfix-users/message/255133 use strict; use warnings; use Symbol; sub count { my ($ …

Quick search and replace inside file

sed -i 's/original/new/g' file.txt Where sed means Stream EDitor -i – in-place (for example save back to the original file) s – the substitute command original – a regular expression describing the word to replace (or just the word itself) new – the text to replace …

Heart Bleed Bug – OpenSSL

A large vulnerability has been present in OpenSSL, the open-supply software program package deal broadly used to encrypt Web communications. The flaw permits attackers to steal the knowledge that's usually protected by SSL/TLS encryption (net purposes, e-mail, prompt messaging, VPNs, and so forth). Essentially, meaning a …

Heart Bleed Bug – OpenSSL – part 2

I keep greater than 30 servers and a number of other of them was affected with Heartbleed bug. CentOS launched update for OpenSSL package deal(s) so there are not any excuses to not update (yum update openssl, … ). In the meantime, there are a whole …

Partition X doesn't begin on bodily sector boundary

If you run “fdisk -l” and also you get one thing like: # fdisk -l .... Disk /dev/sdb: one thousand.P GB, 1000204886016 bytes 255 heads, sixty three sectors/monitor, 121601 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector measurement (logical/bodily): 512 …