Skip to content

Instantly share code, notes, and snippets.

package main
import (
"fmt"
"go/ast"
"go/parser"
)
func main() {
expr := "or(eq(a,1),eq(a,2))"
#!/bin/bash
NAMESPACE=usecaseapp
SERVICE=usecaseapp
cat <<EOF | cfssl genkey - | cfssljson -bare server
{
"hosts": [
"${SERVICE}.${NAMESPACE}.svc.cluster.local"
],
package main
import (
"encoding/json"
"net/http"
"strconv"
"github.com/guptarohit/asciigraph"
)
(require 'package)
(let* ((no-ssl (and (memq system-type '(windows-nt ms-dos))
(not (gnutls-available-p))))
(proto (if no-ssl "http" "https")))
;; Comment/uncomment these two lines to enable/disable MELPA and MELPA Stable as desired
(add-to-list 'package-archives (cons "melpa" (concat proto "://melpa.org/packages/")) t)
;;(add-to-list 'package-archives (cons "melpa-stable" (concat proto "://stable.melpa.org/packages/")) t)
(when (< emacs-major-version 24)
;; For important compatibility libraries like cl-lib
(add-to-list 'package-archives '("gnu" . (concat proto "://elpa.gnu.org/packages/")))))
Context: gke_contiamo.com:contiamo_europe-west3-a_cluster-2
Cluster: gke_contiamo.com:contiamo_europe-west3-a_cluster-2
Namespace: 00000000-0000-4000-0000-00000000000a
Pods (20)
Name Status Ready Restarts Age
alertmanager-677bc946b5-f6vsl CreateCon… 0/1 0 12d
Name: alertmanager
Namespace: 00000000-0000-4000-0000-00000000000a
Image: prom/alertmanager:v0.15.0-rc.0
// -*- mode:go;mode:go-playground -*-
// snippet of code @ 2018-04-26 11:36:33
// === Go Playground ===
// Execute the snippet with Ctl-Return
// Remove the snippet completely with its dir and all files M-x `go-playground-rm`
package main
import (
// -*- mode:go;mode:go-playground -*-
// snippet of code @ 2018-04-26 11:36:33
// === Go Playground ===
// Execute the snippet with Ctl-Return
// Remove the snippet completely with its dir and all files M-x `go-playground-rm`
package main
import (

Keybase proof

I hereby claim:

  • I am trusch on github.
  • I am trusch (https://keybase.io/trusch) on keybase.
  • I have a public key ASCRIwlrIHpaXOHI79YKJnRD_aZnemju503M_dnk7ACozgo

To claim this, I am signing this object:

package main
import (
"encoding/json"
"log"
"net/http"
"strconv"
"time"
)
package main
import (
"log"
"crypto/aes"
"crypto/cipher"
"flag"
"os"
"io"
"compress/gzip"