Skip to content

Instantly share code, notes, and snippets.

@jscattergood
jscattergood / serverless.yml
Last active March 10, 2019 13:57
Creating a custom serverless resource for subscribing to SNS topics in another region
# Welcome to Serverless!
#
# Happy Coding!
service: cross-region-sns-subscriber
# Keep environment specific configurations in separate files
custom: ${file(config/${env:STAGE}.json)}
provider:
@jscattergood
jscattergood / rediff.py
Created July 14, 2017 16:35 — forked from yoav-steinberg/rediff.py
rediff - the redis diff script
import urlparse
import argparse
import redis
import sys
from multiprocessing import Pool
import signal
def parse_redis_url(s):
url = urlparse.urlparse(s)
if not url.scheme: