digraph Jira_Outage
{
{
first_notification [
label="Notification of a Jira outage from any channel"
shape=rect
]
pc_browser [
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
elbv2_response = boto3.client("elbv2") | |
if elbv2_response is not None: | |
v2_load_balancers = elbv2_response.describe_load_balancers() | |
else: | |
v2_load_balancers = None | |
##not implemented rules | |
rules = get_alb_rules(listener_arn) |
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
def create_elb(self,subnets,name,type='app',region='us-east-1',sg=['sg-c5556eb1']): | |
if type == 'app': | |
type = 'application' | |
else: | |
type = 'network' | |
elb_creation = self.elbv2_client.create_load_balancer( | |
Name=name, | |
Subnets=subnets, | |
SecurityGroups=sg, | |
Scheme='internet-facing', |
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
--tc-file=TESTCONFIG | |
myapp: | |
servers: | |
main_server: 10.1.1.1 | |
secondary_server: 10.1.1.2 | |
from pytest_testconfig import config | |
def test_foo(): | |
main_server = config['myapp']['servers']['main_server'] |
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
"""SSL client/server certificates verification for `urllib2`. | |
see: https://gist.github.com/zed/1347055 | |
It works on Python 2.6, 2.7, 3.1, 3.2 | |
Example:: | |
>>> import urllib2, urllib2_ssl | |
>>> opener = urllib2.build_opener(urllib2_ssl.HTTPSHandler( |
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
--- | |
- hosts: all | |
connection: local | |
tasks: | |
- name: Get a cert from an https port | |
get_certificate: | |
host: "www.google.com" | |
port: 443 | |
register: cert |
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
## group without clustering | |
with Diagram("AcctCreation", show=False): | |
begin = ( | |
SQS("KickoffQueue") | |
>> Lambda("AcctCreate") | |
>> StepFunctions("StepFunctions") | |
) | |
with Cluster("StateMchne"): | |
with Cluster("Cncrrntx3.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
import socket | |
import pytest | |
import testinfra | |
local_command = testinfra.get_backend('local://').get_module('Command') | |
@pytest.fixture() | |
def TCPConnection(): | |
def connect(address, port, timeout=5): |
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 | |
############################################################################## | |
# | |
# | |
# FILE : linux-explorer.sh | |
# Last Change Date : 04-07-2016 | |
# Author(s) : Joe Santoro | |
# Date Started : 15th April, 2004 | |
# Email : linuxexplo [ at ] unix-consultants.com | |
# Web : http://www.unix-consultants.com/examples/scripts/linux/linux-explorer |