Skip to content

Instantly share code, notes, and snippets.

@maheshgattani
maheshgattani / receiver_with_backoff_rabbitpy.py
Last active May 3, 2023 13:40
RabbitMQ back off and retry
#!/usr/bin/env python
import rabbitpy
import time
import random
#
# This script uses the DLX and TTL concepts in RabbitMQ to create
# a back off and retry logic for queue consumer.
#
# This script nack's every message it gets without requeue and
@ralph-e-boy
ralph-e-boy / UIColor+unixcolors.h
Last active December 15, 2015 20:08
UIColor category with unix-style color names ripped from tcl colors manpage
//
// UIColor+unixcolors.h
// unix-style color names ripped from tcl colors manpage
// kramden.com
//
// see the colors at:
/// http://kramden.com/tcl.html
//
#import <UIKit/UIKit.h>