Trash days on Monday suck.
I constantly forget to take out the trash on Saturday when there is a holiday on Monday. I dusted off the old trash-day-php script and installed it.
Installation is pretty simple.
Edit the script with the values you want.
place it in /etc/cron.daily/trash-day-php
chmod +x /etc/cron.daily/trash-day-php
cron doesn’t like . in filenames. Thats why I named the file trash-day-php not trash-day.php.
To test your email just run /etc/cron.daily/trash-day-php –test
Continue reading “php trash day script”
I wrote this quick & dirty bandwidth monitor for use with htop. It also displays the average bandwidth for the last 10 seconds.
It displays a line similar to this at the top of the screen:
eth0:RX:600b TX:944b Avg:77b eth2:RX:0b TX:0b Avg:0b
Usage is simple:
$ ./bw.monitor.php & htop
Continue reading “php command line bandwidth monitor”
Many times when you’re writing a php script, you need to put things in arrays.
You might be thinking to yourself why doesn’t this section of code work?
Continue reading “The most useful php functions EVER!”
After several hours of playing with php I think I’ve finally developed a stable calendar class.
Continue reading “My calendar class”