Archive for the ‘Uncategorized’ Category

DHCP server with DDNS

Wednesday, January 23rd, 2008

authoritative;
include “/etc/bind/rndc.key”;
server-identifier chunli.shocknetwork.com.;
ddns-domainname “shocknetwork.com.”;
ddns-rev-domainname “in-addr.arpa.”;
ddns-update-style interim;
ddns-updates on;
ignore client-updates;
zone shocknetwork.com. {
primary 127.0.0.1;
key rndc-key;
}
default-lease-time 21600; # 6 hours
max-lease-time 43200; # 12 hours
option domain-name “shocknetwork.com”;
option domain-name-servers chunli.shocknetwork.com, resolver1.opendns.com;
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option domain-name-servers chunli.shocknetwork.com, resolver1.opendns.com;
option domain-name “shocknetwork.com”;
option routers 192.168.0.1;
option broadcast-address 192.168.0.3;
default-lease-time 600;
max-lease-time 7200;
zone 0.168.192.in-addr.arpa. {
primary 192.168.0.3;
key rndc-key;
}
zone localdomain. {
primary 192.168.0.3;
key rndc-key;
}
}

/etc/named.conf –> I’m using Ubuntu 6, so it’s actually /etc/bind/named.conf and named.options, etc, but for the sake of simplicity, I’ll put them all together.
options {
directory “/var/cache/bind”;
auth-nxdomain no; # conform to RFC1035
};
zone “.” {
type hint;
file “/etc/bind/db.root”;
};
zone “localhost” {
type master;
file “/etc/bind/db.local”;
};
zone “127.in-addr.arpa” {
type master;
file “/etc/bind/db.127″;
};
zone “0.in-addr.arpa” {
type master;
file “/etc/bind/db.0″;
};
zone “255.in-addr.arpa” {
type master;
file “/etc/bind/db.255″;
};
controls {
inet 127.0.0.1 allow {localhost; } keys { “rndc-key”; };
};
// Add local zone definitions here.
zone “shocknetwork.com” {
type master;
file “/etc/bind/shocknetwork.com.zone”;
allow-update { key “rndc-key”; };
notify yes;
};
zone “0.168.192.in-addr.arpa” {
type master;
file “/etc/bind/0.168.192.in-addr.arpa.zone”;
allow-update { key “rndc-key”; };
notify yes;
};
include “/etc/bind/rndc.key”;

Some troubleshooting tips:

1) turn on logging for DNS:
logging {
category “default” { “debug”; };
file “/tmp/nameddbg” versions 2 size 50m;
print-time yes;
print-category yes;
};

That’s about it – it should give you all you need.]]>

Microsoft a "Thought Leader" in virtualization?

Monday, January 21st, 2008

http://arstechnica.com/news.ars/post/20 … ifted.html

The quote”

Quote:
Anytime I write about Microsoft and virtualization, someone e-mails me to remind me that Apple doesn’t allow the virtualization of its client OS, which would seem to make Microsoft a “thought leader” according to some of you. Others wonder if/when Cupertino would ever allow it.

What kind of bullshit is that!? The only time Microshaft ever got into Virtualization was when they bought the technology from Connectix back in the days! VMware was in the business way before that!

Here’s the whole whole bullshit article:
Microsoft relents: Vista consumer virtualization ban lifted
By Ken Fisher | Published: January 21, 2008 – 01:39PM CT

It only took them a year longer than it should have, but Microsoft has finally relented and approved the use of Windows Vista Basic and Premium Edition in virtualized environments, for both “consumers” and business users. Among other things, the change means that Mac and Linux users can now run Windows Vista in a VM without having to pay for the more expensive Business or Ultimate editions. This is a boon to anyone who needs virtualized environments for testing and development.

Related StoriesMicrosoft ditches about-face on virtualization restrictions at 11th hour
Virtual Iron goes 4.0
Viridian beta and Virtual Server 2005 R2 SP1 will miss target dates
Microsoft’s anti-virtualization stance: forget DRM, think Apple
“For consumers, Windows Vista Home Basic and Windows Vista Home Premium are now licensed for use in a virtual machine environment,” the company said in a statement. An updated end-user license agreement will be posted later at this location.

The move isn’t a total surprise, even if it is months late. The company came very close to repealing its ban last summer, only to inexplicably pull the plug at the last minute. On the record, Microsoft said that the ban stemmed from their view that virtualization “is not yet mature enough from a security perspective for broad consumer adoption.” To be frank, we never bought this excuse, because you could get the “maturity” needed to virtualize Vista for the $60+ premium that Business costs over and against Home Premium.

That debate is history now. The announcement kicks off Microsoft’s Virtualization Deployment Summit, which begins in earnest tomorrow. The company is also expected to tout several other developments for business virtualization over the two-day summit, including the acquisition of Calista Technologies and an expanded partnership with Citrix.

