Skip to content

Instantly share code, notes, and snippets.

View geodis's full-sized avatar

geodis geodis

View GitHub Profile
@geodis
geodis / notes.md
Created September 5, 2024 14:25
git[object Object]

Git branches by author sorted by committer date:

git for-each-ref --format='%(committerdate) %09 %(authorname) %09 %(refname)' --sort=committerdate
@geodis
geodis / redis_notes.md
Last active January 8, 2025 12:10
Redis

connect

apt update && apt install -y redis redis-cli -h [-p ] [-a ] redis-cli -h [-p ] [--user ] [--pass ] redis-cli -h [-p ] [--askpass]

cantidad de elements en events

redis:6379> LLEN events (integer) 60

@geodis
geodis / examples.md
Last active May 19, 2025 09:29
Gitlab
.debug_changes: &debug_changes
  - force-debug.txt

.debug_script: &debug_script
  script:
    - echo "DEBUG MODE"
    - printenv
    - hostname
@geodis
geodis / cert-manager.md
Last active August 4, 2025 10:39
metricas

Certificate Lifecycle Metrics (HIGHLY useful)

certmanager_certificate_expiration_timestamp_seconds When cert-manager thinks the cert will expire.
Best for alerting.

📈 Use to alert if cert expires in < X days.

certmanager_certificate_not_after_timestamp_seconds

Timestamp from the actual certificate (NotAfter field).
Use to verify that cert-manager's expected expiration matches reality.