?

Log in

   
2008-10-24 15:26
 
mood: productive
Remote forwards are useful. sshd's GatewayPorts option is off by default. Annoying. Here's a function to do a remote forward that binds to *, ignoring GatewayPorts. You need to have a pubkey on the remote machine (and, obviously, a shell). This uses bashisms.
remote-forward() {
    if [[ ${#@} -lt 3 ]]; then
        echo "Usage: $0 local-port remote-host remote-port [intermediate-port]"
        echo "Set up a remote forward to an sshd where GatewayPorts is off"
        echo "Will forward remote-host:remote-port to localhost:local-port"
        echo "If unspecified, intermediate-port is random [30000,60000)"
        return
    fi
    local mid
    if [[ -z "$4" ]]; then
        mid=$((RANDOM % 30000 + 30000))
    else
        mid=$4
    fi
    ssh -AfR ${mid}:localhost:$1 $2 -- ssh -gfNL ${3}:localhost:${mid} localhost
}
 
     Post
 
   
2008-10-16 23:07
 
mood: satisfied
Just thought I'd mention that, at long last, my config files are up and public.

http://github.com/novas0x2a/config-files

Also. Hi, xb95! I'm posting again ;)
 
     Read 2 - Post
 
Django Google Bait   
2008-09-26 19:52
 
mood: accomplished

Django is nifty, but I’ve been trying to use vim’s omnicomplete with it, and it fails miserably. That’s because django loads most of itself on demand. This is a good thing, except when you’re trying to get it to load everything so your code-completer can find it in memory.

The commented out bit abouts Apps doesn’t quite work yet... but it puts the names of all the apps into django’s namespace inside vim’s python instance, so they can be completed. This doesn’t really do what I want, though. I want to stick it into __builtins__, but that doesn’t work, I assume because the completion function does something magical with __builtins__. Oh well. Maybe I’ll get it to work later.

This requires that you have PYTHONPATH set to your project directory (the one with settings.py in it)

SolutionCollapse )
 
     Read 1 - Post
 
NXT-FS 0.0001   
2007-12-28 02:42
 
mood: rejuvenated
Milestone 1 for NXT-FS:
  • Can mount the fs
  • All nearby Lego NXTs (bluetooth or USB) are discovered and displayed as directories
mike@whirl:~/code/nxtfs> ./nxtfs.py mnt
mike@whirl:~/code/nxtfs> ls mnt
total 512
drwxr-xr-x 2 root root   0 1969-12-31 16:00 Orphu
-r--r--r-- 1 root root 104 1969-12-31 16:00 socks
mike@whirl:~/code/nxtfs> cat mnt/socks
name[Orphu]
    size[111980]
    sock[Bluetooth (00:16:53:02:7F:EA)]
    brick[<nxt.brick.Brick object at 0x89b650>]
 
     Post
 
glasses 0.01   
2007-09-09 17:06
  This is my work in progress computer vision app. Enjoy.

Glasses 0.01

Screenshot behind the cutCollapse )
 
     Post
 
Me, Summarized   
2007-03-05 01:08
 
mood: giggly
 
     Read 2 - Post
 
   
2007-01-16 01:38
 
mood: tired
Become a Lord, Lady, Baron or Baroness of Sealand.
 
     Read 3 - Post
 
   
2006-11-13 01:19
 
mood: giggly
Re: the last two battlestar episodes

the cylons run an open ap without mac address matching

“I’d sniff her packets”
“So say we all”

... okay, i’m done. bed before work.
 
     Read 1 - Post
 
   
2006-10-05 03:47
 
mood: weird
In the category of things that are extremely disturbing... http://www.youtube.com/watch?v=AWatc5U8RC4
 
     Post
 
   
2006-09-08 02:22
 
mood: amused


 
     Post
 
   
2006-08-26 00:02
 
mood: giggly
A few of the "700 things Mr. Welch can no longer do during an RPG"

20. Polka is not appropriate marching music.
25. The green elf does not need food badly.
26. Valley speak has no place in a fantasy setting. Especially if you're the paladin.
55. Before facing the dragon, not allowed to glaze the elf
83. My gnome does not like big butts and he cannot lie.
88. My bard does not get a bonus to perform if she is obviously not wearing anything under her tabard.
122. The paladin's alignment is not Lawful Anal.
182. No figuring out the plot and killing the actual villain five minutes into the adventure.
190. Duel wielding small animals is strictly forbidden.
224. I cannot insinuate elf chicks are all easy, even though you never hear about a half gnome do you?
278. Anything the DM has to ponder the full impact of for more than a minute is forbidden.
 
     Post
 
   
2006-08-14 21:40
 
mood: okay
 
     Read 3 - Post
 
   
2006-08-09 18:06
 
mood: sad
Hi Mike,

XXXXXX and I would like to thank you for your interest in Google and for interviewing with us. After carefully reviewing your interview results, we have determined that you are not a strong match for this position. However, we want you to know that we think you have strong professional qualifications.

We certainly hope that, in the future, a position at Google arises that will be a better fit. Please keep us in mind as your career progresses, and we look forward to discussing future opportunities at Google with you.
 
     Read 5 - Post
 
   
2006-08-01 03:35
 
mood: intimidated
Next Google Step: 45-minute phone interview with a Google engineer.
Scheduled: Wednesday @ 10am (PST).
 
     Read 2 - Post
 
   
2006-07-27 11:37
 
mood: nervous
Google Application Process: Part 2: Completed

Next Part: 45-minute phone interview with a Google engineer
 
     Read 3 - Post
 
   
2006-07-26 03:07
 
mood: optimistic
Google wants to interview me
(*What?*)
GOOGLE WANTS TO INTERVIEW ME
... oh, crap. Google wants to interview me.
 
     Read 10 - Post
 
   
2006-07-25 21:22
 
mood: creative
Mine:
 
     Post
 
   
2006-07-21 06:13
 
mood: giddy
My glee is palpable. No, literally. I have to sponge it off.

Yes, Yes they are.
 
     Read 1 - Post
 
   
2006-07-19 22:25
 
mood: amused
In AD 1985 Calvin Was Beginning
 
     Post
 
   
2006-07-19 21:41
 
mood: amused
Every one of these is a winner.
 
     Read 1 - Post