Skip to content

Instantly share code, notes, and snippets.

@trusch
trusch / grunttask.js
Last active February 4, 2016 12:03
Grunttask to generate a stylus file from an icon folder
var walk = require('fs-walk');
var fs = require('fs');
grunt.registerTask('generateIconStylus', 'generate a stylus file with all icons', function task() {
console.log('run it');
var done = this.async();
var fd = fs.open('src/atoms/icons.styl', 'w', function(err,fd){
fs.writeSync(fd,".icon\n");
walk.walk('src/images/icons', function (basedir, filename, stats, next) {
var data = fs.readFile(basedir+'/'+filename, 'utf8', function(err,data){
var name = filename.replace(/\.[^/.]+$/, "");
package main
import (
"log"
"crypto/aes"
"crypto/cipher"
"flag"
"os"
"io"
"compress/gzip"
package main
import (
"encoding/json"
"log"
"net/http"
"strconv"
"time"
)

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:

// -*- 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 (
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
(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/")))))
package main
import (
"encoding/json"
"net/http"
"strconv"
"github.com/guptarohit/asciigraph"
)
#!/bin/bash
NAMESPACE=usecaseapp
SERVICE=usecaseapp
cat <<EOF | cfssl genkey - | cfssljson -bare server
{
"hosts": [
"${SERVICE}.${NAMESPACE}.svc.cluster.local"
],