(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:
| RewriteEngine On | |
| # Map http://henrik.nyh.se to /jekyll. | |
| RewriteRule ^$ /jekyll/ [L] | |
| # Map http://henrik.nyh.se/x to /jekyll/x unless there is a x in the web root. | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| RewriteCond %{REQUEST_URI} !^/jekyll/ | |
| RewriteRule ^(.*)$ /jekyll/$1 |
| # -*- coding: utf-8 -*- | |
| import codecs | |
| import subprocess | |
| from fdfgen import forge_fdf | |
| from django.template import Template, loader | |
| from django.template.loader import find_template, LoaderOrigin | |
| class PdfTemplateError(Exception): |
| $ git branch -r --merged | | |
| grep origin | | |
| grep -v '>' | | |
| grep -v master | | |
| xargs -L1 | | |
| awk '{split($0,a,"/"); print a[2]}' | | |
| xargs git push origin --delete |
| # Some good references are: | |
| # http://russbrooks.com/2010/11/25/install-postgresql-9-on-os-x | |
| # http://www.paolocorti.net/2008/01/30/installing-postgis-on-ubuntu/ | |
| # http://postgis.refractions.net/documentation/manual-1.5/ch02.html#id2630392 | |
| #1. Install PostgreSQL postgis and postgres | |
| brew install postgis | |
| initdb /usr/local/var/postgres | |
| pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
| user www-data; | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
I had some headaches yesterday while trying to upgrade to VMWare Fusion with Vagrant.
The steps that work are:
| """ | |
| This module adds Redis Sentinel transport support to Celery. | |
| Current version of celery doesn't support Redis sentinel client, which is must have for automatic failover. | |
| To use it:: | |
| import register_celery_alias | |
| register_celery_alias("redis-sentinel") | |
| celery = Celery(..., broker="redis-sentinel://...", backend="redis-sentinel://...") |