This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import os | |
import sys | |
import urllib | |
import http.server | |
class Handler(http.server.SimpleHTTPRequestHandler): | |
def do_GET(self): | |
urlparts = urllib.parse.urlparse(self.path) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"gogobservice" | |
"net/rpc" | |
"net" | |
"log" | |
) | |
func main() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
process := make(chan *feat.Feature) | |
buffer := make(chan *feat.Feature, 1000) | |
wg := new(sync.WaitGroup) | |
if *cores < 2 { | |
*cores = 2 | |
} | |
for i := 0; i < *cores-1; i++ { | |
go func(){wg.Add(1); processServer(intervalTree, process, buffer); wg.Done()} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func Launch(vbox *VBoxSpec, statusch chan<- *VmStatus, quitch <-chan bool) { | |
go func() { | |
vboxPath := main.Config["VboxPath"] | |
vboxHeadlessBin := fmt.Sprintf("%s/VBoxHeadless", vboxPath) | |
statusch <- VmStatus{vbox, VMSTATUS_LAUNCHING} | |
var stdoutFilePtr *File | |