Skip to content

Instantly share code, notes, and snippets.

View iarenaza's full-sized avatar

Iñaki Arenaza iarenaza

View GitHub Profile
@iarenaza
iarenaza / testkeycloak.py
Last active October 4, 2019 15:04
testkeycloak.py
#!/usr/bin/env python
# You need to install python-keycloak for this to work. Do:
#
# pip install python-keycloak
#
# first
from keycloak import KeycloakOpenID
@iarenaza
iarenaza / moodle-35-glossary-bug-multilang-filter.diff
Last active March 25, 2019 15:11
moodle-35-glossary-bug-multilang-filter.diff
diff --git a/filter/glossary/filter.php b/filter/glossary/filter.php
index 1f2591836a1..53f5a68d8ae 100644
--- a/filter/glossary/filter.php
+++ b/filter/glossary/filter.php
@@ -125,7 +125,7 @@ class filter_glossary extends moodle_text_filter {
if ($concept->category) { // Link to a category.
$title = get_string('glossarycategory', 'filter_glossary',
- ['glossary' => $glossaries[$concept->glossaryid], 'category' => $concept->concept]);
+ ['glossary' => format_string($glossaries[$concept->glossaryid]), 'category' => $concept->concept]);
@iarenaza
iarenaza / keybase.md
Created May 4, 2018 21:32
keybase.md

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@iarenaza
iarenaza / hashicorp-vault-0.9.6-config.hcl
Created April 6, 2018 10:33
Hashicorp Vault 0.9.6 file-based storage basic configuration file
storage "file" {
path = "/vault/file"
}
listener "tcp" {
address = "0.0.0.0:8200"
tls_disable = true
}
@iarenaza
iarenaza / hashicorp-vault-0.9.6-docker-compose.yml
Created April 6, 2018 10:30
Hashicorp Vault 0.9.6 persistent container docker-compose.yml file
version: '3'
services:
hashicorp-vault:
build: .
image: coop.magnet.vault-single-node:0.9.6
container_name: coop.magnet.vault-single-node
cap_add:
- IPC_LOCK
expose:
@iarenaza
iarenaza / hashicorp-0.9.6-Dockerfile
Last active April 6, 2018 11:07
Hashicorp Vault 0.9.6 persistent container Docker file
FROM vault:0.9.6
COPY config.hcl /vault/config/config.hcl
ENTRYPOINT ["vault"]
CMD ["server", "-config=/vault/config/config.hcl"]