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/bash | |
| set -e | |
| REGION="us-west-2" | |
| RUNNING_INSTANCES=`aws ec2 describe-instances --region $REGION --filters Name=instance-state-name,Values=running --query Reservations[*].Instances[*].InstanceType --output text | sort | uniq -c | awk ' { t = $1; $1 = $2; $2 = t; print; } '` | |
| # Example: | |
| #m3.medium 11 | |
| #r3.large 3 |
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 ubuntu:14.04 | |
| MAINTAINER Daniil Yaroslavtsev <[email protected]> | |
| ENV DEBIAN_FRONTEND noninteractive | |
| ENV MAVEN_VERSION 3.3.9 | |
| # Java Version | |
| ENV JAVA_VERSION_MAJOR 8 | |
| ENV JAVA_VERSION_MINOR 45 | |
| ENV JAVA_VERSION_BUILD 14 |
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
| # Calculate message chars count | |
| ruby { | |
| code => "if !event['message'].nil? | |
| message_chars_count = event['message'].length | |
| event.to_hash.merge!('message_chars_count' => message_chars_count) | |
| end" | |
| } |
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
| # encoding: utf-8 | |
| require "date" | |
| require "logstash/inputs/base" | |
| require "logstash/namespace" | |
| require "socket" | |
| # This input will read GELF messages as events over the network, | |
| # making it a good choice if you already use Graylog2 today. | |
| # | |
| # The main use case for this input is to leverage existing GELF |
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
| { | |
| "variables": { | |
| "vault_pass": "{{ env `VAULT_PASS` }}", | |
| "aws_access_key": "{{ env `AWS_ACCESS_KEY` }}", | |
| "aws_secret_key": "{{ env `AWS_SECRET_KEY` }}", | |
| "source_ami_id": "{{ env `SOURCE_AMI_ID` }}", | |
| "playbook": "{{ env `PLAYBOOK` }}", | |
| "ami_description": "{{ env `AMI_DESCRIPTION` }}", | |
| "roles_path": "{{ env `ROLES_PATH` }}" | |
| }, |
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 jenkins.* | |
| import jenkins.model.* | |
| import hudson.* | |
| import hudson.model.* | |
| import hudson.console.* | |
| import groovy.time.* | |
| import hudson.plugins.git.* | |
| import java.text.SimpleDateFormat | |
| import java.util.Date |
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 | |
| ### BEGIN INIT INFO | |
| # Provides: pgpool2 | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Should-Start: postgresql | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: start pgpool-II |
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
| -startup | |
| plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar | |
| --launcher.library | |
| plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20140603-1326 | |
| -product | |
| org.eclipse.epp.package.jee.product | |
| --launcher.defaultAction | |
| openFile | |
| -showsplash | |
| org.eclipse.platform |
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
| 10.148.28.51:PRIMARY> rs.status() | |
| { | |
| "set" : "10.148.28.51", | |
| "date" : ISODate("2015-02-25T18:35:38Z"), | |
| "myState" : 1, | |
| "members" : [ | |
| { | |
| "_id" : 0, | |
| "name" : "ip-10-148-28-51:27118", | |
| "health" : 1, |
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(url).process(processor).choice() | |
| .when(header("location").isNull()).endChoice() | |
| .when(header("location").contains("?")).recipientList(simple("${header.location}&bridgeEndpoint=true")).endChoice() | |
| .otherwise().recipientList(simple("${header.location}?bridgeEndpoint=true")); | |
| and just modify location header in processor to any url you need to redirect based on input request content |