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
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys [last_8_digits] |
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
## 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. |
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
require "rubygems" | |
require "bundler/setup" | |
require "fnordmetric" | |
FnordMetric.options = { | |
:redis_url => 'redis://:s3cr3t@127.0.0.1:6379/10' | |
} | |
FnordMetric.namespace :myapp do |
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
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 |
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
# -*- coding: utf-8 -*- | |
""" | |
flask_fnordmetric | |
~~~~~~~~~~~~~~~~~ | |
:copyright: (c) 2013 by Isman Firmansyah. | |
:license: MIT, see LICENSE.txt for more details. | |
""" | |
import os | |
import json |
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
# 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 |
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
#!/usr/bin/env bash | |
if [ ! -z `echo $VIRTUAL_ENV` ]; then | |
PYVERSION=$(python -c "import sys; print '%s.%s' % (sys.version_info.major, sys.version_info.minor)") | |
PYSITEPKG=$VIRTUAL_ENV/lib/python$PYVERSION/site-packages | |
pip install whisper | |
pip install carbon \ | |
--install-option="--prefix=$VIRTUAL_ENV" \ |
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 flask import Flask | |
from flask.ext.script import Manager | |
from flask.ext.script import Command | |
from gunicorn.app.base import Application | |
FOOBAR = True | |
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
Traceback (most recent call last): | |
File "/home/iromli/.virtualenv/groovematic/bin/acrylamid", line 9, in <module> | |
load_entry_point('acrylamid==0.7.7', 'console_scripts', 'acrylamid')() | |
File "/home/iromli/.virtualenv/groovematic/lib/python2.7/site-packages/acrylamid/__init__.py", line 213, in Acryl | |
tasks.collected[options.parser](conf, env, options) | |
File "/home/iromli/.virtualenv/groovematic/lib/python2.7/site-packages/acrylamid/tasks/new.py", line 42, in run | |
fd, tmp = tempfile.mkstemp(suffix=ext, dir='.cache/') | |
File "/home/iromli/.pyenv/versions/2.7.5/lib/python2.7/tempfile.py", line 304, in mkstemp | |
return _mkstemp_inner(dir, prefix, suffix, flags) | |
File "/home/iromli/.pyenv/versions/2.7.5/lib/python2.7/tempfile.py", line 237, in _mkstemp_inner |
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
[{ | |
"pk": 1, | |
"model": "auth.user", | |
"fields": { | |
"username": "admin", | |
"first_name": "", | |
"last_name": "", | |
"is_active": true, | |
"is_superuser": true, | |
"is_staff": true, |
OlderNewer