Microsoft is beating the virtualization drum hard, gearing up for what will likely be a protracted war with the perceived industry leader, VMWare. Microsoft’s message is going to be ease-of-use and cost. Bob Muglia, senior vice president of the Server and Tools Business at Microsoft, said in a statement that Microsoft estimates that “less than 5 percent of companies are utilizing virtualization technology because it is simply too cost-prohibitive and complex.” Microsoft argues that it has the most “economical” approach to virtualization from desktop to datacenter, and lowering the cost barrier on the client certainly helps. Still, while great news for users who want to virtualize Vista legally, and on the cheap, it’s still an open question when businesses will begin migrating to Vista in force, and if any of that migration will feature significant virtualization on the client end.

Cupertino, please start your copiers, please?!
Anytime I write about Microsoft and virtualization, someone e-mails me to remind me that Apple doesn’t allow the virtualization of its client OS, which would seem to make Microsoft a “thought leader” according to some of you. Others wonder if/when Cupertino would ever allow it.

It’s true that Apple doesn’t allow client virtualization, and I think I speak for just about everyone when I say that no one believes it’s likely to happen soon. Apple doesn’t even allow its customers the legal right to run its client OS on non-Apple computers, so virtualization is out of the question.

Apple, unlike Microsoft, is in the PC-selling business, and unlike Microsoft, Apple uses a set of technological access controls to prevent its OS from running on unauthorized hardware. Why? Apple doesn’t want you, me, and every other reader of this site to do what they know we’d do: run out and build our own “Macs.” If you want OS X, Apple wants you to buy a Mac, period. With the company’s notorious focus on control and design, we don’t see this changing any time soon.]]>

Re: UFC 80 picks

Saturday, January 19th, 2008

Damn … I went 1 for 3. I was actually rooting for Jones. I just thought he might not have enough juice in him to pull it off. Good cards overall. I liked the ko of the Russian, the BJ fight was awesome, and the 2 KOs from the UFC were cool too. Nice exciting day for fights.

Right click and "send to" Notepad or Wordpad …

Friday, January 18th, 2008

Stolen from here: http://www.petri.co.il/send_to_notepad_shortcut.htm

How can I quickly send files to Notepad for quick editing?

This is one of my favorite tweaks, and it will amaze you how you lived all these years without knowing it (or did you? you wouldn’t be here if you did…)

The easiest way of all is to do the following:

1. Go to %SystemDrive%\documents and settings\%username%\sendto (or \Windows\SendTo in Win9X).
2. Right-click in the right hand panel and select New > Shortcut
3. Create a new shortcut to Notepad.exe in the sendto folder.

Now if you right-click any REG, TXT, VBS, CMD, DAT, NFO etc. file, you can choose the Send To menu and send the file to Notepad which will immediately open it for editing.]]>

FlickrDown is kix azz!

Friday, January 18th, 2008

I was tired of downloading pictures one at a time from someone’s flickr page and so I searched the web for a good program to do it. It will download the highest resolution pictures from someone’s photo sets. It works with a proxy server too! Sitesnagger or wget would download way too much stuff! This application is awesome!

Here’s where you can get it:
http://greggman.com/pages/flickrdown.htm

One for technical support …

Thursday, January 17th, 2008

roses are red violets are blue, we dont know what we’re doing and it s-cks to be you

basic cpio usage

Thursday, January 17th, 2008

to make an archive
find . -print|cpio -ocv > output.cpio

to list
cpio -itv < output.cpio

to extract
cpio -iuvd < output.cpio

command line ldapsearch for AD

Thursday, January 17th, 2008

Re: Upgrade from Windows Vista to XP!

Thursday, January 17th, 2008

I know so many people who’ve gone back to XP it’s not even funny anymore. I upgraded my laptop to Vista before my trip last March and couldn’t WAIT to get back home to uninstall it. It really is pathetic. I’m sure that SP1 will fix hundreds of issues, if not thousands. It pissed me off to no end that it would take minutes to copy a simple 1kb file, really pissed me off … and when you tried to cancel, the damn window would turn grey and hang for more minutes! Kinda crap is that?!?

I also read that in Vista SP1 MSFT is reverting to displaying the actual RAM on a x32 machine, instead of the amount that the BIOS returns. Alas, XP SP2 still has this issue of not displaying the actual memory (on my system it shows that I have 3.25gb when I in fact have 4gb.) Where the missing 750mb is is for another day.

Some guidance for your 401K funds.

Thursday, January 17th, 2008

Anyways, I wrote a little script that would download the stats from http://finance.google.com to grab the last day, month, 3 month, and ytd data and then put it into a CSV, so I can sort it and decide which funds to pick from.

Here’s how:
1) Create a file with all of the funds in it. Mine from Sun looks like this (I call mine sunw.txt):
WATFX
VBAIX
VIIIX
FCNTX
GSTIX
SSHFX
LLPFX
HWMIX
NBGIX
TMGFX
USRLX
FDIVX
DRGTX
VTINX
VTOVX
VTENX
VTXVX
VTWNX
VTTVX
VTHRX
VTTHX
VFORX
VTIVX
VFIFX

Here’s the script:
#!/bin/bash
rm -rf output.txt
mkdir tmp
cd tmp
rm -rf *
echo symb,day,month,threemonth,ytd > ../output.txt
for i in `cat ../sunw.txt`;
do
echo $i
wget -c -N “http://finance.google.com/finance?q=$i”
day=`grep -3 “1