Archives November 2007

Web Permissions

Chip

This is my little permissions fix script. Its great for folders that apache serves from.

#/bin/bash
if [[ "$1" == "" ]]
then
echo "Fix Web Permissions Script - Tim 10/09/2007"
echo "Recursively changes permissions on folders 775 and files 664"
echo "Usage: fixperms <user:group> <folder>"
else
chown -R $1 $2
find $2 \( -type d -exec chmod 755 '{}' \; \) -o \( -type f -exec chmod 644 '{}' \; \)
fi

Continuous Tail Script

Chip

This is my continuous tail script. It's good to have running on another screen while you are working on PHP code. You can ct the apache error_log and watch the log as the page is accessed. Streamlines the whole debugging thing.

#/bin/sh
if [[ "$1" == "" ]]
then
echo "Continuous Tail Script (50 Lines, 5s Interval). Tim 10/09/2007"
echo "Usage: ct [file]"
else
clear
tail -n 50 -s 5 -f $1
fi

Sunday 11th November 2007 - 23:08:38

Chip
Had a great game of Cyberpunk today. Josh DM'd and Ben also came and played. Had a great bbq too! This was my first game of Cyberpunk. Finally.

Sunday 4th November 2007 - 20:11:03

Chip

My blog is looking kinda sad at the moment. Very neglected indeed.

Got lots of work on which is great. Starting to get a few new customers too for service and web design work. I'm still maintaining the webserver. I've got a new one going in soon to replace the current Dual P3 733 HP LH3000. A Quad 2Mb Xeon 700Mhz HP DL580 with 1Gb of RAM and a RAID 5 configuration of four 18.2GB 15,000RPM SCSI hard drives. That will wipe the floor with the old servers. I may look at virtualisation too.

I also scored two NEC 8500-120s 1U dual P3 servers in Ra and an Ed variants. I'm planning on setting one up as a watchdog and maybe a failover server for some of the functions on the LAN such as DNS and traffic monitoring.

Little Liam has learned 'Ta' now when he takes something from someone or gives something to someone. He's doing well. New bub is doing well all the checkups and stuff are clear.

Daily archives