start new:
tmux
start new with session name:
tmux new -s myname
When using directives, you often need to pass parameters to the directive. This can be done in several ways. The first 3 can be used whether scope is true or false. This is still a WIP, so validate for yourself.
Raw Attribute Strings
<div my-directive="some string" another-param="another string"></div>
import os | |
from flask import Flask, render_template, request | |
import stripe | |
stripe_keys = { | |
'secret_key': os.environ['SECRET_KEY'], | |
'publishable_key': os.environ['PUBLISHABLE_KEY'] | |
} | |
stripe.api_key = stripe_keys['secret_key'] |
One clipboard to rule them all. Requires tmux >= 1.8. Thanks @thoughtbot
Tell vim to use the system clipboard:
" ~/.vimrc
set clipboard=unnamed " use the system clipboard
LOGGLY_INPUT_KEY = "your key here" | |
import hoover | |
import logging | |
def initialize_loggly(loglevel=logging.WARN, **kwargs): | |
handler = hoover.LogglyHttpHandler(token=LOGGLY_INPUT_KEY) | |
log = logging.getLogger('celery') | |
log.addHandler(handler) | |
log.setLevel(loglevel) |
#!/usr/bin/env python | |
from subprocess import call | |
import time | |
ho = 'h' | |
while 1: | |
ho += 'o' | |
print ho | |
call(['say', ho]) | |
time.sleep(1) |