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
[hekad] | |
decoder_poolsize = 5 | |
max_message_loops = 8 | |
max_process_inject = 10 | |
max_timer_inject = 20 | |
maxprocs = 4 | |
plugin_chansize = 10 | |
poolsize = 200 | |
[somehekalogstreamstuff] |
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
require "cjson" | |
-- Generic decoder for JSON logs. This will extract all JSON | |
-- keys and add them to the `Fields` variable of the created | |
-- Heka message. | |
-- | |
-- Example use: | |
-- | |
-- [NginxJsonLogDecoder] | |
-- type = "SandboxDecoder" |
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
from peewee import * | |
DATABASE = SqliteDatabase("hosts.db") | |
class BaseModel(Model): | |
class Meta: | |
database = DATABASE | |
class Hosts(BaseModel): | |
name = CharField(max_length=256) |
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
#!/usr/bin/env python | |
""" | |
Harbour. | |
Usage: | |
harbour [ID] env | |
harbour [ID] ports | |
harbour (-h | --help) |
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
[hekad] | |
decoder_poolsize = 5 | |
max_message_loops = 8 | |
max_process_inject = 10 | |
max_timer_inject = 20 | |
maxprocs = 4 | |
plugin_chansize = 10 | |
poolsize = 200 | |
[debug] |
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
{ | |
"template": "logs-*", | |
"order": 0, | |
"settings": { | |
"index.query.default_field": "Payload", | |
"index.store.compress.stored": "true", | |
"index.number_of_shards": "5", | |
"index.cache.field.type": "soft", | |
"index.refresh_interval": "5s" | |
}, |
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
{ | |
"title": "Platform Logs", | |
"services": { | |
"query": { | |
"idQueue": [ | |
1, | |
2, | |
3, | |
4 | |
], |
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
BEGIN; | |
INSERT INTO certnames (name, deactivated) VALUES ('dummy', NOW()); | |
INSERT INTO certname_facts_metadata (certname, timestamp) VALUES ('dummy', NOW()); | |
INSERT INTO certname_facts (certname, name, value) VALUES ('dummy', 'REVISION', 'SOME SHA1'); | |
COMMIT; |
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
class Multiply(object): | |
def __init__(self, x, y): | |
self.x, self.y = x, y | |
def value(self): | |
return self.__multiply(self.x, self.y) | |
def __multiply(self, x, y): | |
return x * y |
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
# language: en | |
Feature: vCloud madness | |
In order to write cucumber features correctly | |
As a webop | |
I need to wrap everything I do around "features" | |
Scenario: Login | |
Given an account on the Skyscape portal | |
And a vCloud organisation | |
When I login to the vCloud API |