Welcome

Hi, And Welcome to my blog.. In case you were wondering.. This is just another geek blog.. You will find anything from personal entries, to techy/geeky stuff here.. Enjoy, and feel free to comment on any of the articles.

-Steve

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..

Rejecting routes - One way to stop abusers.

Rejecting a route, or null routing is a quick and easy way to stop a DOS or prevent someone from accessing your server. Now I should warn you, this is not a great solution, but it works. There are better ways of doing this with firewall rules.

Mounting ISO Images using the loopback device.

Mounting an ISO image via the loopback device, so that you can view/edit the files before burning a CD/DVD.

I found this text on a download page at http://www.linuxhelp.net/linux_downloads/

Once you've downloaded an ISO Image you can mount it as a loopback device. This will give you access to the files in the ISO without you having to burn it to a CDROM first. In order to do this you must have loopback compiled into your Linux Kernel. (Most newer distributions will have this enabled by default).

Powered by Drupal - Design by artinet