This guide assumes a fresh install of Mac OSX 10.6 Snow Leopard.
This guide assumes a fresh install of Mac OSX 10.6 Snow Leopard.
See https://github.com/mxcl/homebrew/wiki/Installation for details.
This file contains 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
--- | |
deployment: | |
name: "servername" | |
domain: "your-root-domain.com" | |
jobs: | |
install: | |
- dea: | |
secure: true | |
enforce_ulimit: false # With this setting as true, I had weird issues with CF | |
runtimes: # Notice erland is removed. The support seemed poor in ubuntu 12.10 |
This file contains 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
PROJECT = "<your project>" | |
current-version: | |
@echo "Current version is `cat ${PROJECT}/__init__.py | awk -F '("|")' '{ print($$2)}'`" | |
build: | |
git stash | |
python setup.py sdist | |
- git stash pop |
This file contains 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 django.core.management import BaseCommand | |
from rq import Worker, Queue, Connection | |
import redis | |
import logging | |
from opbeat.contrib.django.models import client | |
logger = logging.getLogger('rq.worker') | |
def register_opbeat(client, worker): |
This file contains 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
import os | |
from django.core.management import BaseCommand | |
from circus import get_arbiter | |
class Command(BaseCommand): | |
def handle(self, *args, **kwargs): | |
arbiter = get_arbiter([ | |
{ | |
"cmd": "python manage.py rqworker", |
I hereby claim:
- I am kristianoellegaard on github.
- I am oellegaard (https://keybase.io/oellegaard) on keybase.
- I have a public key ASAdqvm8EQ_pZT9BeQPDrV989zyZVHXEFF_JCsYGuu6rjwo
To claim this, I am signing this object:
This file contains 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
{# Find lavlast, spidslast og evt. fortjeneste/tillæg på elspotpris.dk #} | |
{% set spidslast = 0.7791 %} | |
{% set lavlast = 0.2951 %} | |
{% set tillaeg = 0.2057 %} | |
{% set tariffer = [0.723, 0.00229, 0.061, 0.049] | sum %} | |
{% set spids = (now().month < 3 or now().month >= 10) and (now().hour >= 17 and now().hour <= 19) %} | |
{{tariffer + tillaeg + (spidslast if spids else lavlast)}} |