Skip to content

Instantly share code, notes, and snippets.

@rimom
rimom / test.txt
Created June 20, 2023 19:38
test.txt
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="twitter:app:country" content="IE"><meta name="twitter:app:name:iphone" content="Daft.ie"><meta name="twitter:app:id:iphone" content="346547065"><meta name="twitter:app:url:iphone" content="https://apps.apple.com/ie/app/daft-ie/id346547065"><meta name="twitter:app:name:ipad" content="Daft.ie"><meta name="twitter:app:id:ipad" content="346547065"><meta name="twitter:app:url:ipad" content="https://apps.apple.com/ie/app/daft-ie/id346547065"><meta name="twitter:app:name:googleplay" content="Daft - Buy, Rent or Share Ireland Real Estate"><meta name="twitter:app:id:googleplay" content="com.daft.ie"><meta name="twitter:app:url:googleplay" content="https://play.google.com/store/apps/details?id=com.daft.ie&amp;hl=en"><script src="https://www.google.com/recaptcha/enterprise.js?render=6LeVIV8lAAAAAIV3iAExz1eHwUtwU3a0OlHfjsmO"></script><meta name="twitter:card" content="app"><meta name="twitter:creato
@rimom
rimom / findkeys.sh
Created November 1, 2022 10:15 — forked from patrickhulce/findkeys.sh
Find all keys without a TTL in Redis
#!/bin/sh
redis-cli keys "*" | head -n $1 > keys.txt
cat keys.txt | xargs -n 1 -L 1 redis-cli ttl > ttl.txt
paste -d " " keys.txt ttl.txt | grep .*-1$ | cut -d " " -f 1 | redis-cli del