Monday, January 9, 2006

Last week I posted a quick and dirty way to add the DNS information to the BFD alert emails. I already grew tired of looking at all the Dig comments, stats and additional info so I updated the snippet to provide only the PTR record and authority section.

The updated line:

DIG=`dig -x $ATT_HOST +nocomments +nostats +nocmd +noquestion`

And the updated alert.bfd.dig file. Rename and replace the original one at /usr/local/bfd/alert.bfd.

Popularity: 1%

{ 1 comment }

Dynamic Copyright Footers

by damonp on January 9, 2006

in PHP,Snippets

Its a pain to change the copyright footer every year. I use a PHP snippet to make it dynamic if possible.

<?php
echo 'Copyright 1999 - ' . date('Y');
?>

Popularity: 1%

{ 0 comments }