Skip to content

Instantly share code, notes, and snippets.

View kind-abhasin's full-sized avatar

Akshay Bhasin kind-abhasin

View GitHub Profile
@kind-abhasin
kind-abhasin / gist:72d56caae4a5ec265ca3eaf446962ba6
Created February 4, 2026 16:31
Sample Action Event for Reaction
{
"timestamp": 1770222444471,
"event": "tv3_action",
"body": {
"eventHeader": {
"eventTimestamp": 1770222444471, // TIME OF ACTION
"eventUuid": "2ec4ecf7-285a-4018-b623-3f55a1daa266",
"eventSequenceId": 4
},
"clientEventHeader": {
"""
Script to populate Redis with sample user reactions data and scan the results.
"""
import random
from datetime import datetime, timedelta
import redis
@kind-abhasin
kind-abhasin / test_script.py
Created September 12, 2025 19:32
Redis Scan
#!/usr/bin/env python3
"""
Script to connect to production Redis cluster using GlideClusterClient.
"""
import asyncio
from glide import GlideClusterClient, GlideClusterClientConfiguration, NodeAddress
async def main():