Ansible, kinda like Puppet, but not nearly as painful.
- Using Ansible to configure systems, VoltDB and Vault
- Using Ansible to fix mistakes
Ansible, kinda like Puppet, but not nearly as painful.
| #!/usr/bin/python | |
| # import modules used here -- sys is a very standard one | |
| import sys | |
| # Gather our code in a main() function | |
| def main(): | |
| print 'Hello there', sys.argv[1] if len(sys.argv) > 1 else 'Anon' | |
| # Command line args are in sys.argv[1], sys.argv[2] .. | |
| # sys.argv[0] is the script name itself and can be ignored |
https://en.wikipedia.org/wiki/Test-driven_development#Test-driven_development_cycle
| { | |
| "Records": [ | |
| { | |
| "EventSource": "aws:sns", | |
| "EventVersion": "1.0", | |
| "EventSubscriptionArn": "arn:aws:sns:eu-west-1:371548805176:FT-App-API-UAT-AutoScalingEvents-1VA671X21ETS2:500fe343-1af7-4b98-a81c-2a91c32f3f05", | |
| "Sns": { | |
| "Type": "Notification", | |
| "MessageId": "1decf081-3906-5ba1-a408-a1c886a6549e", | |
| "TopicArn": "arn:aws:sns:eu-west-1:371548805176:FT-App-API-UAT-AutoScalingEvents-1VA671X21ETS2", |
| #!/usr/bin/env python | |
| import boto3 | |
| # Standard boilerplate to call the main() function to begin | |
| # the program. | |
| if __name__ == '__main__': | |
| key = 'jif.gif' | |
| body = open(filename, 'rb') | |
| s3.Bucket('hello-world').put_object(Key=key, Body=body) |
| import sys | |
| import math | |
| # Auto-generated code below aims at helping you parse | |
| # the standard input according to the problem statement. | |
| mime_types = {} | |
| file_names = [] | |
| count_mime_types = int(input()) # Number of elements which make up the association table. | |
| count_file_names = int(input()) # Number of file names to be analyzed. |
| vcl 4.0; | |
| sub vcl_recv { | |
| // Allow PURGE requests to remove a specific object if it exists. | |
| if (req.method == "PURGE") { | |
| return (purge); | |
| } | |
| // Allow BAN requests, adding a lurker friendly ban to the ban list. | |
| if (req.method == "BAN") { |
| --- | |
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: > | |
| A basic CloudFormation template for an RDS Aurora cluster. | |
| Parameters: | |
| DatabaseUsername: | |
| AllowedPattern: "[a-zA-Z0-9]+" | |
| ConstraintDescription: must be between 1 to 16 alphanumeric characters. |
| help: ## Show this help message. | |
| echo "usage: make [target] ..." | |
| echo "" | |
| echo "targets:" | |
| fgrep --no-filename "##" ${MAKEFILE_LIST} | head -n '-1' | column -s ':#' -t -c 2 |
| #include "Gatekeeper.h" | |
| const int kPinDrRelay = D0; | |
| const int kPinS1Relay = D1; | |
| const int kPinS2Relay = D2; | |
| const int kPinDsLine = D3; | |
| const int kPinBzLine = D4; | |
| int primed_; |