Tag Archives: programming::code

Firewall Script

#!/bin/bash # a firewall script i wrote myself! # 06 Jan. 2003 # chkconfig: 2345 25 90 # description: packet filtering firewall _start() { # enable the kernel’s spoof protection echo 1 > /proc/sys/net/ipv4/conf/all/rp_filter # Delete old iptables rules # … Continue reading

Tagged | Leave a comment

Get an interface’s information

Here is a bit of code to get an interface’s information; including the interface name, and MAC address:

Tagged , | Leave a comment

Sonic.net Hotspot

Did I mention we are hosting a Sonic.net wireless hotspot? Well we are. I doubt that we will make any money off of it, because a. I haven’t told my neighbors about it, and b. I’m not sure how technically … Continue reading

Tagged , , | Leave a comment

alarmClock

I added an HFile for C to the CodeBeautifier plugin, and I want to see how it turns out. Click ‘continue reading’ to see the actual code. alarmClock is a program I wrote last semester for my Systems Programming course. … Continue reading

Tagged , | Leave a comment

Fun with powers of two

Here is one of the problems we had for Theory of Comp. and my solution. It’s an interesting problem, but really just a an excuse to try out the CodeBeautifier plugin for MT. 4)Write a computer program that finds the … Continue reading

Tagged , | 4 Comments