This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import division | |
| import collections | |
| from texttable import Texttable | |
| by_status = collections.defaultdict(list) | |
| per_page = 100 | |
| offset = 0 | |
| while True: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git branch --merged | grep -v 'master$' | xargs git branch -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'em-hiredis' | |
| EM.run { | |
| require 'em-hiredis' | |
| redis = EM::Hiredis.connect | |
| # If you pass a block to subscribe it will be called whenever a message | |
| # is received on this channel | |
| redis.pubsub.subscribe('foo') { |msg| | |
| p [:received_foo, msg] |