Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| #!/usr/bin/env python | |
| import sys | |
| import os | |
| import boto | |
| import pprint | |
| del_flag = '' | |
| if len(sys.argv) > 1: | |
| del_flag = sys.argv[1] |
| require 'aws-sdk-v1' | |
| require 'pp' | |
| AWS_KEY_ID = ENV['AWS_KEY_ID'] | |
| AWS_SEC_KEY = ENV['AWS_SEC_KEY'] | |
| opsw = AWS::OpsWorks.new(access_key_id: AWS_KEY_ID, secret_access_key: AWS_SEC_KEY) | |
| @opsw_cli = opsw.client | |
| def retrieve_stacks(region = nil, stack_prefix_hint = nil) |
| input { | |
| file { | |
| type => "ossec" | |
| path => "/var/ossec/logs/alerts/alerts.log" | |
| sincedb_path => "/opt/logstash/" | |
| codec => multiline { | |
| pattern => "^\*\*" | |
| negate => true | |
| what => "previous" | |
| } |
#Kafka - Messaging Basics This assumes you are starting fresh and have no existing Kafka or ZooKeeper data. See http://kafka.apache.org/documentation.html#quickstart for more details.
##Install Java
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
| #!/bin/sh | |
| # Pre-commit hook for git which removes trailing whitespace, converts tabs to spaces, and enforces a max line length. | |
| if git-rev-parse --verify HEAD >/dev/null 2>&1 ; then | |
| against=HEAD | |
| else | |
| # Initial commit: diff against an empty tree object | |
| against=4b825dc642cb6eb9a060e54bf8d69288fbee4904 | |
| fi |
| package main | |
| import ( | |
| "fmt" | |
| "http" | |
| "io/ioutil" | |
| "os" | |
| ) | |
| func main() { |
| #!/usr/bin/env ruby | |
| recipe_path = ARGV[0] | |
| if recipe_path.nil? | |
| STDERR.puts "usage: chef-apply RECIPE_FILE" | |
| exit 1 | |
| end | |
| recipe_path = File.expand_path(recipe_path) |
| # Set variables in .bashrc file | |
| # don't forget to change your path correctly! | |
| export GOPATH=$HOME/golang | |
| export GOROOT=/usr/local/opt/go/libexec | |
| export PATH=$PATH:$GOPATH/bin | |
| export PATH=$PATH:$GOROOT/bin |
| # Find the IAM username belonging to the TARGET_ACCESS_KEY | |
| # Useful for finding IAM user corresponding to a compromised AWS credential | |
| # Requirements: | |
| # | |
| # Environmental variables: | |
| # AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY | |
| # python: | |
| # boto |