Skip to content

Instantly share code, notes, and snippets.

@amissemer
amissemer / watch_tfc_commit_status.py
Last active April 23, 2026 21:04
Watch TFC Commit Status URL with CLI
#!/usr/bin/env python3
"""
Watch a Terraform Cloud aggregated commit status URL and approve pending plans.
Usage:
python watch_tfc_commit_status.py <url>
Example:
python watch_tfc_commit_status.py https://app.terraform.io/app/AlayaCare/aggregated-commit-statuses/acs-gpmCPebNUVB6NrGz
"""
@amissemer
amissemer / keybase.md
Created November 8, 2019 21:57
keybase.md

Keybase proof

I hereby claim:

To claim this, I am signing this object:

### Keybase proof
I hereby claim:
* I am amissemer on github.
* I am adrien_elevate (https://keybase.io/adrien_elevate) on keybase.
* I have a public key ASCU50eNpEmDS2PPxrySHRpUGp4QjgL68eki_fCbTtO7xQo
To claim this, I am signing this object:
// REPLACE the PK long value in the following line and run from the hac Groovy console
pk = de.hybris.platform.core.PK.fromLong(8796573532682)
def composedTypeCode=null
try {
composedTypeCode = de.hybris.platform.jalo.type.TypeManager.instance.getRootComposedType(pk.typeCode)?.code
} catch (de.hybris.platform.jalo.JaloItemNotFoundException e) {
}
"counter=${pk.counter}, typeCode=${pk.typeCode}, composedType=${composedTypeCode}"
// actually the hac PK Analyzer tool uses a REST API from the hac that exposes this data