Blogs

Valve Scammer gets scammed..

This made my day..

Original post is at : http://futuremark.yougamers.com/forum/showthread.php?t=23914&highlight

I copied it here in case it disappears some day. :)


br0kenrabbit says:
hi

Greg_ValveOLS says:
good evening

br0kenrabbit says:
What's ip?

br0kenrabbit says:
up?

Greg_ValveOLS says:
my name is greg a member of the valve online Support team

br0kenrabbit says:
On MSN?

Greg_ValveOLS says:
yes :)

br0kenrabbit says:
Why?

Apache Tinkkering..

Not anything major, but I wanted to figure out how to make my apache server re-write the URL of my site if someone came to http://fratm.com I wanted the server to dump them on http://www.fratm.com so basically how to do a all encompassing redirect from fratm.com to www.fratm.com It was quite easy actually, by using ReWriteRules.

In an htaccess file I just added this code.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^fratm\.com* [NC]
RewriteRule ^(.*)$ http://www.fratm.com/$1 [redirect]

Pulling out the addresses...

The other day the boss asked me to find the e-mail address of every person who has sent mail from or that we received mail from that had a specific string in the e-mail address.. So I wrote this quick little perl script to do this.. He wanted a count and a unique list.

Here is the PERL script I wrote to do this.

Spam Assassin wrapper

This is a perl script that you can call from /etc/aliases to do a spamassassin check on mail that would normally be piped to a program. (Mailing lists for example.)

Setting up a virtual interface in Linux

In linux setting up a virtual interface is a piece of cake. You just need to issue two commands, and you are done.

first you need to assign an ip to the cirtual interface.

/sbin/ifconfig interface:virtual# IPADDRESS

or

/sbin/ifconfig eth0:1 192.168.1.2

FizzBuzz

I read an interesting article the other day, basically they stated that they challenge any programmer who applies to work with them to write a fizzbuzz program. This is a program that counts from 1 to 100, prints the numbers but if the number is divisible by 3 or divisible by five it would print the words fizz for 3, and buzz for 5.

Javascript Table Column Toggle

A coworker asked me how to toggle a column in a table so that it was either visible or not, he wanted to do this in PHP. After looking over his code, I realized this might be something that would work and look better if done in javascript.

Now I'm not very good at javascript, and I rarely have to write any, but this is what I came up with as a working example.

Howto create an ISO Image in Linux

Credits: This little HOWTO was taken from http://secpriv.com/viewarticle.php?id=7

Not really related to privacy or security, but I sometimes forget this command, and need to look it up. This way, I'll know exactly where to find it:

To make an ISO from your CD/DVD, place the media in your drive but do not mount it. If it automounts, unmount it.

Putting the Blaugh Daily Comic on your page.. (PHP)

This is kind of obfuscated, the blaugh daily comic went under, but I wanted to document the code I wrote to support this on your page, it may be useful for another site someday, or who knows my Chris Pirillo will bring back Blaugh, it was a good web comic..

Here is the PHP I wrote to display the daily Blaugh Comic on my site..

Powered by Drupal - Design by artinet