Skip to content

Instantly share code, notes, and snippets.

View andreabadesso's full-sized avatar

André Abadesso andreabadesso

View GitHub Profile
@andreabadesso
andreabadesso / tmux-cheatsheet.markdown
Created February 8, 2017 16:09 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
import redis
import threading
class Listener(threading.Thread):
def __init__(self, r, channels):
threading.Thread.__init__(self)
self.redis = r
self.pubsub = self.redis.pubsub()
self.pubsub.subscribe(channels)