Skip to content

Instantly share code, notes, and snippets.

View ivoleitao's full-sized avatar
🏠
Working from home

Ivo Leitão ivoleitao

🏠
Working from home
View GitHub Profile
@ivoleitao
ivoleitao / example.puml
Created February 16, 2019 13:59 — forked from QuantumGhost/example.puml
A simple template for PlantUML to draw ER diagram. The basic idea comes from http://plantuml.sourceforge.net/qa/?qa=331/database-modeling
@startuml
' uncomment the line below if you're using computer with a retina display
' skinparam dpi 300
!define Table(name,desc) class name as "desc" << (T,#FFAAAA) >>
' we use bold for primary key
' green color for unique
' and underscore for not_null
!define primary_key(x) <b>x</b>
!define unique(x) <color:green>x</color>
!define not_null(x) <u>x</u>
@ivoleitao
ivoleitao / Automated TLS certificates on k8s.md
Created February 17, 2018 23:51 — forked from hardbyte/Automated TLS certificates on k8s.md
Free automated TLS certificates on k8s

At N1 Analytics we use Kubernetes for running experiments, continuous integration testing and deployment. In this post I document setting up a Kubernetes cluster to automatically provision TLS certificates from Let's Encrypt using Jetstack's Certificate Manager, the helm package manager and the nginx-ingress controller.

I wrote this after migrating our cluster from traefik to use cert manager and nginx-ingress. The end state will be one where we can create Kubernetes ingress with a TLS certificate with only a set of annotations in the respective helm template.

I'm going to assume some background knowlege for this post, if you haven't heard of Let's Encrypt and Kubernetes - you may want to read up on those first! To follow a

@ivoleitao
ivoleitao / gist:95fa12c21a8031044277474b9eb761eb
Created May 6, 2017 00:57 — forked from rkettelerij/gist:7427673
OrientDB feature for Apache Karaf
<?xml version="1.0" encoding="UTF-8"?>
<features name="features" xmlns="http://karaf.apache.org/xmlns/features/v1.0.0">
<feature name='orientdb' version='1.6'>
<bundle>mvn:com.orientechnologies/orient-commons/1.6</bundle>
<bundle>mvn:net.java.dev.jna/jna/4.0.0</bundle>
<bundle>mvn:org.apache.geronimo.specs/geronimo-jpa_2.0_spec/1.1</bundle>
<bundle>mvn:org.javassist/javassist/3.18.1-GA</bundle>
<bundle>mvn:com.orientechnologies/orientdb-nativeos/1.6</bundle>
<bundle>mvn:com.orientechnologies/orientdb-core/1.6</bundle>
<bundle>mvn:com.orientechnologies/orientdb-object/1.6/bundle</bundle>