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
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Threading.Tasks; | |
| // NOTE: Some of the classes here (namely the primitives like Vector2d and Rect2d) are not provided, | |
| // but most should be fairly easy to implement yourself or replace with similar | |
| // classes from other libraries. | |
| // The exception is the Delaunay triangulation - that takes quite a bit more effort to implement. That said, |
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 |