Skip to content

Instantly share code, notes, and snippets.

👨‍💻
ʕʘ̅͜ʘ̅ʔ – ʕ•̫͡•ʕ*̫͡*ʕ•͓͡•ʔ-̫͡-ʕ•̫͡•ʔ

Enrico Stahn estahn

👨‍💻
ʕʘ̅͜ʘ̅ʔ – ʕ•̫͡•ʕ*̫͡*ʕ•͓͡•ʔ-̫͡-ʕ•̫͡•ʔ
Block or report user

Report or block estahn

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View resource-labels.rego
package test
passed { not deny }
deny {
not input.metadata.labels.customer
}
@estahn
estahn / go.mod
Last active Dec 10, 2018
Testing testify with Go mod
View go.mod
module github.com/estahn/testify-test
View keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

View kubectl-update
#!/bin/sh
KUBECTL=$(which kubectl)
echo "CURRENT VERSION:"
kubectl version
echo ""
curl -o ${KUBECTL} -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/darwin/amd64/kubectl
chmod 755 ${KUBECTL}
View kube-ingress.yml.tmpl
#
# ingress config for hip-new
#
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: hip-new
annotations:
ingress.kubernetes.io/path-is-regex: "true"
View cloudformation.j2
#
# Cloudformation Macros
#
# This file contains macros for Cloudformation templates.
# The goal is to reduce the amount of code that needs to be written.
#
#
# Macro to generate Cloudformation section "Metadata"
#
View create.js
var handler = require('lambda-formation').resource.create;
var util = require('lambda-formation').util;
// var logger = require('lambda-formation').logger;
var aws = require("aws-sdk");
var uuidV4 = require('uuid/v4');
/**
* Creates a Hosted Zone and supports delegation sets
*
* Type: "AWS::Route53::HostedZone"
@estahn
estahn / metabase.service
Last active Jun 3, 2019
Systemd file for Metabase
View metabase.service
[Unit]
Description=Metabase server
After=syslog.target
After=network.target
[Service]
WorkingDirectory=/home/data/tools/metabase
ExecStart=/usr/bin/java -jar /home/data/tools/metabase/metabase.jar
Environment=MB_JETTY_PORT=8080
User=data
@estahn
estahn / create.js
Last active May 19, 2017
lambda-formation Custom::Route53::HostedZone
View create.js
var handler = require('lambda-formation').resource.create;
var util = require('lambda-formation').util;
var aws = require("aws-sdk");
var uuidV4 = require('uuid/v4');
/**
* Creates a Hosted Zone and supports delegation sets
*
* Type: "AWS::Route53::HostedZone"
* Properties:
View domain01.yml
---
AWSTemplateFormatVersion: '2010-09-09'
Metadata:
Version: 1
LastUpdated: 2017-05-16 16:58:35
UpdatedBy: estahn
Comments: Generated by cfn-ansible
Description: >
You can’t perform that action at this time.