Skip to content

Instantly share code, notes, and snippets.

View jscharber's full-sized avatar

John Scharber jscharber

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) {

OpenFaas with kakfa triggers on microk8s

Clone the repo from GitHub

git clone git@github.com:openfaas-incubator/kafka-connector.git
Cloning into 'kafka-connector'...
Warning: Permanently added the RSA host key for IP address '192.30.255.113' to the list of known hosts.

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