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
numers = [ 2, 5, 8, 9, 13, 6, 22 ] | |
search_numer = 22 | |
def funcyChicken(numberList=None,searchNumber=None): | |
retValue=False | |
temp_list = numberList[:] | |
for x in range(0,len(numberList)-1): | |
print numberList[x] | |
del temp_list[x] | |
other=search_numer-numberList[x] |
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
numers = [ 2, 5, 8, 9, 13, 6, 22 ] | |
search_numer = 22 | |
def funcyChicken(numberList=None,searchNumber=None): | |
retValue=False | |
temp_list = numberList[:] | |
for x in range(0,len(numberList)-1): | |
print numberList[x] | |
del temp_list[x] | |
other=search_numer-numberList[x] |
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
data "aws_iam_policy_document" "build_agent_role_policy" { | |
statement { | |
sid="TrustPolicyToAllowEC2AssumeRoleAction" | |
effect="Allow" | |
actions = ["sts:AssumeRole"] | |
principals { | |
type = "Service" | |
identifiers = [ | |
"ec2.amazonaws.com" |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "EC2NonResourceBasedPermissions", | |
"Action": [ | |
"ec2:Describe*", | |
"ec2:CreateKeyPair", | |
"ec2:CreateTags", | |
"ec2:CreateSecurityGroup", |
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
echo "hello" |
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
// Catch cookbook changes not made by the 'pipeline' user | |
rules 'catch cookbook changes' | |
with priority=50 | |
rule on action | |
when | |
parent_type = 'cookbook' | |
and | |
requestor_name != 'go-agent' | |
then | |
// Not passing a second parameter(notification string) |
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
search(:node, "environment:Rustys_bag_o_stuff").each { |the_node| puts "node #{node['fqdn']}" unless the_node.nil? } |