Skip to content

Instantly share code, notes, and snippets.

View jscharber's full-sized avatar

John Scharber jscharber

  • NimbleBrain
  • Silicon Valley, CA
View GitHub Profile

SonarCloud API Examples

All examples use curl Sonarcloud API

Object relationships

Organizations contain projects. When you set up your SonarCloud account, a default organization is created. You can create new organizations via the user interface. There appears to be no method of creating an organization via the API. org -> projects

@jscharber
jscharber / go-code-text.go
Created August 13, 2019 18:02
go-code-test
// List available templates
func tplGet(tplListOption string) tplListResponse {
tplTLD := []string{"crd", "microservices", "serverless"}
tplSLD := []string{"ga", "experimental", "incubation"}
var response tplListResponse
for _, tld := range tplTLD {
for _, sld := range tplSLD {
dn := defaultTemplateDir + "/" + tld + "/" + sld
if _, err := os.Stat(dn); os.IsNotExist(err) {

Microk8s with OpenFaas and local docker repository

set up k8s configuration

Kubernetes stores if configuration data in $HOME/.kube/config. Start by saving the microk8s.config there

cd $HOME/.kube
microk8s.config > config

Install helm with --classic option