block web request with iptables
add a rule to block port 80 web requests:
/sbin/iptables -A INPUT -p tcp -s xxIPADDRESSxx --dport 80 -j DROP
to remove that rule:
/sbin/iptables -D INPUT -p tcp -s xxIPADDRESSxx --dport 80 -j DROP
list open connections
Using this command to list out number of open connections by IP
/bin/netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
in two
“The Ruby community has agreed upon two spaces as being the optimum for indenting blocks of code…”
Oh hell yes, they got that right. I’m beginning to like it a little more now.
train-ed
I’ve been fighting the Ruby on Rails movement, I’m a perl programmer and proud of it damnit! I broke down last night and started to plow through some docs and I’m trying to work on a basic project to get my feet wet. From the sysadmin side I’ve got installing the components on the server down pat, so that was the easy part for me. Now I’m into setting up all the actual RoR pieces and that’s taking a little longer to take in. One of the big issues I seem to be running into is the books or documentation that I pull up often is Rails 1.x and since I just installed everything I’ve got the latest and greatest Rails 2.x. It seems that there are a few key things that have changed in the new version that make the older documentation (1+ years) out of date. Picking through the RoR wiki can be just as painful as I’ve read through most of a page when I come across a note that everything I just spent trying to hammer into my brain doesn’t work in 2.x. In addition to that there seems to be people that are very model centric and do that first while others are very application centric and want to do a load of application creation up front of any backend. In the end I’m thinking I should have done this a few months ago before 2.0 rolled out.
Go Big Green
I think is the best rendered CGI I have seen
reporting?
So I get home and check Yahoo for news real quick and this is a “top story” in their list.
I’m reading this and there is this piece:
“I have not seen the clip, nor do I know the context of the remarks. This is what I know — that Tilghman, who never played on the LPGA Tour, said golf’s young players should “lynch Tiger Woods in a back alley.””
What has been decided to be front page news, is an article with commentary by someone who is going off of what they heard and have not bothered validating nor know the context of what they are commenting on! Reporting has really gone into the crapper if this is the high standards we hold ourselves to for a news report.
kulua talk
[10:08] <fwiles> Perl is 20 years old today
[10:09]Â <Gedanken> It will be another 5 years old until perl 6 is released
[10:09]Â <fwiles> I don’t think it’ll be that long, but I would be surprised to see a RC in 2008 honestly
[10:10]Â <fwiles> but next year Perl can drink… so it’s all good
[10:21]Â <kreep> I thought perl6 already came out, they just renamed it to Ruby 2.0
[10:21]Â * kreep ducks
[10:24]Â * fwiles throws some Unicode at kreep
[10:27]Â <Gedanken> Unicode hurts cuz the characters are bigger
[10:27]Â <Gedanken> he he
pegged
Once in awhile something comes through that feels like the author is writing about you. I see this occasionally with Dilbert and sometimes with XKCD but this article totally nailed me:
http://www.randsinrepose.com/archives/2007/11/11/the_nerd_handbook.html
Thanks to jediwonderboy for the notice on this one.
must resist
I’ve been spending way more time than I should be on Desktop Tower Defense. The recent goal has to beat the 100 wave challenge. I imagine of the past two weeks I’ve been up 10 days until 2am playing the damn game. I can quit anytime I want to, really.