Skip to content

Instantly share code, notes, and snippets.

@therealbill
therealbill / sts.go
Last active August 29, 2015 14:13 — forked from oxtoacart/sts.go
package main
import (
"fmt"
"math/rand"
"sort"
"time"
)
const (
@therealbill
therealbill / SentinelReplicator.py
Created July 25, 2014 17:46
A simple means for replication a sentinel's in-memory config to a new sentinel.
#!/usr/bin/env python
import redis
import sys
origin_ip,origin_port = sys.argv[1].split(":")
target_ip,target_port = sys.argv[2].split(":")
origin = redis.Redis(origin_ip,origin_port)
target = redis.Redis(target_ip,target_port)