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
# Puppet PHP PEAR Package support | |
# Taken from https://raw.github.com/gist/1524864/fdd8fd047aa702587c0b7cce7a77d55dbd781f01/pear.rb | |
require 'puppet/provider/package' | |
# PHP PEAR support. | |
Puppet::Type.type(:package).provide :pear, :parent => Puppet::Provider::Package do | |
desc "PHP PEAR support. By default uses the installed channels, but you | |
can specify the path to a pear package via ``source``." |
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 | |
# | |
# Issue request to Akamai tool verifyAkamaiIpInternal to check if | |
# the given IP address belongs to Akamai | |
# | |
## defining helper functions first | |
# show usage |
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
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 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/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 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
[Spacewalk] | |
spw_server = spw_server.domain.com | |
spw_user = spw_user | |
spw_pass = spw_pass | |
channel_label = test_channel |
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 | |
# 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 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
{ | |
"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 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 | |
# | |
# Adds Cloudflare IPV4 addresses to the Inbound rules of a AWS Security Group | |
# | |
## defining helper functions first | |
# show usage | |
show_usage() { |
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 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 |
OlderNewer