Skip to content

Instantly share code, notes, and snippets.

# A generic, single database configuration.
[application]
config_file_name = app_conf.py
[alembic]
# path to migration scripts
script_location = foo.bar:migrations
# template used to generate migration files
# file_template = %%(rev)s_%%(slug)s
@iromli
iromli / flask_fnordmetric.py
Created April 29, 2013 06:53
Flask extension to send data to FnordMetric
# -*- coding: utf-8 -*-
"""
flask_fnordmetric
~~~~~~~~~~~~~~~~~
:copyright: (c) 2013 by Isman Firmansyah.
:license: MIT, see LICENSE.txt for more details.
"""
import os
import json
@iromli
iromli / config.py
Last active December 15, 2015 19:09
USE_FNORDMETRIC = False
FNORDMETRIC_REDIS_PREFIX = 'fnordmetric'
FNORDMETRIC_REDIS_HOST = '127.0.0.1'
FNORDMETRIC_REDIS_DB = 0
FNORDMETRIC_REDIS_PORT = 6379
FNORDMETRIC_REDIS_PASSWORD = None
require "rubygems"
require "bundler/setup"
require "fnordmetric"
FnordMetric.options = {
:redis_url => 'redis://:s3cr3t@127.0.0.1:6379/10'
}
FnordMetric.namespace :myapp do
@iromli
iromli / gist:1239442
Created September 24, 2011 15:17
nanorc
## Sample initialization file for GNU nano.
##
## Please note that you must have configured nano with --enable-nanorc
## for this file to be read! Also note that this file should not be in
## DOS or Mac format, and that characters specially interpreted by the
## shell should not be escaped here.
##
## To make sure a value is disabled, use "unset <option>".
##
## For the options that take parameters, the default value is given.
@iromli
iromli / APT-KEY
Created November 23, 2010 23:13
A collection of Ubuntu commands
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [last_8_digits]