Skip to content

Instantly share code, notes, and snippets.

View AlekSi's full-sized avatar
🕊️

Alexey Palazhchenko AlekSi

🕊️
View GitHub Profile
@AlekSi
AlekSi / new.go
Last active December 15, 2015 20:19 — forked from mitchellh/new.go
// This is a dead simple wrapper that can have setuid set on it so that
// the sudo helper is run as root. It is expected to run in the same CWD
// as the actual Ruby sudo helper. Any arguments to this script are forwarded
// to the Ruby sudo helper script.
package main
import (
"log"
"os"
"path/filepath"
@AlekSi
AlekSi / new.go
Created April 5, 2013 07:33 — forked from mitchellh/new.go
// This is a dead simple wrapper that can have setuid set on it so that
// the sudo helper is run as root. It is expected to run in the same CWD
// as the actual Ruby sudo helper. Any arguments to this script are forwarded
// to the Ruby sudo helper script.
package main
import (
"fmt"
"os"
"path/filepath"
package main
import (
"labix.org/v2/mgo"
"html/template"
"net/http"
"log"
"./signup"
)