graphite is the user that runs all graphite related services.
Graphite
NGiNX listens on TCP port 80
| // Based on getskeleton.com | |
| @import "nib/clearfix" | |
| @import "nib/reset" | |
| global-reset() | |
| columns = 16 | |
| column-width = 57px // Ends up as 1232px layout | |
| gutter-width = 20px |
| # encoding=utf-8 | |
| import datetime, locale | |
| from functools import partial | |
| from urllib import quote_plus | |
| from raven.contrib.flask import Sentry | |
| from redis import Redis | |
| from flask import (Flask, g, url_for, render_template, request, jsonify, abort, | |
| redirect) |
| class window.Tweet extends Backbone.Model | |
| initialize: (options) -> | |
| if @has "text" | |
| tweet = @ify.hash (@get "text") | |
| tweet = @ify.at tweet | |
| tweet = @ify.link tweet | |
| @set ified: tweet | |
| ify: |
| from directoryhash import path_checksum | |
| from functools import partial | |
| def static(filename, _external=False): | |
| path = partial(url_for, 'static', filename=filename, _external=_external) | |
| host = app.config.get('CDN_HOSTNAME') | |
| if host: | |
| return u'http://{host}/{fingerprint}{path}'.format( | |
| host=host, fingerprint=g.fingerprint, path=path()) | |
| return path(fingerprint=g.fingerprint) |
| #!/usr/bin/env python | |
| # encoding=utf-8 | |
| import sys | |
| import os | |
| import re | |
| import subprocess | |
| from clint.textui import prompt | |
| from clint.textui.core import puts, puts_err | |
| from clint.textui.colored import blue, yellow, red |
| import os | |
| from django.db.models import Count | |
| from jmc.anus.models import Track, Release | |
| from jmc.auth import User | |
| track_root = '../..' | |
| jokull_root = '/web/jmc/tracks/jokull' | |
| j = User.objects.get(username='jokull') |
| import boto | |
| schema = conn.create_schema( | |
| hash_key_name='player_id', | |
| hash_key_proto_value='S', | |
| range_key_name='points', | |
| range_key_proto_value='N' | |
| ) | |
| table = conn.create_table( |
| # encoding=utf-8 | |
| from django.core.urlresolvers import reverse | |
| def burl_context(request): | |
| def burl(name, *args, **kwargs): | |
| external = kwargs.pop('_external') | |
| path = reverse(name, args=args, kwargs=kwargs) |
| # encoding=utf-8 | |
| import sys | |
| import datetime | |
| import email | |
| import mimetypes | |
| import os | |
| import time | |
| import gzip | |
| import subprocess |