Really Geeky Stuff


Here is my spam filter stats over the last year or so. If you do the math on the total received vs the total allowed it’s pretty impressive. Out of nearly 3.9 million emails received it allowed just over 2.5% of all email through. That’s over 97% of all inbound email is spam. And that’s with it not cranked down as tight as it could be. I’m sure I could get over 98% out of it if needed. Yes, I’m know I’m a geek…

Advertisements

Check this out… In OS X Leopard if you do a Command + I or “Get Info” on a windows server, or any microsoft product for that matter, check out what you get. Notice the blue screen of death.

OS X Info on M$

I’ve been using the Cisco 7940 and 7960 phones for a while now. That’s why I was so surprised the other day to find a handy way to do a factory reset on them. I don’t know how I could have missed it all this time…

Simply hold down the # key while you power-cycle the phone. (If you already have the SIP firmware loaded, simply press * and 6 and Settings at the same time, and the phone will reboot. Then press and hold the # key while it boots.)

After a second or two, the phone display will say:

Reset key sequence detected

The headset, mute, and speakerphone lights will cycle. Now, simply press the following keys:

1 2 3 4 5 6 7 8 9 * 0 #

Now, the phone will ask you whether or not you want to save your network configuration. I usually press 2 for no.

Save network cfg? 1=yes 2=no

The display will then say:

Factory reset initiated

and the phone will continue to boot. There you have it — a quick and easy way to do a factory reset.

Issue: I have a Windows XP SP1 machine. It has a Kofax Adrenaline 650i scsi card and a Panasonic KV-S2045c scanner attached. After upgrading to SP2 all scanning stops. Home grown scan software has weird random crash. Panasonic RTIV scan software has a divide by zero crash. Kofax vcdemo and vbdemo report Out of paper error. Reinstalling, removing, upgrading, or downgrading and all combonations of those do not fix it. Uninstalling SP2 does fix this issue.

Fix: Downloaded ASPI drivers from adaptec at http://www.adaptec.com/en-US/speed/software_pc/aspi/aspi_471a2_exe.htm . Ran aspiinst.exe and then aspichk.exe and verified that updated drivers were installed. Rebooted and attempted to scan. Same error. Removed scanner from device manager and attempted a scan. This time it worked as normal. Made a few scans just to be sure. Scanned for new hardware, reinstalled scanner drivers when asked.

All is well…

export PATH=$PATH:/etc/

sed -n -e ‘/ ‘$1′ /p’ /var/lib/mysql/mysql.log > /var/lib/mysql/filterlog.output.txt

#!/usr/bin/perl -w

## On a slave server, check to see that the slave hasn’t stopped.

use strict;
use DBIx::DWIW;

my $conn = DBIx::DWIW->Connect(
DB => “mysql”,
User => “root”,
Pass => “7mailliw”,
Host => “localhost”,
) or exit;

my $info = $conn->Hash(“SHOW SLAVE STATUS”);

if (exists $info->{Slave_SQL_Running} and $info->{Slave_SQL_Running} eq ‘No’)
{
warn “slave SQL thread has stopped\n”;

my $to = ‘rootnotification@aghealth123.com’;
my $from = ‘root@avenger.aghealth123.com’;
my $subject = ‘*******Avenger Replication Failed*******’;
open(MAIL, “|/usr/sbin/sendmail -t”);
print MAIL “To: $to\n”;
print MAIL “From: $from\n”;
print MAIL “Subject: $subject\n\n”;
print MAIL “Mysql heartbeat script has detected that mysql replication
has failed between agdb1 and avenger.

Thanks…
root\n”;
close(MAIL);

}
elsif (exists $info->{Slave_IO_Running} and $info->{Slave_IO_Running} eq ‘No’)
{
warn “slave IO thread has stopped\n”;

my $to = ‘rootnotification@aghealth123.com’;
my $from = ‘root@avenger.aghealth123.com’;
my $subject = ‘*******Avenger Replication Failed*******’;
open(MAIL, “|/usr/sbin/sendmail -t”);
print MAIL “To: $to\n”;
print MAIL “From: $from\n”;
print MAIL “Subject: $subject\n\n”;
print MAIL “Mysql heartbeat script has detected that mysql replication
has failed between agdb1 and avenger.

Thanks…
root\n”;
close(MAIL);
}
elsif (exists $info->{Slave_Running} and $info->{Slave_Running} eq ‘No’)
{
warn “slave has stopped\n”;

my $to = ‘rootnotification@aghealth123.com’;
my $from = ‘root@avenger.aghealth123.com’;
my $subject = ‘*******Avenger Replication Failed*******’;
open(MAIL, “|/usr/sbin/sendmail -t”);
print MAIL “To: $to\n”;
print MAIL “From: $from\n”;
print MAIL “Subject: $subject\n\n”;
print MAIL “Mysql heartbeat script has detected that mysql replication
has failed between agdb1 and avenger.

Thanks…
root\n”;
close(MAIL);
}

Next Page »