Skip to content

Instantly share code, notes, and snippets.

View seanieb's full-sized avatar
🦔
Trying to build suff!

Seanie Byrne seanieb

🦔
Trying to build suff!
View GitHub Profile
@seanieb
seanieb / redis-producer-consumer.py
Created January 7, 2022 11:41 — forked from igniteflow/redis-producer-consumer.py
A very simple implementation of a Redis producer-consumer messaging queue in Python
import redis
import time
import sys
def producer():
r = redis.Redis()
i = 0
while True:
r.rpush('queue', 'Message %d' % i)
@seanieb
seanieb / postmortem.md
Created November 22, 2017 19:34 — forked from mlafeldt/postmortem.md
Example Postmortem from SRE book, pp. 487-491

Shakespeare Sonnet++ Postmortem (incident #465)

Date

2015-10-21

Authors

  • jennifer
  • martym
from __future__ import unicode_literals
from urlparse import parse_qs
import requests
from requests_oauthlib import OAuth1
key = "key"
secret ="secret"
oauth = OAuth1(key, secret)