Skip to content

Instantly share code, notes, and snippets.

@earzur
earzur / infinispan.xml
Created May 13, 2020 08:27
infinispan config for a keycloak service running in rancher
<subsystem xmlns="urn:jboss:domain:infinispan:9.0">
<cache-container name="keycloak">
<transport lock-timeout="60000"/>
<local-cache name="realms">
<object-memory size="10000"/>
</local-cache>
<local-cache name="users">
<object-memory size="10000"/>
</local-cache>
<local-cache name="authorization">
@earzur
earzur / vpc_delegation.tf
Created May 6, 2020 20:52
délégation sur deux zones privées sur des comptes / VPC différends
provider "aws" {
alias = "target"
region = var.aws_region
version = ">= 2.7.0"
assume_role {
role_arn = "arn:aws:iam::${var.account_id}:role/OrganizationAccountAccessRole"
}
}
@earzur
earzur / Dockerfile
Created November 20, 2018 12:13
change keycloak database settings to use mysql
FROM jboss/base-jdk:8
ENV KEYCLOAK_VERSION 3.4.3.Final
# Enables signals getting passed from startup script to JVM
# ensuring clean shutdown when container is stopped.
ENV LAUNCH_JBOSS_IN_BACKGROUND 1
ENV PROXY_ADDRESS_FORWARDING false
ENV LOGSTASH_GELF_VERSION 1.11.2
@earzur
earzur / gist:4e3720e89e4fca30a679bd21d01f01ac
Created June 25, 2018 10:53
terraform s3 bucket provisionning with KMS
resource "aws_kms_key" "terraform_key" {
description = "key used for encrypting data in terraform provisionned bucket(s)"
deletion_window_in_days = 10
}
resource "aws_s3_bucket" "terraform_s3" {
bucket = "xxxxx-terraform-s3"
versioning {
enabled = true
@earzur
earzur / output.txt
Last active June 9, 2016 16:07
ansible template variable substitution issue
ansible-playbook ./test_to_yaml.yml
PLAY ***************************************************************************
TASK [user as dict - OK] *******************************************************
ok: [localhost] => {
"user": {
"complex": {
"embed": {
"1st_name": "Doe",

Keybase proof

I hereby claim:

  • I am earzur on github.
  • I am zuzur (https://keybase.io/zuzur) on keybase.
  • I have a public key whose fingerprint is 8305 9E82 97A3 F63B C06D 99F7 F114 9C6D E570 A440

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am zuzur on github.
  • I am zuzur (https://keybase.io/zuzur) on keybase.
  • I have a public key whose fingerprint is 8305 9E82 97A3 F63B C06D 99F7 F114 9C6D E570 A440

To claim this, I am signing this object:

@earzur
earzur / gist:c0c0b1a5bf35621a0e36
Last active August 29, 2015 14:11
R one liner
download.file('https://d396qusza40orc.cloudfront.net/getdata%2Fdata%2FGDP.csv','gdp.csv',method='curl')
gdp <- read.csv('gdp.csv')
x <- mean(as.numeric(sapply(gdp[5:194,5],function(x) paste0(unlist(strsplit(gsub('\"| ','',x),',')),collapse=''))))
|ruby-1.9.3-p374@chef-privowny| moody2-2 in ~/dev/privowny/chef-repo
± |master ✗| → gem depend chef
Gem chef-10.26.0
bunny (< 0.8.0, >= 0.6.0)
erubis (>= 0)
highline (>= 1.6.9)
json (<= 1.7.7, >= 1.4.4)
mixlib-authentication (>= 1.3.0)
mixlib-cli (>= 1.1.0)
mixlib-config (>= 1.1.2)