This file contains hidden or 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
# gunicorn config | |
CONFIG = { | |
# 'mode': 'wsgi', | |
'working_dir': '/usr/lib/python2.7/dist-packages/salt/netapi/rest_cherrypy', | |
# 'python': '/usr/bin/python', | |
'args': ( | |
'--bind=0.0.0.0:8000', | |
'--workers=2', | |
'--timeout=600', | |
'--user=root', |
This file contains hidden or 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 -*- | |
from __future__ import unicode_literals | |
from django.db import models | |
from django.db import IntegrityError | |
from django.template.defaultfilters import slugify | |
class AutoSlugifyOnSaveModel(models.Model): | |
""" |
This file contains hidden or 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
for f in $(find $1 -iname "*.wsp"); do | |
if [ -a $f ]; | |
then /opt/graphite/bin/whisper-set-aggregation-method.py $f max; | |
fi; | |
done |