Skip to content

Instantly share code, notes, and snippets.

View jjmaestro's full-sized avatar
🧙‍♂️

Javier Maestro jjmaestro

🧙‍♂️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am jjmaestro on github.
  • I am jjmaestro (https://keybase.io/jjmaestro) on keybase.
  • I have a public key whose fingerprint is F8C5 34FF 4BBF 6CDA 6424 A8FD 7AB6 0AB7 4B0A 67BA

To claim this, I am signing this object:

@jjmaestro
jjmaestro / whisper-calculator.py
Last active May 13, 2026 16:23
whisper-calculator.py: Calculates the size of the whisper storage for the given retention (in frequency:history format)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
def archive_to_bytes(archive):
def to_seconds(s):
SECONDS_IN_A = {
's': 1,
'm': 1 * 60,
'h': 1 * 60 * 60,