Skip to content

Instantly share code, notes, and snippets.

View wilsonfv's full-sized avatar

Wilson Mo wilsonfv

  • Guang Zhou, China
View GitHub Profile
@kikitux
kikitux / Vagrantfile
Last active June 25, 2023 10:23
Vagrantfile, multi machine with ssh password less and hostname over private network.
numnodes=2
baseip="192.168.10"
#global script
$global = <<SCRIPT
#check for private key for vm-vm comm
[ -f /vagrant/id_rsa ] || {
ssh-keygen -t rsa -f /vagrant/id_rsa -q -N ''
}
@narate
narate / rest-mongo.go
Last active May 26, 2020 10:07
Golang RESTful with MongoDB
// created by : Narate Ketram
package main
import (
"fmt"
"github.com/ant0ine/go-json-rest"
"labix.org/v2/mgo"
"labix.org/v2/mgo/bson"
"net/http"