Skip to content

Instantly share code, notes, and snippets.

@chadlung
chadlung / Barbican-DevStack
Created February 6, 2014 00:13
Running Barbican with DevStack (pre-Barbican entry into DevStack)
$ sudo apt-get update
$ sudo apt-get install git -y
$ git clone https://github.com/chadlung/devstack.git
$ ./devstack/tools/create-stack-user.sh
$ mv devstack/ /opt/stack/
$ chown -R stack:stack /opt/stack/devstack/
$ su - stack
$ cd /opt/stack/devstack/
@chadlung
chadlung / barbican.yaml
Last active August 29, 2015 13:56
Proposed modfication to ..zuul/layout.yaml and for Barbican incubation and ../zuul/barbican.yaml (changes based on Solum's infra entry)
# ***** COMMENTS (comments will not appear in actual file) *******
# THIS IS A NEW FILE (based on Solum's entry into infra)
# https://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/files/jenkins_job_builder
# /config/barbican.yaml
# These changes also require Barbican's repo to include a structure like Solum did here:
# https://github.com/stackforge/solum/tree/master/functionaltests
- job:
name: gate-barbican-devstack-dsvm
node: devstack-precise
@chadlung
chadlung / config.json
Created October 13, 2014 22:18
Viper Configuration Example
{
"msg": "Hello World"
}
@chadlung
chadlung / step1-main.go
Created July 6, 2015 16:12
Go: Simple, Easy, Fast - Building a Go (golang) REST Service with Gorilla - Step 1: http://www.giantflyingsaucer.com/blog/?p=5635
package main
import (
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
@chadlung
chadlung / step2-main.go
Created July 6, 2015 21:59
Go: Simple, Easy, Fast - Building a Go (golang) REST Service with Gorilla - Step 2: http://www.giantflyingsaucer.com/blog/?p=5635
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
@chadlung
chadlung / step3-main.go
Created July 6, 2015 22:34
Go: Simple, Easy, Fast - Building a Go (golang) REST Service with Gorilla - Step 3: http://www.giantflyingsaucer.com/blog/?p=5635
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
@chadlung
chadlung / step4-main.go
Created July 6, 2015 23:06
Go: Simple, Easy, Fast - Building a Go (golang) REST Service with Gorilla - Step 4: http://www.giantflyingsaucer.com/blog/?p=5635
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
@chadlung
chadlung / step5-main.go
Last active April 3, 2018 04:04
Go: Simple, Easy, Fast - Building a Go (golang) REST Service with Gorilla - Step 5: http://www.giantflyingsaucer.com/blog/?p=5635
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"github.com/gorilla/mux"
)
@chadlung
chadlung / main.go
Last active September 24, 2015 22:13
package main
import (
"fmt"
"log"
"github.com/spf13/viper"
_ "github.com/spf13/viper/remote"
)
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println("hello...")
fmt.Println("MYVAR:", os.Getenv("MYVAR"))