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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
BOX_NAME = ENV['BOX_NAME'] || "ubuntu" | |
BOX_URI = ENV['BOX_URI'] || "http://files.vagrantup.com/precise64.box" | |
VF_BOX_URI = ENV['BOX_URI'] || "http://files.vagrantup.com/precise64_vmware_fusion.box" | |
AWS_BOX_URI = ENV['BOX_URI'] || "https://github.com/mitchellh/vagrant-aws/raw/master/dummy.box" | |
AWS_REGION = ENV['AWS_REGION'] || "us-east-1" | |
AWS_AMI = ENV['AWS_AMI'] || "ami-69f5a900" | |
AWS_INSTANCE_TYPE = ENV['AWS_INSTANCE_TYPE'] || 't1.micro' |
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
// Count request per environment | |
db.requestData.aggregate( [ { $group : { _id : "$environmentName", count: { $sum: 1 } } } ] ); | |
// Count all services | |
db.environments.aggregate( | |
[ | |
{ $unwind : "$services" }, | |
{ $group : { _id : null, number : { $sum : 1 } } } | |
] | |
); |
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
#!/bin/bash | |
# | |
# | |
# Usage | |
# This script do nothing, it juste show files that are scanned or not by | |
# Logstash and plugin File. 3 outputs | |
# | |
# ./utilSinceDB.sh | |
# ./utilSinceDB.sh | grep "not found in sincedb" | |
# ./utilSinceDB.sh | grep "to delete" |
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
#!/bin/bash | |
############### | |
# use this script at your own risk (usefull for developpers only) | |
# usage : createUserAndImportDumpMysql.sh ./dumpToImport.sql | |
# | |
# drop the user IDBASE | |
# drop the database IDBASE | |
# create the user IDBASE with password IDBASE and all rights on IDBASE database | |
# create database IDBASE |