Linux

Making Postfix daemon programs more verbose

Append one or more “-v” options to selected daemon definitions in /etc/postfix/master.cf and type “postfix reload“. This will cause a lot of activity to be logged to the syslog daemon. For example, to make the Postfix SMTP server process more verbose:

Read More
Scripting

Emerge new system from old World file

A slick script or method to compile the apps listed in the world file, from an existing system to the new system, all together at once, rather that typing in all of those application names into one giant emerge command. emerge -av $(cat /path/to/oldworld)

Read More
Scripting

Compare Two Flat E-mail Lists with PHP

So here’s how I parsed to flat files with e-mail addresses (nothing special about it) approved_emails.txt has the following emails in it: email1@email.com email2@email.com check_emails.txt is composed of: email1@email.com email3@email.com email4@email.com My php file that I’m actually running from a command prompt is check_email_addresses.php < ? $approved_emails = file(“approved_emails.txt”); $check_emails = file(“check_emails.txt”); foreach ($check_emails as […]

Read More
Linux

Estimate emerge time

You can analyze your system’s emerge.log file to find out how long a given package took to compile and also to estimate the time of future compile jobs, or you can use genlop, which is designed for the job.

Read More
Linux

Simple antivirus test using a text file

This is a simple test to check if your antivirus software is up and running Create a text file Insert the following text into the file X5O!P%@AP[4\PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H* Save the file with the filename eicar.com Your antivirus software should detect this file as a virus and notify you about that. Your antivirus software is not working […]

Read More