brew install gcc48
../configure CXX=g++-4.8 CC=gcc-4.8 PYTHON=/usr/local/bin/python
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
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, | |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
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
| # Statsd Server | |
| [[inputs.statsd]] | |
| ## Address and port to host UDP listener on | |
| service_address = "127.0.0.1:8126" | |
| ## The following configuration options control when telegraf clears it's cache | |
| ## of previous values. If set to false, then telegraf will only clear it's | |
| ## cache when the daemon is restarted. | |
| ## Reset gauges every interval (default=true) | |
| delete_gauges = true |
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
| """ | |
| Aurora Scheduler check | |
| Collects metrics from aurora scheduler. | |
| """ | |
| import requests | |
| from checks import AgentCheck, CheckException | |
| class AuroraCheck(AgentCheck): |
When using “bound” objects in an .aurora file it is an absolute that you do not have spaces in the “mustaches”.
Examples:
- Bad:
{{ profile.my_var }} - Good:
{{profile.my_var}}
When running a docker container, you must ensure that all of the dependent library for the thermos_executor.pex are present in the docker container itself. The thermos_executor runs in the container not the mesos slaves environment.
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
| #!/bin/sh | |
| DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd ) | |
| RUN_DIR=${DIR}/.dynamodb | |
| DYNAMODB_LOCAL="http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest.tar.gz" | |
| PORT=8000 | |
| ARGS="-inMemory -port ${PORT}" | |
| install_dynamo_db(){ | |
| mkdir -p $1 | |
| curl -L $2 | tar xvz -C $1 |
#Mac OS X
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
| import sqlalchemy | |
| import sqlalchemy.exc | |
| import sqlalchemy.ext.declarative | |
| import sqlalchemy.orm | |
| import sqlalchemy.sql.functions | |
| from sqlalchemy import create_engine | |
| engine = create_engine('postgresql://user:pass@my.host.post/db_name') | |
| Base = sqlalchemy.ext.declarative.declarative_base(bind=engine) |
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
| [cloudera-cdh5] | |
| name=Cloudera's Distribution for Hadoop, Version 5 | |
| gpgcheck=1 | |
| gpgkey=http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/RPM-GPG-KEY-cloudera | |
| baseurl=http://archive.cloudera.com/cdh5/redhat/6/x86_64/cdh/5/ | |
| humanname=Cloudera's Distribution for Hadoop, Version 5 | |
| #http://mirror.centos.org/centos/$releasever/os/$basearch/ |