Dan’s View

2009/04/21

whois?

Filed under: Geek — Tags: , — dan @ 20:11

“If your ISP has registered with the appropriate databases, our servers are updated on a regular basis so you will have to wait until the next refresh to gain access.”

Would you interpret that to mean they are using whois lookups on IP addresses/blocks to check its location for limiting content to certain contries?

2009/04/13

Testing

Filed under: life — Tags: — dan @ 17:55

So is it a test? No. It is something I have been pondering for a while. It never really gives me anything, it just provides me with something to-do, but it apparently could cause some illness. What I hear you say! Like all the other things that might cause illness? Well I don’t know if they do or don’t. Just that I have avoided one substance the past 80 or so hours. At the same time though I do miss it, it was my always with friend. (Now that just sounds a bit psyco, but some people might understand what I mean.) I am gonna see how long I can mange to go without.

2009/04/09

Unbuffered patch for aircrack-ng

Filed under: Geek,WIFI,linux — Tags: , — dan @ 18:42

If like me you like to pipe things around in the shell then when I looked at aircrack-ng I wanted to script using it. Therefore I wrote a simple patch for the current version that disables buffering to allow the stdout/err to act like they are writing to a log file so good for timely greping around in a bash script. Once I have my WEP scripts polished I will post them up. :)

You can find the patch here.

Use ssh ControlMaster to improve speed of connection time

Filed under: Geek,Server,linux — Tags: , — dan @ 18:02

I often work on many machines and end up with multiple sessions to each. Therefore I finally got around to checking out the ControlMaster and ControlPath configuration of ssh. I added the following to my ~/.ssh/config which is for a virtual machine I use on my laptop, so no network issues in play.

Host vm
 Hostname 192.168.100.101
 User dan
 ControlMaster auto
 ControlPath /Users/dan/.ssh/master-vm

Then in a terminal I ran the following, twice. Once on its own then with an ssh session running in another terminal.

for X in `seq 1 5`; do time ssh vm "pwd; uptime; hostname;" >/dev/null; done;

Without avg.: 0.268s
With avg.: 0.035s

I think that is quite impressive.

For the raw terminal output, please see here.

Update

Of course you can do this dynamically.

Host *
   ControlMaster auto
   ControlPath ~/.ssh/master-%r@%h:%p

Then each socket will be used only when the user, host and port are the same.

Powered by WordPress