So I started with the most widely used script that I have written, my phpDDoS reject scripts. This single script has taken the place of the 3 scripts prior. Simply wget the file into the directory that you want to have it run from, make it executable. From there you can create a cron job for it, or run -help and get more options for the script. Download the script here.
Oh and if you want test this I found this script called Slowloris. DO NOT USE THIS TO BE MALICIOUS!!!! Download it here.