gnarwl vacation queryfilter with vacationStart and vacationEnd times checked

We are using gnarwl for vacation notification and I would like gnarwl to only reply if the current time is in the vacationStart vacationEnd window.

Here is the queryfilter to do that using the following information:


$recepient - receiver of the message
$time - current time in seconds since the epoch

Wordpress tag: 
Wordpress category: 

dd'ing and printing progress (a lame script I wrote for something I do a lot...)

I often use dd to copy large files or make images from hard drives. It's annoying to watch something without any progress indicator, so I use the little known kill switch on dd.

From the man page:

Sending a USR1 signal to a running ‘dd’ process makes it print I/O statistics to standard error and then resume copying.

$ dd if=/dev/zero of=/dev/null& pid=$!

Wordpress category: 

monitoring ambient temperature with zabbix and ipmitool

I wanted to monitor the ambient temperature in my computer room and decided to try using the built in sensors on my servers. ipmitool showed an ambient temperature, so I did some sed to get just the temperature.

[thomas@hotstuff: ~] $ sudo ipmitool sdr type "Temperature" |grep Ambient
Ambient Temp     | 08h | ok  |  7.1 | 22 degrees C

Wordpress category: 

Pages