Author Archive for Jason

Page 2 of 5

Privacy Policy

Any data collected is used to personalize and correctly serve automated requests back to the requester.
Any information stored is secured from all outside access.

Linux firewall made easy (UFW-Uncomplicated Firewall)

I have just installed Ubuntu 10.10 and was searching around for the simplest way to enable a basic firewall. Instead of messing around with iptables, I’ve found a program called ufw to be a much simpler way of managing your firewall. Just install it from apt, set up a couple simple rules, and let it do it’s magic.

If you don’t already have ufw installed then run this first.

apt-get install ufw

First ufw command is to deny everything by default. (It won’t boot you until you enable it.)

ufw default deny

Next is to tell it what ports to allow traffic into. You can either use predefined application profiles or just specify the port numbers directly.
Using profiles:

ufw allow 'Apache Full'
ufw allow 'OpenSSH'

Or if you just want to use port numbers:

ufw allow 80,443/tcp
ufw allow 22/tcp

And now to enable the firewall, and also save the settings for reboot.

ufw enable

There you have it. Visit this help page for more examples and info.

Website Links

DenvilleBootCamp.com
LookingBackAtTheWaves.com
SkinKreations.com
VoteVolk.com

VBulletin Hack: Display Random Logo

This hack will randomly change the forum logo for users randomly every (images/1000) times.
If you have five images then there is a 5 in 1000 or 1 in 200 chance the user will see a “changed” logo.

It usually freaks people out and is a lot of fun.
Works on vBulletin 3.6 and above.

You will need to edit the image url’s as you need. For examples I added in 3 images named logo_random1.jpg through logo_random3.jpg

//random logo hack 1.0, created by jason volk <jason@teknidude.com>
$rnd_pics = Array(
  "/forums/misc/skin/logo_random1.jpg",
  "/forums/misc/skin/logo_random2.jpg",
  "/forums/misc/skin/logo_random3.jpg",
  );
//pick random number
if (($rnd_i=rand(0,1000))<count($rnd_pics))
  $stylevar['titleimage']=$rnd_pics[$rnd_i];
unset($rnd_i,$rnd_pics);  //clear used vars

Notice: Missing DLL or OCX errors

Most of these programs are a couple years old and were originally made with Visual Basic 6 for Windows XP.
If you are using Win7 or Vista then you will most likely need the VB6 runtime files or else some missing DLL & OCX errors will pop up.