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
version: '2' | |
services: | |
kibana: | |
image: kibana | |
links: | |
- elasticsearch | |
environment: | |
- ELASTICSEARCH_URL=http://elk_elasticsearch_1:9200 | |
elasticsearch: | |
image: elasticsearch:2.2 |
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
class CloudflareClient | |
CLOUDFLARE_API_ENDPOINT = "https://api.cloudflare.com/client/v4" | |
def initialize(email, api_key) | |
require "rest-client" | |
require "json" | |
raise ArgumentError, "Parameters email and api_key are mandatory" if email.to_s.empty? or api_key.to_s.empty? | |
@auth_headers = {"X-Auth-Email" => email, "X-Auth-Key" => api_key, "Content-Type" => "application/json"} | |
end |
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 | |
# | |
# Adds Cloudflare IPV4 addresses to the Inbound rules of a AWS Security Group | |
# | |
## defining helper functions first | |
# show usage | |
show_usage() { |
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
{ | |
"AWSTemplateFormatVersion" : "2010-09-09", | |
"Description" : "Deploy 2 NAT instances using the nat_monitor.sh created by Steve Morad (AWS) inside an existing VPC. Based on the original version nat_monitor_demo.template - http://stevemorad.s3.amazonaws.com/reInvent/demos/nat_template.htm", | |
"Parameters" : { | |
"KeyName" : { | |
"Description" : "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
"Type" : "AWS::EC2::KeyPair::KeyName" |
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/sh | |
# This script will monitor another NAT instance and take over its routes | |
# if communication with the other instance fails | |
# NAT instance variables | |
# Other instance's IP to ping and route to grab if other node goes down | |
NAT_ID= | |
NAT_RT_ID= | |
# My route to grab when I come back up |
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
[Spacewalk] | |
spw_server = spw_server.domain.com | |
spw_user = spw_user | |
spw_pass = spw_pass | |
channel_label = test_channel |
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
#!/usr/bin/python | |
# Script that calls the channels.software.syncRepo Spacewalk API method | |
# | |
# Author: Rafael Felix Correa <[email protected]> | |
# | |
# This script is based on https://raw.githubusercontent.com/angrox/spacewalk-api-scripts/master/spacewalk-rhn-sync/spacewalk-rhn-sync.py | |
# Special thanks to Martin Zehetmayer <[email protected]> | |
# | |
# This library is free software; you can redistribute it and/or | |
# modify it under the terms of the GNU Lesser General Public |
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
Name: lame | |
Version: 1.0.0 | |
Release: 1%{?dist} | |
Summary: Lame summary | |
License: GPLv2+ | |
URL: http://rf4solucoes.com.br/ | |
Source0: http://rf4solucoes.com.br/files/%{name}-%{version}.tar.gz | |
%description |
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 | |
# | |
# Issue request to Akamai tool verifyAkamaiIpInternal to check if | |
# the given IP address belongs to Akamai | |
# | |
## defining helper functions first | |
# show usage |