Skip to content

Instantly share code, notes, and snippets.

Avatar

João Antonio Ferreira joao-parana

View GitHub Profile
@joao-parana
joao-parana / .block
Created Mar 28, 2018 — forked from mbostock/.block
Chord Diagram
View .block
license: gpl-3.0
height: 960
border: no
View BasicAuthenticationFilter.java
package com.neolitec.examples;
import org.apache.commons.codec.binary.Base64;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.*;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@joao-parana
joao-parana / USING-VAULT.md
Created Oct 2, 2015 — forked from voxxit/USING-VAULT.md
Consul + Vault + MySQL = <3
View USING-VAULT.md
git clone https://gist.github.com/dd6f95398c1bdc9f1038.git vault
cd vault
docker-compose up -d
export VAULT_ADDR=http://192.168.99.100:8200

Initializing a vault:

vault init
View MyListenerAndMyEntityWithListener
package model.entity;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.Id;
@Entity @EntityListeners(MyListener.class)
public class MyEntityWithListener {
@Id
private long id;