Skip to content

Instantly share code, notes, and snippets.

View juliocamarero's full-sized avatar

Julio Camarero juliocamarero

View GitHub Profile
@juliocamarero
juliocamarero / trust_relationships.py
Created October 26, 2020 17:07
Script to regenerate all trust relationships for all regions
#!/usr/bin/env python3
# Manages trust relationships across all regions. The script is idempotent, it will only update the trust relationships
# which need to be updated and ignore the ones which are already ok.
#
# Example of usage:
# EC_CONFIG=qa ./bin/trust_relationships.py --region us-east-1
#
# Requirements:
# ecl - http://github.com/elastic/cloud-cli

Keybase proof

I hereby claim:

  • I am juliocamarero on github.
  • I am juliocamarero (https://keybase.io/juliocamarero) on keybase.
  • I have a public key ASCTNZY1rjnewpAI9BKfH08j5B-vux73c5P1aulOYnl9_go

To claim this, I am signing this object:

@juliocamarero
juliocamarero / Opengraph.java
Created October 6, 2012 18:07
OpenGraph Attributes in Liferay Integration
Map<String, String> opengraphAttributes =
(Map<String, String>)request.getAttribute(
"LIFERAY_SHARED_OPENGRAPH");
if (opengraphAttributes == null) {
opengraphAttributes = new HashMap<String, String>();
request.setAttribute(
"LIFERAY_SHARED_OPENGRAPH", opengraphAttributes);
}