Recent Posts

Archive

2012

2011

2010

2009

2008

2007

2006

Tags

Authors

Brad Montgomery

Feeds

RSS / Atom

Blog

Viewing posts from January, 2007

Automatic Backups with cron, tar, and SSH

Jan. 1th, 2007 In: None By: Brad Montgomery 8 comments

Everyone knows that backups are important, but how many of us regularly back up our own websites, blogs, or whatever? Well, I've put together a relatively simple way for my Mac to log into my Linux-based webserver, archive some content, and download it for me. All of this is done Automatically, too!

read more

Migrating PHP scripts to MySQL from PostgreSQL

Jan. 1th, 2007 In: None By: Brad Montgomery 2 comments

I've recently had to work on a project where I needed toconvert some very basic PHP code thataccessed a postgresqldatabase so that it would work with mysql. For the most part, this has beenfairly simple thanks to rpl. Many of PHP'sdatabase functions have very similar names, so I simply use rpl toconvert the existing code. Here's a simple bashscript that I put together to convert some of my postgresqlfunctions to mysql:

read more

Blocking outgoing UDP traffic using iptables

Jan. 1rd, 2007 In: None By: Brad Montgomery 953 comments

Since rebuilding my server (after having it used to propogate a UDP flood DoS attack), I’ve been advised that I should set up iptables to block any unnecessary outbound UDP traffic. So, how do I do this?

read more

Page 1 of 1:

  • 1