December 2009
9 posts
Damn you, DOS attacks
Oops. Should’ve had rate limiting to prevent DOS on from the start. From Mr. Jay: iptables -I INPUT -p tcp —dport 80 -i eth0 -m state —state NEW -m recent —set; \ iptables -I INPUT -p tcp —dport 80 -i eth0 -m state —state NEW -m recent —update —seconds 1 —hitcount 30 -j DROP; Also look into http://wiki.nginx.org/NginxHttpLimitReqModule
Dec 17th
http://code.google.com/p/google-perftools/ →
Dec 17th
http://www.cs.utah.edu/dept/old/texinfo/as/gprof.ht... →
Dec 16th
I always forget the best way to kill a process...
fuser -k -n tcp XXXX for bonus points, add -9
Dec 16th
http://code.google.com/p/wireit/ →
Dec 14th
http://ragona.com/blog/strip-www-django-domain/ →
Dec 8th
User-object relationships in App Engine
This has come up a few times in the past few weeks, but is woefully underdocumented. If you have list in an App Engine datastore object, you can search for objects where one of the list items is the value you’re seeing. This is especially handy when you have users watching or participating in some kind of object (chat rooms, ski resorts, diagrams). The one other tricky part was finding the...
Dec 6th
http://orion.heroku.com/past/2009/7/29/io_performan... →
Dec 4th
Upgrading to from pymongo 1.1 to 1.1.2 may or may not have fixed a memory leak. #amateurtip
Dec 3rd