├── .gitignore ├── JMX-Starter ├── ForLoop.java └── README.md ├── ansible ├── ansible_dry_run │ ├── Vagrantfile │ ├── ansible_dry_run.sh │ └── playbooks │ │ └── sample_playbook.yaml ├── ansible_playbook_for_loop │ ├── Vagrantfile │ └── ansible │ │ ├── initial_playbook.yml │ │ └── roles │ │ └── sample_vhost_configuration │ │ ├── tasks │ │ └── main.yml │ │ └── templates │ │ └── vhost_configuration.j2 ├── ansible_playbook_with_vars │ ├── README.md │ ├── Vagrantfile │ └── playbooks │ │ ├── appconfig.j2 │ │ ├── hosts │ │ ├── vars_test.retry │ │ └── vars_test.yml ├── basic_ansible_playbook │ ├── README.md │ ├── Vagrantfile │ └── playbooks │ │ ├── hosts │ │ └── ntp.yml ├── deploy_cloudformation_role │ ├── README.md │ ├── infra │ │ ├── core.json │ │ └── webserver.json │ └── playbooks │ │ ├── manage_cloudformation_core.yml │ │ ├── manage_cloudformation_webserver.yml │ │ └── roles │ │ └── manage_cloudformation │ │ ├── tasks │ │ └── main.yml │ │ └── vars │ │ └── main.yml └── sample_playbook │ ├── README.md │ └── sample_playbook.yml ├── ant └── ant_echo_task │ ├── README.md │ └── build.xml ├── apache2 ├── apache2_basic_install │ ├── Vagrantfile │ └── apache2_basic_install.sh ├── apache2_mpm_testing │ ├── README.md │ ├── Testing.md │ └── apache2_mpm_testing.yaml ├── apache2_php_testing │ ├── README.md │ ├── Testing.md │ └── apache2_php_testing.yaml └── apache2_rewrite │ ├── Vagrantfile │ └── apache2_rewrite.sh ├── apache_zookeeper └── apache_zookeeper_standalone │ ├── README.md │ ├── Vagrantfile │ └── zookeeper_instance.sh ├── archiva ├── archiva_basic_install │ ├── Vagrantfile │ └── archiva_basic_install.sh └── archiva_basic_install_mysql │ ├── Vagrantfile │ └── archiva_basic_install_mysql.sh ├── atlassian └── jira_python_query │ └── jira_python_query.py ├── audiowaveform ├── Dockerfile └── README.md ├── aviatrix ├── basic_aviatrix_remote_access_cloudformation │ ├── README.md │ └── basic_aviatrix_remote_access.yaml └── basic_aviatrix_remote_access_terraform │ ├── README.md │ ├── files │ ├── aviatrix_app_policy.json │ ├── aviatrix_assume_role_policy.json │ └── aviatrix_role_ec2.json │ ├── main.tf │ ├── templates │ └── aviatrix_role_app.json.erb │ ├── variables.tf │ └── vpc.tf ├── aws-security-viz ├── README.md ├── Vagrantfile └── aws_security_viz.sh ├── aws ├── SimianArmy │ └── conformity_monkey │ │ ├── Vagrantfile │ │ └── install_conformity_monkey.sh ├── amazonmq │ └── basic_amazonmq │ │ ├── README.md │ │ └── amazonmq.yaml ├── amplify │ └── basic_amplify │ │ ├── README.md │ │ ├── basic_amplify.yaml │ │ └── index.html ├── api_gateway │ ├── api_gateway │ │ ├── README.md │ │ └── api_gateway.yaml │ ├── api_gateway_endpoint_type_compare │ │ ├── README.md │ │ └── api_gateway_endpoint_type_compare.yaml │ ├── api_gateway_http_with_alb │ │ ├── README.md │ │ └── api_gateway_http_with_alb.yaml │ ├── api_gateway_private │ │ ├── README.md │ │ └── api_gateway_private.yaml │ ├── api_gateway_private_in_vpc │ │ ├── README.md │ │ └── api_gateway_private_in_vpc.yaml │ ├── api_gateway_secure_connection_public_resource │ │ ├── README.md │ │ └── api_gateway_secure_connection_public_resource.yaml │ ├── api_gateway_with_cognito_user_pool_authorizer │ │ ├── README.md │ │ ├── api_gateway.yaml │ │ └── api_gateway_authorize_dual_provider_failed.yaml │ ├── api_gateway_with_iam_auth │ │ ├── README.md │ │ ├── api_gateway_with_iam_auth.yaml │ │ └── get_with_iam_auth.py │ ├── api_gateway_with_logging │ │ ├── README.md │ │ └── api_gateway_with_logging.yaml │ ├── api_gateway_with_openapi_config │ │ └── api_gateway_with_openapi_config.yaml │ └── api_gateway_with_privatelink │ │ ├── README.md │ │ └── api_gateway_with_privatelink.yaml ├── appmesh │ ├── basic_appmesh_egress │ │ ├── README.md │ │ └── basic_appmesh_egress.yaml │ └── eks_with_appmesh_ingress │ │ ├── README-ingress-gateway.md │ │ ├── README.md │ │ ├── eks_with_appmesh_ingress.yaml │ │ └── nginx_with_ingress.yaml ├── autoscaling │ ├── asg_with_update_policy │ │ ├── README.md │ │ ├── asg_with_update_policy_2016.yaml │ │ └── asg_with_update_policy_2017.yaml │ ├── autoscaling_with_load_balancer │ │ ├── README.md │ │ └── autoscaling_with_load_balancer.yaml │ ├── basic_autoscaling_group │ │ ├── README.md │ │ └── basic_autoscaling_group.yaml │ └── basic_autoscaling_group_windows │ │ ├── README.md │ │ └── basic_autoscaling_group_windows.yaml ├── aws_budget │ ├── README.md │ └── budget.yaml ├── aws_config │ ├── README.md │ └── aws_config.yaml ├── awscli_tool │ └── snippets_autoscaling.md ├── basic_ecr │ ├── Vagrantfile │ └── basic_ecr.sh ├── cloudformation │ ├── autoscaling_with_complex_yaml_userdata │ │ ├── README.md │ │ ├── network_vpc.yaml │ │ └── webservers.yaml │ ├── autoscaling_with_eip_association │ │ └── autoscaling_with_eip.yaml │ ├── autoscaling_with_tagging_of_ebs │ │ ├── README.md │ │ └── autoscaling_with_tagging_of_ebs.yaml │ ├── cloudformation_add_condition │ │ ├── README.md │ │ ├── cloudformation_w_condition.yaml │ │ └── cloudformation_wo_condition.yaml │ ├── cloudformation_az_agnostic_one_file │ │ ├── README.md │ │ ├── params │ │ │ ├── ap-northeast-1.json │ │ │ ├── ap-northeast-2.json │ │ │ ├── ap-south-1.json │ │ │ ├── ap-southeast-1.json │ │ │ ├── ap-southeast-2.json │ │ │ ├── ca-central-1.json │ │ │ ├── eu-central-1.json │ │ │ ├── eu-west-1.json │ │ │ ├── eu-west-2.json │ │ │ ├── sa-east-1.json │ │ │ ├── us-east-1.json │ │ │ ├── us-east-2.json │ │ │ ├── us-west-1.json │ │ │ └── us-west-2.json │ │ └── vpc.yaml │ ├── cloudformation_change_export_value │ │ ├── README.md │ │ ├── cloudformation_exported_value.yaml │ │ └── cloudformation_import_value.yaml │ ├── cloudformation_change_parameters │ │ ├── README.md │ │ ├── network.yaml │ │ └── parameters │ │ │ ├── us-west-2_2az.json │ │ │ └── us-west-2_3az.json │ ├── cloudformation_secrets_manager_multiple_values │ │ ├── README.md │ │ ├── cloudformation_resolve_secrets_manager.yaml │ │ └── secrets_manager_secret.yaml │ ├── cloudformation_sub_with_parameter_store │ │ ├── README.md │ │ └── cloudformation_sub_with_parameter_store.yaml │ ├── cloudfront_access_logs_s3_with_rds │ │ ├── README.md │ │ └── cloudfront_s3_rds.yaml │ ├── cloudfront_with_s3_bucket │ │ ├── README.md │ │ └── cloudfront_with_s3_bucket.yml │ ├── cloudfront_with_two_s3_buckets │ │ ├── README.md │ │ └── cloudfront_with_two_s3_buckets.yml │ ├── control_stack_resource_updates │ │ ├── README.md │ │ ├── stack.yaml │ │ ├── stack_db_deleted.yaml │ │ ├── stack_policy.json │ │ └── stack_updated.yaml │ ├── cross_stack_reference_dns │ │ ├── README.md │ │ ├── elb_and_route53_recordset.json │ │ └── vpc_and_network.json │ ├── cross_stack_reference_export │ │ ├── README.md │ │ ├── network_vpc.json │ │ └── webservers.json │ ├── cross_stack_reference_lambda │ │ ├── README.md │ │ ├── vpc_and_network.json │ │ └── webservers.json │ ├── elb_with_autoscaling_and_single_subnet │ │ ├── README.md │ │ └── elb_with_autoscaling_and_single_subnet.json │ ├── export_multi_region │ │ ├── README.md │ │ ├── hosted_zone.yml │ │ └── hosted_zone_export.yml │ ├── fn_sub_with_imports │ │ ├── README.md │ │ ├── import_from.yaml │ │ └── import_to.yaml │ ├── function_transform_include │ │ ├── README.md │ │ ├── autoscaling_with_yaml_userdata.yaml │ │ └── ubuntu_ami.yaml │ ├── iam_inline_and_managed_policies │ │ ├── README.md │ │ └── iam_inline_and_managed_policies.yaml │ ├── if_in_cloudformation_resource_property │ │ ├── README.md │ │ └── if_in_cloudformation_resource_property.json │ ├── join_multiple_refs_into_string │ │ ├── README.md │ │ └── join_multiple_refs_into_string.template │ ├── multi_region_and_account_vpc_cloudformation │ │ ├── README.md │ │ └── multi_region_and_account_vpc_cloudformation.json │ ├── multi_region_vpc_cloudformation │ │ ├── README.md │ │ ├── multi_region_vpc_cloudformation_fngetazs-fails.json │ │ └── multi_region_vpc_cloudformation_map.json │ ├── nested_maps_workaround │ │ ├── README.md │ │ └── nested_maps_workaround.json │ ├── or_condition │ │ ├── README.md │ │ └── or_condition.yaml │ ├── rds │ │ └── encrypted_rds │ │ │ ├── README.md │ │ │ └── encrypted_rds.yaml │ ├── route53_change_by_environment │ │ ├── README.md │ │ └── route53_change_by_environment.yaml │ ├── s3_endpoint_with_parameters │ │ ├── README.md │ │ ├── s3_endpoint_allowed_resources.json │ │ └── s3_endpoint_allowed_resources_parameters.json │ ├── s3_endpoint_with_parameters_and_environment │ │ ├── README.md │ │ ├── dev01.json │ │ ├── prd01.json │ │ ├── qa01.json │ │ └── s3_endpoint_with_parameters_and_environment.yaml │ ├── security_group_change_by_environment │ │ ├── README.md │ │ └── security_group_change_by_environment.yaml │ ├── serverless_function │ │ ├── Documentation.md │ │ ├── deploy.sh │ │ ├── lambda │ │ │ └── hello_world.py │ │ └── serverless_function.yaml │ ├── variable_export_name │ │ ├── README.md │ │ └── variable_export_name.yml │ ├── vpc_flow_logs │ │ ├── README.md │ │ ├── flow_logs.yaml │ │ ├── setup.md │ │ └── vpc_flow_log_guard_duty.yaml │ ├── vpc_peering_with_two_stacks │ │ ├── README.md │ │ ├── vpc_client_01.json │ │ └── vpc_shared.json │ └── vpc_with_parameters_file │ │ ├── README.md │ │ ├── production_parameters_usw2.json │ │ ├── qa_parameters_usw2.json │ │ └── vpc_with_parameters_file.json ├── cloudfront │ ├── basic_cloudfront │ │ ├── README.md │ │ └── basic_cloudfront.yaml │ └── cloudfront_redirect_all_index_s3 │ │ ├── README-redirect_all_index_s3.md │ │ ├── README-redirect_all_index_s3_origin.md │ │ ├── cloudfront_redirect_all_index_s3.yaml │ │ ├── cloudfront_redirect_all_index_s3_s3_origin.yaml │ │ └── index.html ├── cloudtrail │ ├── cloudtrail_configuration │ │ ├── README.md │ │ └── cloudtrail_configuration.yaml │ ├── cloudtrail_configuration_with_athena │ │ ├── README.md │ │ └── cloudtrail_configuration_with_athena.yaml │ └── iam_command_audit │ │ └── iam_command_audit.py ├── cloudwatch_events │ └── cloudwatch_alert_on_api_event │ │ ├── README.md │ │ └── cloudwatch_alert_on_api_event.yaml ├── codedeploy │ ├── basic_codedeploy_install │ │ ├── README.md │ │ ├── basic_codedeploy_install.yaml │ │ └── files │ │ │ ├── appspec.yml │ │ │ ├── index.html │ │ │ └── scripts │ │ │ └── after_install.sh │ ├── codedeploy_agent_install_ubuntu_1510 │ │ ├── README.md │ │ ├── Vagrantfile │ │ ├── aws_credentials │ │ └── codedeploy_agent_install_ubuntu_1510.sh │ └── codedeploy_with_cloudformation_deploy │ │ ├── README.md │ │ └── nginx_fargate.yaml ├── documentdb │ └── basic_documentdb │ │ ├── README.md │ │ └── basic_documentdb.yaml ├── dynamodb │ └── dynamodb_only_allow_ssl │ │ ├── README.md │ │ ├── dynamodb_only_allow_ssl.yaml │ │ └── dynamodb_with_without_ssl.py ├── ec2 │ ├── api_eventual_consistency │ │ └── api_eventual_consistency.py │ ├── api_eventual_consistency_mitigation │ │ └── api_eventual_consistency_mitigation.py │ ├── ec2_asg │ │ ├── README.md │ │ └── toolserver.yaml │ ├── ec2_ref_security_group_other_vpc │ │ └── ec2_ref_security_group_other_vpc.json │ ├── ec2_with_macos │ │ ├── README.md │ │ └── ec2_with_macos.yaml │ ├── security_group_diff_by_env │ │ ├── README.md │ │ └── security_group_diff_by_env.yaml │ └── security_group_egress_testing │ │ ├── README.md │ │ └── security_group_egress_testing.yaml ├── ecr │ ├── ecr_with_scan_and_sns_publish │ │ ├── README.md │ │ └── ecr_with_scan_and_sns_publish.yaml │ └── ecr_with_scan_and_sns_publish_and_filter │ │ ├── README.md │ │ └── ecr_with_scan_and_sns_publish_and_filter.yaml ├── ecs │ ├── ecs_cluster │ │ ├── README.md │ │ └── ecs_cluster.yaml │ ├── ecs_cpu_utilization_measurement │ │ ├── README.md │ │ └── ecs_cpu_utilization_measurement.yaml │ ├── ecs_introduction │ │ ├── README.md │ │ └── ecs_introduction.yaml │ ├── ecs_large_disk │ │ ├── README.md │ │ └── ecs_large_disk.yaml │ ├── ecs_run_task │ │ ├── README.md │ │ └── ecs_run_task.yaml │ ├── ecs_run_task_with_db │ │ ├── README.md │ │ └── ecs_run_task_with_db.yaml │ ├── ecs_service_with_two_elb │ │ ├── README.md │ │ └── ecs_two_elb.yaml │ ├── ecs_task_constraint │ │ ├── README.md │ │ ├── ecs_task_constraint.yaml │ │ └── task_constraint.yaml │ ├── ecs_task_with_secretsmanager │ │ ├── README.md │ │ ├── ecs_task_with_secretsmanager.yaml │ │ └── parse_combined_secrets.js │ ├── ecs_with_eventbridge_and_metrics │ │ ├── README.md │ │ └── ecs_with_eventbridge_and_metrics.yaml │ ├── ecs_with_fluentd_collector │ │ ├── README.md │ │ └── ecs_with_fluentd_collector.yaml │ ├── ecs_with_iam_task_role │ │ ├── README.md │ │ └── ecs_with_iam_task_role.yaml │ ├── ecs_with_jsonfile_fluentd_collector │ │ ├── README.md │ │ └── ecs_with_jsonfile_fluentd_collector.yaml │ ├── ecs_with_jsonfile_fluentd_collector_s3_endpoint │ │ ├── README.md │ │ └── ecs_with_jsonfile_fluentd_collector_s3_endpoint.yaml │ ├── ecs_with_service_autoscaling │ │ ├── README.md │ │ ├── ecs_with_service_autoscaling.yaml │ │ └── elb_request.sh │ └── ecs_with_task_with_ssm │ │ ├── README.md │ │ └── ecs_with_task_with_ssm.yaml ├── ecs_fargate │ ├── ecs_fargate_with_nginx_service │ │ ├── README.md │ │ └── ecs_fargate_with_nginx_service.yaml │ ├── fargate_firelens │ │ ├── README.md │ │ └── fargate_firelens.yaml │ ├── fargate_firelens_splunk │ │ ├── README.md │ │ └── fargate_firelens_splunk.yaml │ ├── fargate_scheduled_task │ │ ├── README.md │ │ └── fargate_scheduled_task.yaml │ └── fargate_splunk │ │ ├── README.md │ │ └── fargate_splunk.yaml ├── efs │ └── basic_efs_with_autoscaling │ │ ├── README.md │ │ └── basic_efs_with_autoscaling.yaml ├── eks │ ├── eks_in_fargate │ │ ├── README.md │ │ ├── eks_in_fargate.yaml │ │ └── nginx.yaml │ ├── eks_in_fargate_with_ingress │ │ ├── README.md │ │ ├── eks_in_fargate.yaml │ │ └── nginx.yaml │ ├── eks_introduction │ │ ├── README.md │ │ ├── application_definitions │ │ │ ├── nginx_deployment.yaml │ │ │ ├── nginx_service.yaml │ │ │ ├── nginx_service_with_elb.yaml │ │ │ └── nginx_service_with_elb_tcp.yaml │ │ ├── aws-auth-cm.yaml │ │ ├── eks_introduction.yaml │ │ └── eks_start_nginx.md │ ├── eks_node_affinity │ │ ├── aws-auth-cm.yaml │ │ ├── eks_build.md │ │ ├── eks_create_pods.md │ │ ├── eks_node_affinity.yaml │ │ └── pod_definitions │ │ │ ├── web_deployment.yaml │ │ │ └── worker_deployment.yaml │ ├── eks_with_cwagent │ │ ├── README.md │ │ ├── cwagent_in_fargate_with_metrics.yaml │ │ └── eks_with_cwagent.yaml │ └── eks_with_oidc_provider │ │ ├── README.md │ │ └── eks_with_oidc_provider.yaml ├── elasticache │ ├── elasticache_redis_cluster_write_test │ │ ├── README.md │ │ ├── elasticache_redis_cluster_write_test.yaml │ │ └── redis_cluster_write_ruby.rb │ ├── elasticache_redis_performance_test │ │ ├── README.md │ │ ├── elasticache_redis_benchmarking.yaml │ │ └── elasticache_redis_benchmarking_with_shards.yaml │ ├── elasticache_redis_with_replication_group │ │ ├── README.md │ │ └── elasticache_redis_with_replication_group.yaml │ └── elasticache_understanding_redis_configuration_options │ │ ├── README.md │ │ ├── elasticache_cachecluster_options.yaml │ │ ├── elasticache_replicationgroup_autofailover_options.yaml │ │ ├── elasticache_replicationgroup_nodegroups.yaml │ │ └── elasticache_replicationgroup_nodegroups_and_replicas_per_nodegroup.yaml ├── elasticbeanstalk │ ├── elasticbeanstalk_deployment │ │ ├── README.md │ │ └── eb_deploy.dot │ ├── elasticbeanstalk_versionlifecycle │ │ └── eb-app.yaml │ ├── elasticbeanstalk_with_application_load_balancer │ │ ├── README.md │ │ └── elasticbeanstalk_with_application_load_balancer.yaml │ ├── elasticbeanstalk_with_application_load_balancer_via_https │ │ ├── README.md │ │ └── elasticbeanstalk_with_application_load_balancer_via_https.yaml │ ├── elasticbeanstalk_with_cron │ │ ├── .ebextensions │ │ │ └── 01_crons.config │ │ ├── .gitignore │ │ ├── README.md │ │ ├── app.py │ │ ├── crons │ │ │ └── eb_crons │ │ ├── infra │ │ │ └── elasticbeanstalk_with_cron.yaml │ │ └── requirements.txt │ ├── elasticbeanstalk_with_ennvars │ │ ├── README.md │ │ └── elasticbeanstalk_with_envvars.yaml │ ├── elasticbeanstalk_with_multiple_envs │ │ ├── README.md │ │ └── elasticbeanstalk_with_multiple_envs.yaml │ ├── elasticbeanstalk_with_nodejs │ │ ├── README.md │ │ └── elasticbeanstalk_with_nodejs.yaml │ └── elasticbeanstalk_with_scaling_metric │ │ ├── README.md │ │ └── elasticbeanstalk_with_scaling_metric.yaml ├── elasticsearch │ ├── basic_elasticsearch_no_vpc │ │ ├── README.md │ │ └── basic_elasticsearch_no_vpc.yaml │ └── basic_elasticsearch_with_vpc │ │ ├── README.md │ │ └── basic_elasticsearch_with_vpc.yaml ├── elb │ └── elb_backend_selfsigned_cert │ │ ├── README.md │ │ ├── Vagrantfile │ │ ├── apache_selfsigned_cert.sh │ │ └── elb_backend_selfsigned_cert.yaml ├── elbv2 │ ├── alb_with_ssl_policy │ │ ├── README.md │ │ └── alb_with_ssl_policy.yaml │ ├── basic_alb_with_asg │ │ ├── README.md │ │ └── basic_alb_with_asg.yaml │ └── basic_alb_with_redirect │ │ ├── README.md │ │ └── basic_alb_with_redirect.yaml ├── eventbridge │ ├── basic_eventbus_and_sender │ │ ├── README.md │ │ ├── basic_eventbus.yaml │ │ └── sample_ec2_events.json │ └── basic_eventbus_with_rule │ │ ├── README.md │ │ ├── basic_eventbus_with_rule.yaml │ │ └── sample_ec2_events.json ├── guard_duty │ ├── README.md │ └── guard_duty.yaml ├── iam │ ├── iam_launch_in_particular_subnet │ │ ├── README.md │ │ └── iam_launch_in_particular_subnet.yaml │ ├── iam_launch_in_particular_subnet_aws_console │ │ ├── README.md │ │ └── iam_launch_in_particular_subnet_aws_console.yaml │ ├── iam_manage_own_mfa │ │ ├── README.md │ │ └── iam_manage_own_mfa.yaml │ ├── iam_managed_by_ec2_owner │ │ ├── README.md │ │ └── iam_managed_by_ec2_owner.yaml │ ├── iam_managed_by_ec2_owner_aws_console │ │ ├── README.md │ │ └── iam_managed_by_ec2_owner_aws_console.yaml │ └── iam_s3_safe_api_actions │ │ ├── README.md │ │ ├── iam_s3_safe_api_actions.yaml │ │ └── s3_bucket_all_public.json ├── lambda │ ├── lambda_deployment_comparison │ │ ├── aws_cli_cfn │ │ │ ├── README.md │ │ │ ├── hello_world.py │ │ │ └── lambda_template.yaml │ │ ├── aws_cli_raw │ │ │ ├── README.md │ │ │ ├── hello_world.py │ │ │ └── lambda_iam_role_configuration │ │ │ │ └── assume-role-policy-document.json │ │ └── serverless │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── handler.py │ │ │ └── serverless.yml │ ├── lambda_with_logging │ │ ├── README.md │ │ ├── handler.py │ │ └── serverless.yml │ └── lambda_with_ssm │ │ ├── README.md │ │ ├── handler.py │ │ ├── requirements.txt │ │ └── serverless.yml ├── msk │ └── basic_msk_cluster │ │ ├── README.md │ │ └── basic_msk_cluster.yaml ├── nlb │ ├── basic_nlb │ │ ├── README.md │ │ └── basic_nlb.yaml │ ├── basic_nlb_with_autoscaling │ │ ├── README.md │ │ └── basic_nlb_with_autoscaling.yaml │ └── basic_nlb_with_static_ips │ │ ├── README.md │ │ └── basic_nlb_with_static_ips.yaml ├── rds │ ├── aurora │ │ ├── basic_aurora_cluster │ │ │ ├── README.md │ │ │ └── basic_aurora_cluster.yaml │ │ ├── basic_aurora_cluster_read_replica │ │ │ ├── README.md │ │ │ └── basic_aurora_cluster_read_replica.yaml │ │ └── basic_aurora_instance │ │ │ ├── README.md │ │ │ └── basic_aurora_instance.yaml │ ├── basic_rds_instance_mysql │ │ ├── README.md │ │ └── basic_rds_instance.yaml │ ├── basic_rds_instance_with_asg │ │ ├── README.md │ │ └── basic_rds_instance_with_asg.yaml │ ├── postgres_rds_instance │ │ ├── README.md │ │ └── postgres_rds_instance.yaml │ ├── rds_with_iam_authentication │ │ └── README.md │ ├── rds_with_readreplica │ │ ├── README.md │ │ └── rds_with_readreplica.yaml │ └── vpc_with_rds_databases_and_asg │ │ └── README.md ├── route53 │ ├── create_private_route53_zone │ │ ├── README.md │ │ └── create_private_route53_zone.json │ ├── route53_resolver_multiple_vpcs │ │ ├── README.md │ │ ├── route53_resolver_multiple_vpcs_fail.yaml │ │ └── route53_resolver_vpc_peering.yaml │ └── route53_weighted_routing │ │ ├── README.md │ │ └── route53_weighted_routing.yaml ├── s3 │ ├── populate_s3_with_objects │ │ └── populate_s3_with_objects.py │ ├── s3_access_from_particular_ip_range │ │ ├── main.tf │ │ ├── s3_vpc_endpoint_policy.json │ │ ├── s3_with_delete.json │ │ └── s3_with_list_and_delete.json │ ├── s3_bucket_with_versioning │ │ ├── LifecycleConfigurationTest.md │ │ ├── README.md │ │ ├── bucket-with-versioning.yaml │ │ ├── output-example.png │ │ └── waffles.jpg │ ├── s3_endpoint_allow_selected_s3_alternative_region │ │ ├── README.md │ │ ├── s3_buckets_alternative_region.yaml │ │ └── s3_endpoint_allow_specific_bucket.yaml │ └── s3_vpc_endpoint_terraform │ │ ├── README.md │ │ ├── asg.tf │ │ ├── main.tf │ │ ├── s3.tf │ │ ├── s3_vpc_endpoint_policy.json │ │ └── vpc.tf ├── ssm │ └── ssm_with_autoscaling_and_ec2_userdata │ │ ├── README.md │ │ └── ssm_with_autoscaling_and_ec2_userdata.yaml ├── sts │ └── sts_basic_application │ │ ├── README.md │ │ ├── Resources │ │ ├── assume_role - Required Trust Relationship.json │ │ └── get_federation_token - Required Permissions.json │ │ └── sts_basic_application.py ├── terraform │ ├── elasticache │ │ └── aws_elasticache_replication_group │ │ │ └── main.tf │ └── guardduty │ │ ├── guardduty_detector │ │ └── main.tf │ │ └── guardduty_detector_organization_configuration │ │ └── main.tf ├── transitgateway │ └── basic_transit_gateway │ │ ├── README.md │ │ └── transit_gateway.yaml ├── vpc │ ├── vpc_endpoint_with_controlled_egress │ │ ├── README.md │ │ └── vpc_endpoint_with_controlled_egress.yaml │ ├── vpc_endpoint_with_controlled_egress_via_allowed_route │ │ ├── README.md │ │ └── vpc_endpoint_with_controlled_egress_via_allowed_route.yaml │ ├── vpc_endpoint_with_squid │ │ ├── README.md │ │ └── vpc_endpoint_with_squid.yaml │ ├── vpc_endpoint_with_squid_and_tdagent │ │ ├── README.md │ │ └── vpc_endpoint_with_squid_and_tdagent.yaml │ ├── vpc_public_and_private_subnets │ │ ├── README.md │ │ └── vpc_public_and_private_subnets.yaml │ ├── vpc_two_subnets_asg_with_public_ip │ │ ├── README.md │ │ └── vpc_two_subnets_asg_with_public_ip.template │ └── vpc_with_public_subnets │ │ ├── README.md │ │ └── vpc_with_public_subnets.yaml └── wafv2 │ ├── wafv2_with_cloudfront │ ├── README.md │ └── wafv2_with_cloudfront.yaml │ ├── wafv2_with_elbv2 │ ├── README.md │ └── wafv2_with_elbv2.yaml │ ├── wafv2_with_elbv2_block_by_ip_set │ ├── README.md │ └── wafv2_with_elbv2_block_by_ip_set.yaml │ └── wafv2_with_elbv2_with_logging │ ├── README.md │ └── wafv2_with_elbv2_with_logging.yaml ├── azure └── azure_storage_account │ └── main.tf ├── bash ├── dynamically_generate_variable │ └── dynamically_generate_variable.sh └── if_or_condition │ └── if_or_condition.sh ├── blackfire └── blackfire_agent_install │ ├── README.md │ ├── Vagrantfile │ └── blackfire_install.sh ├── celery └── celery_and_flower_in_docker │ ├── celery │ └── Dockerfile │ ├── docker-compose.yml │ └── flower │ └── Dockerfile ├── centos ├── centos_change_timezone │ ├── Vagrantfile │ └── centos_change_timezone.sh └── centos_systemd_enable │ ├── Vagrantfile │ └── centos_systemd_enable.sh ├── checkpoint └── basic_checkpoint_next_gen_firewall │ ├── README.md │ └── basic_checkpoint_next_gen_firewall.yaml ├── circleci ├── circleci_aws_cli │ ├── README.md │ └── config.yml └── circleci_image_browser │ └── circleci_image_browser.py ├── cisco └── asa │ └── cisco_basic_asav │ ├── README.md │ └── cisco_basic_asav.yaml ├── crashplan ├── crashplan_client_ubuntu │ ├── README.md │ ├── Vagrantfile │ └── crashplan_server.sh └── crashplan_server │ ├── Vagrantfile │ └── crashplan_server.sh ├── css ├── css_position │ └── css_position.html └── css_selectors │ └── css_selectors.html ├── datadog ├── datadog_logs_install │ ├── README.md │ ├── Vagrantfile │ └── datadog_logs_install.sh └── datadog_run_local_agent │ └── datadog_run_local_with_docker.md ├── debezium └── debezium_in_ecs │ ├── NOTES.md │ ├── README.md │ └── debezium_in_ecs.yaml ├── debian └── debian_update_timezone │ ├── Dockerfile │ └── README.md ├── docker ├── docker_add_host_option │ └── README.md ├── docker_build_with_build_args │ ├── Dockerfile │ └── README.md ├── docker_build_with_service │ ├── Dockerfile │ └── README.md ├── docker_compose_basic │ ├── README.md │ ├── docker-compose.yaml │ ├── mysql │ │ └── Dockerfile │ └── web │ │ ├── Dockerfile │ │ ├── requirements.txt │ │ └── web.py ├── docker_compose_with_mysql │ ├── README.md │ └── docker-compose.yaml ├── docker_create_image │ ├── Vagrantfile │ └── docker_create_image.sh ├── docker_create_tomcat │ ├── Vagrantfile │ └── docker_create_tomcat.sh ├── docker_exit_with_shell_entrypoint │ ├── README.md │ ├── nginx │ │ └── Dockerfile │ ├── nginx_shell_wrapper │ │ ├── Dockerfile │ │ └── entrypoint.sh │ ├── nginx_shell_wrapper_exec_bash │ │ ├── Dockerfile │ │ └── entrypoint.sh │ └── nginx_shell_wrapper_exec_mode │ │ ├── Dockerfile │ │ └── entrypoint.sh ├── docker_fluentd_log_driver │ ├── Vagrantfile │ └── docker_apache_fluentd.sh ├── docker_network_understanding │ ├── README.md │ ├── Vagrantfile │ └── docker_test_networking.sh ├── docker_port_range_publish │ ├── Vagrantfile │ ├── docker_port_range_publish.sh │ └── port_test.conf ├── docker_volume_mount │ └── README.md ├── docker_with_environment_variable │ ├── Dockerfile │ └── README.md ├── docker_with_nginx_gzip │ ├── Dockerfile │ ├── README.md │ └── nginx.conf ├── docker_with_nginx_proxy_to_nodejs │ ├── Dockerfile │ ├── README.md │ ├── default.conf │ ├── entrypoint.sh │ ├── provision.sh │ └── static │ │ ├── index.html │ │ ├── package-lock.json │ │ ├── package.json │ │ └── server.js ├── jsonfile_with_multiple_labels │ └── README.md ├── supervisor_test │ ├── Dockerfile │ ├── default.conf │ ├── entrypoint.sh │ ├── nginx.conf │ ├── provision.sh │ ├── static │ │ ├── index.html │ │ ├── package-lock.json │ │ └── server.js │ └── supervisord.conf └── vagrant_running_docker │ ├── Vagrantfile │ └── docker_install.sh ├── dot └── basic_dot_digraph │ └── basic_dot_digraph.dot ├── duplicity └── duplicity_backup.yaml ├── elastalert ├── elastalert_basic_install │ ├── Vagrantfile │ └── deploy.sh ├── elastalert_prototype │ ├── Vagrantfile │ ├── config.yaml │ ├── deploy.sh │ ├── random_number.yaml │ └── random_number_generator.sh └── elastalert_supervisord │ ├── Vagrantfile │ ├── config.yaml │ └── deploy.sh ├── elastic ├── basic_elasticsearch_server │ ├── Vagrantfile │ ├── basic_elasticsearch_server.sh │ └── resize_index.md ├── filebeat_parse_json_logs │ ├── curl_search.sh │ ├── provision_elasticsearch.sh │ └── vagrantfile └── filebeat_ship_elasticsearch │ ├── Vagrantfile │ └── filebeat_ship_elasticsearch.sh ├── envkey ├── node_envkey_app │ ├── README.md │ ├── envkey.js │ ├── package-lock.json │ └── package.json └── node_envkey_app_precedence │ ├── .env │ ├── README.md │ ├── envkey.js │ └── package.json ├── fluentbit ├── fluentbit_with_custom_config │ ├── README.md │ └── conf │ │ └── fluent-bit.conf ├── fluentbit_with_http_monitoring │ ├── README.md │ └── conf │ │ └── fluent-bit.conf ├── fluentbit_with_s3_output_config │ ├── README.md │ ├── conf │ │ └── fluent-bit.conf │ └── fluentbit.env └── fluentbit_with_tag_setter_and_selector │ ├── README.md │ └── conf │ └── fluent-bit.conf ├── fluentd ├── basic_fluentd_install_centos │ ├── Vagrantfile │ └── basic_fluentd_install_centos.sh ├── basic_fluentd_install_centos_ansible │ ├── Vagrantfile │ └── ansible │ │ └── playbook.yaml ├── basic_fluentd_install_ubuntu_from_gem │ ├── Vagrantfile │ └── ubuntu_install_fluentd_gem.sh ├── basic_fluentd_use_centos_ansible │ ├── Vagrantfile │ └── ansible │ │ ├── playbook.yml │ │ └── roles │ │ └── fluentd │ │ ├── files │ │ └── td-agent │ │ ├── tasks │ │ └── main.yml │ │ └── templates │ │ ├── config.d │ │ ├── match.d │ │ │ └── standard.conf │ │ └── source.d │ │ │ └── system_logs.conf │ │ └── td-agent.conf ├── fluentd_to_s3_only │ ├── README.md │ └── fluentd_to_s3_only.yaml └── fluentd_use_environment_variable │ ├── Vagrantfile │ └── fluentd_use_environment_variable.sh ├── fortinet └── fortigate │ └── basic_fortigate_install │ ├── README.md │ └── basic_fortigate_install.yaml ├── freebsd └── freebsd_aws_userdata │ ├── README.md │ └── freebsd_aws_userdata.yaml ├── gatsby ├── .gitignore ├── LICENSE ├── README.md ├── gatsby-config.js ├── package-lock.json ├── package.json └── src │ └── pages │ └── index.js ├── gitlab ├── gitlab_runner_terraform │ ├── README.md │ ├── main.tf │ ├── templates │ │ └── gitlab_runner.sh │ └── variables.tf └── gitlab_runner_vagrant │ ├── Vagrantfile │ └── gitlab_runner.sh ├── go ├── hello_world │ └── hello_world.go └── newrelic_api_connector │ ├── go.mod │ ├── go.sum │ └── newrelic_api_connector.go ├── gradle ├── gradle_api │ └── build.gradle ├── gradle_basics │ └── build.gradle ├── gradle_dependencies │ └── build.gradle ├── gradle_file_exists │ ├── build.gradle │ └── test_file_exists.txt ├── gradle_rename_root_project │ ├── build.gradle │ └── settings.gradle ├── gradle_tar_directory │ ├── build.gradle │ ├── exclude_dir │ │ └── exclude_test_file.txt │ ├── lib │ │ └── lib_test_file.txt │ ├── root_test_file.txt │ └── src │ │ └── src_test_file.txt ├── hello_world │ ├── README.md │ ├── build.gradle │ └── src │ │ └── main │ │ └── java │ │ └── org │ │ └── world │ │ └── hello │ │ └── HelloWorld.java └── webapp │ ├── README.md │ ├── build.gradle │ └── src │ └── main │ ├── java │ └── org │ │ └── test │ │ └── webapp │ │ ├── OSInfoServlet.java │ │ ├── RequestInfoServlet.java │ │ └── RootServlet.java │ └── webapp │ └── WEB-INF │ └── web.xml ├── grafana ├── elasticsearch_logstash_grafana │ ├── Vagrantfile │ └── deploy.sh └── elasticsearch_logstash_latest_grafana │ ├── Vagrantfile │ ├── data_sources │ └── elasticsearch.json │ └── deploy.sh ├── grpc ├── README.md ├── basic_grpc │ ├── ec2.yaml │ └── greeter_client.py ├── basic_grpc_with_load_balancer │ ├── ec2.yaml │ └── greeter_client.py ├── greeter_server.py ├── grpc_helloworld.sh ├── helloworld_pb2.py └── helloworld_pb2_grpc.py ├── grunt ├── grunt_arguments │ ├── Gruntfile.js │ └── package.json ├── grunt_compress_directory │ ├── Gruntfile.js │ ├── directory_to_be_compressed │ │ ├── directory_1 │ │ │ └── file_1.txt │ │ └── directory_2 │ │ │ └── file_2.txt │ └── package.json ├── grunt_environment_variables │ ├── Gruntfile.js │ └── package.json ├── grunt_fail │ ├── Gruntfile.js │ └── package.json └── grunt_multitask │ ├── Gruntfile.js │ └── package.json ├── haproxy └── haproxy_with_ssh │ ├── Vagrantfile │ ├── backend.sh │ ├── haproxy_with_ssh.sh │ └── ubuntu-xenial-16.04-cloudimg-console.log ├── helm └── basic_helm_chart │ └── webserver │ ├── .helmignore │ ├── Chart.yaml │ ├── README.md │ ├── templates │ ├── deployment.yaml │ └── service.yaml │ └── values.yaml ├── heroku ├── heroku_api_python_examples │ └── heroku_python_api_get_dynos.py └── heroku_python_basic_app │ ├── Procfile │ ├── README.md │ ├── hello.py │ └── requirements.txt ├── hiera └── hiera_test │ ├── common.yaml │ └── hiera_test.pp ├── influxdb └── basic_influxdb │ ├── README.md │ ├── Vagrantfile │ └── basic_influxdb.sh ├── istio ├── add_istio_sidecar │ ├── README.md │ └── nginx │ │ └── run-my-nginx.yaml ├── basic_istio │ └── README.md └── istio_install_with_helm │ ├── README.md │ └── nginx │ └── nginx.yaml ├── java ├── basic_heapdump │ ├── MemoryEater.java │ └── README.md ├── basic_heapdump_jmap │ ├── ForLoop.java │ └── README.md ├── calendar │ └── basic_calendar_use │ │ └── CalendarApp.java ├── environment_variables │ └── EnvironmentVariables.java └── springwebapp │ ├── Vagrantfile │ ├── basic_tomcat.sh │ ├── pom.xml │ └── src │ └── main │ ├── java │ └── com │ │ └── cloudavail │ │ └── HelloWorldController.java │ └── webapp │ └── WEB-INF │ ├── helloWorld.jsp │ ├── mvc-dispatcher-servlet.xml │ └── web.xml ├── javascript └── return_uri │ └── return_uri.html ├── jenkins ├── jenkins_on_aws_with_efs │ ├── README.md │ ├── Vagrantfile │ ├── jenkins_autoscaling.yaml │ ├── jenkins_build.sh │ └── jenkins_efs.yaml └── vagrant_jenkins │ ├── README.md │ ├── Vagrantfile │ └── jenkins_build.sh ├── jquery └── console_log │ └── console_log.html ├── juniper └── vsrx │ └── juniper_basic_vsrx │ ├── README.md │ └── juniper_basic_vsrx.yaml ├── kotlin └── kotlin_compile_and_run_performance │ ├── Vagrantfile │ └── kotlin_compile_run_java.sh ├── kubernetes ├── kubernetes_basic_deployment │ ├── README.md │ └── nginx_deployment.yaml ├── kubernetes_cronjob │ ├── README.md │ └── cronjob.yaml ├── kubernetes_deploy │ ├── README.md │ └── config │ │ ├── README.md │ │ ├── deploy │ │ └── dev │ │ │ ├── nginx.yaml │ │ │ ├── nginx_config_map.yaml │ │ │ └── nginx_predeploy.yaml.erb │ │ └── namespaces │ │ └── dev.yaml ├── kubernetes_env_var_from_config_map │ ├── README.md │ ├── configmap │ │ └── development.yaml │ └── pods │ │ └── nginx.yaml ├── kubernetes_expose_node_hostname │ ├── README.md │ └── pod_echo_node_hostname.yaml ├── kubernetes_pod_liveness_probe_with_exec │ ├── README.md │ └── pod_liveness_probe_with_exec.yaml ├── kubernetes_pod_memory_limit_oom │ ├── README.md │ └── mem_stress.yaml ├── kubernetes_pod_with_configmap │ ├── README.md │ ├── configmap.yaml │ └── pod.yaml ├── kubernetes_pod_with_configmap_as_file │ ├── README.md │ ├── configmap.yaml │ └── pod.yaml ├── kubernetes_pod_with_secrets_as_file │ ├── README.md │ ├── pod.yaml │ ├── secrets.txt │ └── secrets.yaml ├── kubernetes_single_pod_deployment │ ├── README.md │ ├── nginx_114.yaml │ └── nginx_115.yaml └── kubernetes_with_aws_secrets_controller_poc │ ├── README.md │ ├── eks_introduction.yaml │ ├── nginx.yaml │ └── trust.json ├── ldap ├── ldap_cli_basic_commands │ └── ldapsearch_basic_commands.md └── openldap │ ├── openldap_unattended_install │ ├── Vagrantfile │ └── openldap_unattended_install.sh │ └── openldap_unattended_install_with_db_load │ ├── README.md │ ├── Vagrantfile │ ├── cloudavail_db_config.ldif │ ├── cloudavail_db_data.ldif │ └── openldap_unattended_install_with_db_load.sh ├── logdna ├── basic_logdna_config │ ├── README.md │ ├── Vagrantfile │ └── logdna_config.sh ├── logdna_curl │ ├── README.md │ └── send_logs.sh └── logdna_fluentd_forwarder │ ├── README.md │ ├── Vagrantfile │ └── logdna_config.sh ├── logstash ├── beats_and_logtash │ ├── Vagrantfile │ ├── beats_shipper.sh │ └── logstash_listener.sh ├── logstash_container_on_ecs │ ├── README.md │ └── logstash_container_on_ecs.yaml ├── logstash_field_reference │ ├── Vagrantfile │ └── logstash_field_reference.sh ├── logstash_if_in_output │ ├── Vagrantfile │ └── logstash_if_in_output.sh ├── logstash_installed_via_ansible │ ├── README.md │ ├── Vagrantfile │ └── ansible │ │ ├── playbook.yml │ │ └── roles │ │ └── logstash_server │ │ ├── files │ │ └── elasticsearch.repo │ │ └── tasks │ │ └── main.yml └── logstash_to_s3 │ ├── Vagrantfile │ └── logstash_to_s3.sh ├── make └── make_accept_cli_argument │ └── Makefile ├── maven ├── maven_basic_project │ ├── README.md │ ├── Vagrantfile │ ├── artifact │ │ ├── pom.xml │ │ └── target │ │ │ ├── classes │ │ │ └── com │ │ │ │ └── cloudavail │ │ │ │ └── App.class │ │ │ ├── maven-archiver │ │ │ └── pom.properties │ │ │ ├── maven-status │ │ │ └── maven-compiler-plugin │ │ │ │ ├── compile │ │ │ │ └── default-compile │ │ │ │ │ ├── createdFiles.lst │ │ │ │ │ └── inputFiles.lst │ │ │ │ └── testCompile │ │ │ │ └── default-testCompile │ │ │ │ ├── createdFiles.lst │ │ │ │ └── inputFiles.lst │ │ │ ├── surefire-reports │ │ │ ├── TEST-com.cloudavail.AppTest.xml │ │ │ └── com.cloudavail.AppTest.txt │ │ │ └── test-classes │ │ │ └── com │ │ │ └── cloudavail │ │ │ └── AppTest.class │ └── install_maven.sh └── maven_bintray_deploy │ ├── README.md │ ├── Vagrantfile │ ├── install_maven.sh │ └── settings.xml ├── microsoft └── windows_7 │ └── disable_windows_10_upgrade │ └── disable_windows_10_upgrade.reg ├── mongodb └── mongodbatlas_with_terraform │ ├── README.md │ └── main.tf ├── mysql ├── basic_docker_mysql_container │ ├── Dockerfile │ └── README.md ├── basic_docker_mysql_container_with_database │ ├── Dockerfile │ ├── README.md │ └── world.sql ├── basic_mysql_server │ ├── Vagrantfile │ └── mysql_basic_install.sh └── mysql_commands │ └── README.md ├── nagios ├── nagios_bash_check │ ├── Vagrantfile │ ├── bash_monitor.sh │ └── nagios_bash_check.sh └── nagios_basic_install │ ├── Vagrantfile │ └── nagios_basic_install.sh ├── newrelic ├── newrelic_cloudwatch_agent_install │ ├── Vagrantfile │ ├── install_newrelic_cloudwatch_agent.sh │ └── newrelic_plugin.yml ├── newrelic_logging │ ├── Vagrantfile │ └── install_newrelic_logging.sh ├── newrelic_php_agent_install │ ├── Vagrantfile │ └── ansible │ │ ├── files │ │ ├── index.php │ │ └── nginx.conf │ │ └── playbook.yml └── newrelic_send_telemetry_python │ └── newrelic_send_telemetry_python.py ├── next_app └── nextjs-test-cloudavail │ ├── README.md │ ├── package-lock.json │ ├── package.json │ └── pages │ ├── index.js │ └── posts │ └── first-post.js ├── nginx ├── centos_nginx_php │ ├── Vagrantfile │ ├── centos_nginx_php.sh │ └── nginx.conf ├── centos_nginx_php_ansible │ ├── Vagrantfile │ └── ansible │ │ ├── files │ │ ├── index.php │ │ └── nginx.conf │ │ └── playbook.yml ├── nginx_proxy_pass │ ├── README.md │ ├── Vagrantfile │ └── nginx_proxy_pass.sh ├── nginx_redirector │ ├── README.md │ ├── Vagrantfile │ └── nginx_redirector.sh ├── nginx_redirector_specific_path │ ├── README.md │ ├── Vagrantfile │ └── nginx_redirector_specific_path.sh ├── nginx_uwsgi_flask │ ├── Vagrantfile │ ├── flask_app.py │ ├── nginx_uwsgi_config │ ├── nginx_uwsgi_flask.sh │ └── uwsgi_config.ini ├── nginx_uwsgi_flask_with_passed_variable │ ├── Vagrantfile │ ├── config │ │ ├── development.cfg │ │ └── production.cfg │ ├── flask_app.py │ ├── nginx_uwsgi_config │ ├── nginx_uwsgi_flask.sh │ └── uwsgi_config.ini ├── ubuntu_nginx_php │ ├── Vagrantfile │ ├── etc │ │ └── nginx │ │ │ └── sites-available │ │ │ └── default │ ├── php_site │ │ └── index.php │ └── ubuntu_nginx_php.sh └── ubuntu_nginx_php_env_variable │ ├── Vagrantfile │ ├── etc │ └── nginx │ │ └── sites-available │ │ └── default │ ├── php_site │ └── index.php │ └── ubuntu_nginx_php.sh ├── nmap └── python-nmap-scanner │ ├── README.md │ ├── python-nmap-scanner-multiple-hosts.py │ └── python-nmap-scanner.py ├── nodejs ├── basic_node_package │ ├── README.md │ ├── index.js │ └── package.json ├── hello_world │ ├── README.md │ └── hello_world.js ├── node_asynchronous_options │ ├── 1200px-Llama_lying_down.jpg │ ├── 2560px-Lama_glama_Laguna_Colorada_2.jpg │ ├── README.md │ ├── callback.js │ ├── node_initial_file.js │ ├── node_with_sleep_statements.js │ ├── promise.js │ ├── test.html │ ├── test_with_callbacks.js │ └── test_with_promise.js ├── node_basic_argparse │ └── basic_argparse.js ├── node_basic_promise │ └── node_basic_promise.js ├── node_basic_sequelize │ ├── node_basic_sequelize.js │ ├── package-lock.json │ └── package.json ├── node_docker_cpu_measures │ ├── README.md │ └── cpu_count.js ├── node_dotenv │ ├── .env │ ├── README.md │ ├── dotenv.js │ ├── package-lock.json │ └── package.json ├── node_for_loop │ ├── README.md │ ├── node_for_loop.js │ └── warriors2019.txt ├── node_heapdump │ ├── README.md │ ├── index.js │ ├── package-lock.json │ └── package.json ├── node_jest_test │ ├── README.md │ ├── package.json │ ├── sum.js │ ├── sum.test.js │ └── yarn.lock ├── node_read_file │ ├── README.md │ ├── node_read_file_sync.js │ └── warriors2019.txt ├── node_ssh_tunnel │ ├── README.md │ ├── package-lock.json │ ├── package.json │ ├── ssh_tunnel.js │ └── vars.sh ├── node_variable_interpolation_from_envvar │ ├── README.md │ └── node_variable_interpolation_from_envvar.js ├── node_wait_on_for_port │ ├── README.md │ ├── package-lock.json │ └── package.json ├── node_with_inspect │ ├── README.md │ └── index.js ├── npm-audit-resolver │ ├── audit-resolve.json │ ├── package-lock.json │ └── package.json └── return_aws_cloudformation_outputs │ └── return_aws_cloudformation_outputs.js ├── nodejs_command ├── aws_api_command │ ├── README.md │ ├── aws_api.js │ ├── package-lock.json │ └── package.json ├── hello_world │ ├── README.md │ └── hello_world.js └── nodejs_mediaconvert_createjob │ ├── README.md │ ├── nodejs_mediaconvert_createjob.js │ ├── nodejs_mediaconvert_get_endpoint.js │ └── package.json ├── ntop ├── basic_ntop │ ├── Vagrantfile │ └── bootstrap.sh └── basic_ntopng │ ├── Vagrantfile │ └── bootstrap.sh ├── ntp └── ntp_client_centos │ ├── Vagrantfile │ └── ntp_client_centos.sh ├── objective-c ├── HelloWorld │ ├── HelloWorld.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ ├── xcshareddata │ │ │ │ └── HelloWorld.xccheckout │ │ │ └── xcuserdata │ │ │ │ └── cjohnson.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── HelloWorld.xcscheme │ │ │ └── xcschememanagement.plist │ ├── HelloWorld │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ └── Main.storyboard │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── ViewController.h │ │ ├── ViewController.m │ │ └── main.m │ └── HelloWorldTests │ │ ├── HelloWorldTests.m │ │ └── Info.plist ├── SimpleMath │ ├── SimpleMath.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcuserdata │ │ │ │ └── cjohnson.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── xcschemes │ │ │ ├── SimpleMath.xcscheme │ │ │ └── xcschememanagement.plist │ ├── SimpleMath │ │ ├── AddViewController.h │ │ ├── AddViewController.m │ │ ├── AppDelegate.h │ │ ├── AppDelegate.m │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.xib │ │ │ └── Main.storyboard │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── main.m │ └── SimpleMathTests │ │ ├── Info.plist │ │ └── SimpleMathTests.m └── hello-world.playground │ ├── Contents.swift │ ├── Results.playgrounddata │ ├── Sources │ └── SupportCode.swift │ └── contents.xcplayground ├── openvpn ├── openvpn_access_server_ami │ ├── README.md │ ├── Route53.md │ ├── openvpn_access_server_ami.yaml │ └── openvpn_access_server_ami_with_route_53_resolver.yaml ├── openvpn_access_server_download_ubuntu │ ├── Vagrantfile │ └── openvpn_access_server.sh ├── openvpn_client_in_docker │ ├── Dockerfile │ ├── README.md │ └── openvpn_client_files │ │ └── .gitignore ├── openvpn_community_edition │ ├── Vagrantfile │ └── openvpn_community_edition.sh ├── openvpn_community_edition_docker_amazon_linux_2 │ ├── Dockerfile │ ├── README.md │ └── openvpn │ │ └── cloudavail.conf └── openvpn_community_edition_ldap_foxpass │ ├── Vagrantfile │ └── openvpn_community_edition_ldap_foxpass.sh ├── packer ├── ami_with_encrypted_boot_volume │ ├── packer.json │ └── vpc.yaml ├── base_windows_image_userdata_build │ ├── README.md │ ├── packer_simple_config.ps1 │ └── windows_with_userdata.json ├── base_windows_image_with_iis_userdata_build │ ├── README.md │ ├── windows_with_iis.json │ └── windows_with_iis.ps1 ├── packer_ami_two_regions │ ├── README.md │ ├── ami_two_regions.json │ └── ami_two_regions_vars.json ├── packer_build_docker_image │ ├── README.md │ └── docker-ubuntu.pkr.hcl ├── packer_build_docker_image_with_ansible │ ├── README.md │ ├── docker-apache.pkr.hcl │ └── playbook.yml ├── vpc_for_windows_packer_build.yaml ├── vpc_for_windows_packer_build_docs.md └── windows_with_nodejs_and_iis │ ├── README.md │ ├── iisstart.htm │ ├── node_js_execute_and_copy_file.ps1 │ ├── nodejs_script_copy_file.js │ ├── windows_with_iis_install.ps1 │ └── windows_with_nodejs_script.json ├── percona ├── percona-toolkit-docker │ └── README.md ├── percona_toolkit_install │ ├── Vagrantfile │ └── percona_toolkit_install.sh ├── pt-deadlock-logger-example │ └── README.md └── pt-query-digest-example │ └── README.md ├── phing └── phing_lint_task │ ├── build.xml │ ├── echo_fail.php │ ├── echo_pass.php │ ├── files_set_01 │ ├── echo_01.php │ └── echo_02.php │ └── files_set_02 │ ├── echo_01.php │ └── echo_02.php ├── php ├── assert │ └── assert.php ├── composer_swiftmailer_script.php ├── get_environment_variables │ └── get_environment_variables.php ├── php_string_explode │ └── php_string_explode.php ├── phpunit_simple_test │ ├── Car.php │ ├── CarTest.php │ ├── README.md │ ├── composer.json │ ├── composer.lock │ ├── composer.phar │ ├── phpunit │ └── vendor │ │ ├── autoload.php │ │ ├── bin │ │ └── phpunit │ │ ├── composer │ │ ├── ClassLoader.php │ │ ├── LICENSE │ │ ├── autoload_classmap.php │ │ ├── autoload_namespaces.php │ │ ├── autoload_psr4.php │ │ ├── autoload_real.php │ │ └── installed.json │ │ ├── doctrine │ │ └── instantiator │ │ │ ├── .gitignore │ │ │ ├── .scrutinizer.yml │ │ │ ├── .travis.install.sh │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ ├── phpmd.xml.dist │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ └── Doctrine │ │ │ │ └── Instantiator │ │ │ │ ├── Exception │ │ │ │ ├── ExceptionInterface.php │ │ │ │ ├── InvalidArgumentException.php │ │ │ │ └── UnexpectedValueException.php │ │ │ │ ├── Instantiator.php │ │ │ │ └── InstantiatorInterface.php │ │ │ └── tests │ │ │ └── DoctrineTest │ │ │ ├── InstantiatorPerformance │ │ │ └── InstantiatorPerformanceEvent.php │ │ │ ├── InstantiatorTest │ │ │ ├── Exception │ │ │ │ ├── InvalidArgumentExceptionTest.php │ │ │ │ └── UnexpectedValueExceptionTest.php │ │ │ └── InstantiatorTest.php │ │ │ └── InstantiatorTestAsset │ │ │ ├── AbstractClassAsset.php │ │ │ ├── ArrayObjectAsset.php │ │ │ ├── ExceptionAsset.php │ │ │ ├── FinalExceptionAsset.php │ │ │ ├── PharAsset.php │ │ │ ├── PharExceptionAsset.php │ │ │ ├── SerializableArrayObjectAsset.php │ │ │ ├── SimpleSerializableAsset.php │ │ │ ├── SimpleTraitAsset.php │ │ │ ├── UnCloneableAsset.php │ │ │ ├── UnserializeExceptionArrayObjectAsset.php │ │ │ ├── WakeUpNoticesAsset.php │ │ │ └── XMLReaderAsset.php │ │ ├── phpdocumentor │ │ └── reflection-docblock │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ ├── composer.lock │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ └── phpDocumentor │ │ │ │ └── Reflection │ │ │ │ ├── DocBlock.php │ │ │ │ └── DocBlock │ │ │ │ ├── Context.php │ │ │ │ ├── Description.php │ │ │ │ ├── Location.php │ │ │ │ ├── Serializer.php │ │ │ │ ├── Tag.php │ │ │ │ ├── Tag │ │ │ │ ├── AuthorTag.php │ │ │ │ ├── CoversTag.php │ │ │ │ ├── DeprecatedTag.php │ │ │ │ ├── ExampleTag.php │ │ │ │ ├── LinkTag.php │ │ │ │ ├── MethodTag.php │ │ │ │ ├── ParamTag.php │ │ │ │ ├── PropertyReadTag.php │ │ │ │ ├── PropertyTag.php │ │ │ │ ├── PropertyWriteTag.php │ │ │ │ ├── ReturnTag.php │ │ │ │ ├── SeeTag.php │ │ │ │ ├── SinceTag.php │ │ │ │ ├── SourceTag.php │ │ │ │ ├── ThrowsTag.php │ │ │ │ ├── UsesTag.php │ │ │ │ ├── VarTag.php │ │ │ │ └── VersionTag.php │ │ │ │ └── Type │ │ │ │ └── Collection.php │ │ │ └── tests │ │ │ └── phpDocumentor │ │ │ └── Reflection │ │ │ ├── DocBlock │ │ │ ├── DescriptionTest.php │ │ │ ├── Tag │ │ │ │ ├── CoversTagTest.php │ │ │ │ ├── DeprecatedTagTest.php │ │ │ │ ├── ExampleTagTest.php │ │ │ │ ├── LinkTagTest.php │ │ │ │ ├── MethodTagTest.php │ │ │ │ ├── ParamTagTest.php │ │ │ │ ├── ReturnTagTest.php │ │ │ │ ├── SeeTagTest.php │ │ │ │ ├── SinceTagTest.php │ │ │ │ ├── SourceTagTest.php │ │ │ │ ├── ThrowsTagTest.php │ │ │ │ ├── UsesTagTest.php │ │ │ │ ├── VarTagTest.php │ │ │ │ └── VersionTagTest.php │ │ │ ├── TagTest.php │ │ │ └── Type │ │ │ │ └── CollectionTest.php │ │ │ └── DocBlockTest.php │ │ ├── phpspec │ │ └── prophecy │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGES.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ ├── composer.lock │ │ │ ├── spec │ │ │ └── Prophecy │ │ │ │ ├── Argument │ │ │ │ ├── ArgumentsWildcardSpec.php │ │ │ │ └── Token │ │ │ │ │ ├── AnyValueTokenSpec.php │ │ │ │ │ ├── AnyValuesTokenSpec.php │ │ │ │ │ ├── ApproximateValueTokenSpec.php │ │ │ │ │ ├── ArrayCountTokenSpec.php │ │ │ │ │ ├── ArrayEntryTokenSpec.php │ │ │ │ │ ├── ArrayEveryEntryTokenSpec.php │ │ │ │ │ ├── CallbackTokenSpec.php │ │ │ │ │ ├── ExactValueTokenSpec.php │ │ │ │ │ ├── IdenticalValueTokenSpec.php │ │ │ │ │ ├── LogicalAndTokenSpec.php │ │ │ │ │ ├── LogicalNotTokenSpec.php │ │ │ │ │ ├── ObjectStateTokenSpec.php │ │ │ │ │ ├── StringContainsTokenSpec.php │ │ │ │ │ └── TypeTokenSpec.php │ │ │ │ ├── ArgumentSpec.php │ │ │ │ ├── Call │ │ │ │ ├── CallCenterSpec.php │ │ │ │ └── CallSpec.php │ │ │ │ ├── Comparator │ │ │ │ ├── ClosureComparatorSpec.php │ │ │ │ ├── FactorySpec.php │ │ │ │ └── ProphecyComparatorSpec.php │ │ │ │ ├── Doubler │ │ │ │ ├── ClassPatch │ │ │ │ │ ├── DisableConstructorPatchSpec.php │ │ │ │ │ ├── HhvmExceptionPatchSpec.php │ │ │ │ │ ├── KeywordPatchSpec.php │ │ │ │ │ ├── MagicCallPatchSpec.php │ │ │ │ │ ├── ProphecySubjectPatchSpec.php │ │ │ │ │ ├── ReflectionClassNewInstancePatchSpec.php │ │ │ │ │ ├── SplFileInfoPatchSpec.php │ │ │ │ │ └── TraversablePatchSpec.php │ │ │ │ ├── DoublerSpec.php │ │ │ │ ├── Generator │ │ │ │ │ ├── ClassCodeGeneratorSpec.php │ │ │ │ │ ├── ClassCreatorSpec.php │ │ │ │ │ ├── ClassMirrorSpec.php │ │ │ │ │ └── Node │ │ │ │ │ │ ├── ArgumentNodeSpec.php │ │ │ │ │ │ ├── ClassNodeSpec.php │ │ │ │ │ │ └── MethodNodeSpec.php │ │ │ │ ├── LazyDoubleSpec.php │ │ │ │ └── NameGeneratorSpec.php │ │ │ │ ├── Exception │ │ │ │ ├── Call │ │ │ │ │ └── UnexpectedCallExceptionSpec.php │ │ │ │ ├── Doubler │ │ │ │ │ ├── ClassCreatorExceptionSpec.php │ │ │ │ │ ├── ClassMirrorExceptionSpec.php │ │ │ │ │ ├── ClassNotFoundExceptionSpec.php │ │ │ │ │ ├── DoubleExceptionSpec.php │ │ │ │ │ ├── InterfaceNotFoundExceptionSpec.php │ │ │ │ │ ├── MethodNotExtendableExceptionSpec.php │ │ │ │ │ └── MethodNotFoundExceptionSpec.php │ │ │ │ ├── Prediction │ │ │ │ │ ├── AggregateExceptionSpec.php │ │ │ │ │ ├── NoCallsExceptionSpec.php │ │ │ │ │ ├── UnexpectedCallsCountExceptionSpec.php │ │ │ │ │ └── UnexpectedCallsExceptionSpec.php │ │ │ │ └── Prophecy │ │ │ │ │ ├── MethodProphecyExceptionSpec.php │ │ │ │ │ └── ObjectProphecyExceptionSpec.php │ │ │ │ ├── Prediction │ │ │ │ ├── CallPredictionSpec.php │ │ │ │ ├── CallTimesPredictionSpec.php │ │ │ │ ├── CallbackPredictionSpec.php │ │ │ │ └── NoCallsPredictionSpec.php │ │ │ │ ├── Promise │ │ │ │ ├── CallbackPromiseSpec.php │ │ │ │ ├── ReturnArgumentPromiseSpec.php │ │ │ │ ├── ReturnPromiseSpec.php │ │ │ │ └── ThrowPromiseSpec.php │ │ │ │ ├── Prophecy │ │ │ │ ├── MethodProphecySpec.php │ │ │ │ ├── ObjectProphecySpec.php │ │ │ │ └── RevealerSpec.php │ │ │ │ ├── ProphetSpec.php │ │ │ │ └── Util │ │ │ │ └── StringUtilSpec.php │ │ │ └── src │ │ │ └── Prophecy │ │ │ ├── Argument.php │ │ │ ├── Argument │ │ │ ├── ArgumentsWildcard.php │ │ │ └── Token │ │ │ │ ├── AnyValueToken.php │ │ │ │ ├── AnyValuesToken.php │ │ │ │ ├── ApproximateValueToken.php │ │ │ │ ├── ArrayCountToken.php │ │ │ │ ├── ArrayEntryToken.php │ │ │ │ ├── ArrayEveryEntryToken.php │ │ │ │ ├── CallbackToken.php │ │ │ │ ├── ExactValueToken.php │ │ │ │ ├── IdenticalValueToken.php │ │ │ │ ├── LogicalAndToken.php │ │ │ │ ├── LogicalNotToken.php │ │ │ │ ├── ObjectStateToken.php │ │ │ │ ├── StringContainsToken.php │ │ │ │ ├── TokenInterface.php │ │ │ │ └── TypeToken.php │ │ │ ├── Call │ │ │ ├── Call.php │ │ │ └── CallCenter.php │ │ │ ├── Comparator │ │ │ ├── ClosureComparator.php │ │ │ ├── Factory.php │ │ │ └── ProphecyComparator.php │ │ │ ├── Doubler │ │ │ ├── CachedDoubler.php │ │ │ ├── ClassPatch │ │ │ │ ├── ClassPatchInterface.php │ │ │ │ ├── DisableConstructorPatch.php │ │ │ │ ├── HhvmExceptionPatch.php │ │ │ │ ├── KeywordPatch.php │ │ │ │ ├── MagicCallPatch.php │ │ │ │ ├── ProphecySubjectPatch.php │ │ │ │ ├── ReflectionClassNewInstancePatch.php │ │ │ │ ├── SplFileInfoPatch.php │ │ │ │ └── TraversablePatch.php │ │ │ ├── DoubleInterface.php │ │ │ ├── Doubler.php │ │ │ ├── Generator │ │ │ │ ├── ClassCodeGenerator.php │ │ │ │ ├── ClassCreator.php │ │ │ │ ├── ClassMirror.php │ │ │ │ ├── Node │ │ │ │ │ ├── ArgumentNode.php │ │ │ │ │ ├── ClassNode.php │ │ │ │ │ └── MethodNode.php │ │ │ │ └── ReflectionInterface.php │ │ │ ├── LazyDouble.php │ │ │ └── NameGenerator.php │ │ │ ├── Exception │ │ │ ├── Call │ │ │ │ └── UnexpectedCallException.php │ │ │ ├── Doubler │ │ │ │ ├── ClassCreatorException.php │ │ │ │ ├── ClassMirrorException.php │ │ │ │ ├── ClassNotFoundException.php │ │ │ │ ├── DoubleException.php │ │ │ │ ├── DoublerException.php │ │ │ │ ├── InterfaceNotFoundException.php │ │ │ │ ├── MethodNotExtendableException.php │ │ │ │ ├── MethodNotFoundException.php │ │ │ │ └── ReturnByReferenceException.php │ │ │ ├── Exception.php │ │ │ ├── InvalidArgumentException.php │ │ │ ├── Prediction │ │ │ │ ├── AggregateException.php │ │ │ │ ├── FailedPredictionException.php │ │ │ │ ├── NoCallsException.php │ │ │ │ ├── PredictionException.php │ │ │ │ ├── UnexpectedCallsCountException.php │ │ │ │ └── UnexpectedCallsException.php │ │ │ └── Prophecy │ │ │ │ ├── MethodProphecyException.php │ │ │ │ ├── ObjectProphecyException.php │ │ │ │ └── ProphecyException.php │ │ │ ├── Prediction │ │ │ ├── CallPrediction.php │ │ │ ├── CallTimesPrediction.php │ │ │ ├── CallbackPrediction.php │ │ │ ├── NoCallsPrediction.php │ │ │ └── PredictionInterface.php │ │ │ ├── Promise │ │ │ ├── CallbackPromise.php │ │ │ ├── PromiseInterface.php │ │ │ ├── ReturnArgumentPromise.php │ │ │ ├── ReturnPromise.php │ │ │ └── ThrowPromise.php │ │ │ ├── Prophecy │ │ │ ├── MethodProphecy.php │ │ │ ├── ObjectProphecy.php │ │ │ ├── ProphecyInterface.php │ │ │ ├── ProphecySubjectInterface.php │ │ │ ├── Revealer.php │ │ │ └── RevealerInterface.php │ │ │ ├── Prophet.php │ │ │ └── Util │ │ │ ├── ExportUtil.php │ │ │ └── StringUtil.php │ │ ├── phpunit │ │ ├── php-code-coverage │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── ChangeLog-2.2.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── build │ │ │ │ └── travis-ci.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── scripts │ │ │ │ ├── auto_append.php │ │ │ │ └── auto_prepend.php │ │ │ ├── src │ │ │ │ ├── CodeCoverage.php │ │ │ │ └── CodeCoverage │ │ │ │ │ ├── Driver.php │ │ │ │ │ ├── Driver │ │ │ │ │ ├── HHVM.php │ │ │ │ │ ├── PHPDBG.php │ │ │ │ │ └── Xdebug.php │ │ │ │ │ ├── Exception.php │ │ │ │ │ ├── Exception │ │ │ │ │ └── UnintentionallyCoveredCode.php │ │ │ │ │ ├── Filter.php │ │ │ │ │ ├── Report │ │ │ │ │ ├── Clover.php │ │ │ │ │ ├── Crap4j.php │ │ │ │ │ ├── Factory.php │ │ │ │ │ ├── HTML.php │ │ │ │ │ ├── HTML │ │ │ │ │ │ ├── Renderer.php │ │ │ │ │ │ └── Renderer │ │ │ │ │ │ │ ├── Dashboard.php │ │ │ │ │ │ │ ├── Directory.php │ │ │ │ │ │ │ ├── File.php │ │ │ │ │ │ │ └── Template │ │ │ │ │ │ │ ├── coverage_bar.html.dist │ │ │ │ │ │ │ ├── css │ │ │ │ │ │ │ ├── bootstrap.min.css │ │ │ │ │ │ │ ├── nv.d3.min.css │ │ │ │ │ │ │ └── style.css │ │ │ │ │ │ │ ├── dashboard.html.dist │ │ │ │ │ │ │ ├── directory.html.dist │ │ │ │ │ │ │ ├── directory_item.html.dist │ │ │ │ │ │ │ ├── file.html.dist │ │ │ │ │ │ │ ├── file_item.html.dist │ │ │ │ │ │ │ ├── fonts │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.svg │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ │ │ │ ├── js │ │ │ │ │ │ │ ├── bootstrap.min.js │ │ │ │ │ │ │ ├── d3.min.js │ │ │ │ │ │ │ ├── holder.min.js │ │ │ │ │ │ │ ├── html5shiv.min.js │ │ │ │ │ │ │ ├── jquery.min.js │ │ │ │ │ │ │ ├── nv.d3.min.js │ │ │ │ │ │ │ └── respond.min.js │ │ │ │ │ │ │ └── method_item.html.dist │ │ │ │ │ ├── Node.php │ │ │ │ │ ├── Node │ │ │ │ │ │ ├── Directory.php │ │ │ │ │ │ ├── File.php │ │ │ │ │ │ └── Iterator.php │ │ │ │ │ ├── PHP.php │ │ │ │ │ ├── Text.php │ │ │ │ │ ├── XML.php │ │ │ │ │ └── XML │ │ │ │ │ │ ├── Directory.php │ │ │ │ │ │ ├── File.php │ │ │ │ │ │ ├── File │ │ │ │ │ │ ├── Coverage.php │ │ │ │ │ │ ├── Method.php │ │ │ │ │ │ ├── Report.php │ │ │ │ │ │ └── Unit.php │ │ │ │ │ │ ├── Node.php │ │ │ │ │ │ ├── Project.php │ │ │ │ │ │ ├── Tests.php │ │ │ │ │ │ └── Totals.php │ │ │ │ │ ├── Util.php │ │ │ │ │ └── Util │ │ │ │ │ └── InvalidArgumentHelper.php │ │ │ └── tests │ │ │ │ ├── PHP │ │ │ │ ├── CodeCoverage │ │ │ │ │ ├── FilterTest.php │ │ │ │ │ ├── Report │ │ │ │ │ │ ├── CloverTest.php │ │ │ │ │ │ └── FactoryTest.php │ │ │ │ │ └── UtilTest.php │ │ │ │ └── CodeCoverageTest.php │ │ │ │ ├── TestCase.php │ │ │ │ └── _files │ │ │ │ ├── BankAccount-clover.xml │ │ │ │ ├── BankAccount.php │ │ │ │ ├── BankAccountTest.php │ │ │ │ ├── CoverageClassExtendedTest.php │ │ │ │ ├── CoverageClassTest.php │ │ │ │ ├── CoverageFunctionParenthesesTest.php │ │ │ │ ├── CoverageFunctionParenthesesWhitespaceTest.php │ │ │ │ ├── CoverageFunctionTest.php │ │ │ │ ├── CoverageMethodOneLineAnnotationTest.php │ │ │ │ ├── CoverageMethodParenthesesTest.php │ │ │ │ ├── CoverageMethodParenthesesWhitespaceTest.php │ │ │ │ ├── CoverageMethodTest.php │ │ │ │ ├── CoverageNoneTest.php │ │ │ │ ├── CoverageNotPrivateTest.php │ │ │ │ ├── CoverageNotProtectedTest.php │ │ │ │ ├── CoverageNotPublicTest.php │ │ │ │ ├── CoverageNothingTest.php │ │ │ │ ├── CoveragePrivateTest.php │ │ │ │ ├── CoverageProtectedTest.php │ │ │ │ ├── CoveragePublicTest.php │ │ │ │ ├── CoverageTwoDefaultClassAnnotations.php │ │ │ │ ├── CoveredClass.php │ │ │ │ ├── CoveredFunction.php │ │ │ │ ├── NamespaceCoverageClassExtendedTest.php │ │ │ │ ├── NamespaceCoverageClassTest.php │ │ │ │ ├── NamespaceCoverageCoversClassPublicTest.php │ │ │ │ ├── NamespaceCoverageCoversClassTest.php │ │ │ │ ├── NamespaceCoverageMethodTest.php │ │ │ │ ├── NamespaceCoverageNotPrivateTest.php │ │ │ │ ├── NamespaceCoverageNotProtectedTest.php │ │ │ │ ├── NamespaceCoverageNotPublicTest.php │ │ │ │ ├── NamespaceCoveragePrivateTest.php │ │ │ │ ├── NamespaceCoverageProtectedTest.php │ │ │ │ ├── NamespaceCoveragePublicTest.php │ │ │ │ ├── NamespaceCoveredClass.php │ │ │ │ ├── NotExistingCoveredElementTest.php │ │ │ │ ├── class-with-anonymous-function-clover.xml │ │ │ │ ├── ignored-lines-clover.xml │ │ │ │ ├── source_with_class_and_anonymous_function.php │ │ │ │ ├── source_with_ignore.php │ │ │ │ ├── source_with_namespace.php │ │ │ │ ├── source_with_oneline_annotations.php │ │ │ │ ├── source_without_ignore.php │ │ │ │ └── source_without_namespace.php │ │ ├── php-file-iterator │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── ChangeLog.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ └── src │ │ │ │ ├── Facade.php │ │ │ │ ├── Factory.php │ │ │ │ └── Iterator.php │ │ ├── php-text-template │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ └── src │ │ │ │ └── Template.php │ │ ├── php-timer │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ ├── src │ │ │ │ └── Timer.php │ │ │ └── tests │ │ │ │ └── TimerTest.php │ │ ├── php-token-stream │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── build │ │ │ │ └── phpunit.xml │ │ │ ├── composer.json │ │ │ ├── src │ │ │ │ ├── Token.php │ │ │ │ └── Token │ │ │ │ │ ├── Stream.php │ │ │ │ │ └── Stream │ │ │ │ │ └── CachingFactory.php │ │ │ └── tests │ │ │ │ ├── Token │ │ │ │ ├── ClassTest.php │ │ │ │ ├── ClosureTest.php │ │ │ │ ├── FunctionTest.php │ │ │ │ ├── IncludeTest.php │ │ │ │ ├── InterfaceTest.php │ │ │ │ └── NamespaceTest.php │ │ │ │ ├── TokenTest.php │ │ │ │ ├── _fixture │ │ │ │ ├── classExtendsNamespacedClass.php │ │ │ │ ├── classInNamespace.php │ │ │ │ ├── classInScopedNamespace.php │ │ │ │ ├── class_with_method_that_declares_anonymous_class.php │ │ │ │ ├── class_with_method_that_declares_anonymous_class2.php │ │ │ │ ├── closure.php │ │ │ │ ├── issue19.php │ │ │ │ ├── issue30.php │ │ │ │ ├── multipleNamespacesWithOneClassUsingBraces.php │ │ │ │ ├── multipleNamespacesWithOneClassUsingNonBraceSyntax.php │ │ │ │ ├── source.php │ │ │ │ ├── source2.php │ │ │ │ ├── source3.php │ │ │ │ ├── source4.php │ │ │ │ └── source5.php │ │ │ │ └── bootstrap.php │ │ ├── phpunit-mock-objects │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CONTRIBUTING.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── build │ │ │ │ └── travis-ci.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ └── Framework │ │ │ │ │ └── MockObject │ │ │ │ │ ├── Builder │ │ │ │ │ ├── Identity.php │ │ │ │ │ ├── InvocationMocker.php │ │ │ │ │ ├── Match.php │ │ │ │ │ ├── MethodNameMatch.php │ │ │ │ │ ├── Namespace.php │ │ │ │ │ ├── ParametersMatch.php │ │ │ │ │ └── Stub.php │ │ │ │ │ ├── Exception │ │ │ │ │ ├── BadMethodCallException.php │ │ │ │ │ ├── Exception.php │ │ │ │ │ └── RuntimeException.php │ │ │ │ │ ├── Generator.php │ │ │ │ │ ├── Generator │ │ │ │ │ ├── mocked_class.tpl.dist │ │ │ │ │ ├── mocked_class_method.tpl.dist │ │ │ │ │ ├── mocked_clone.tpl.dist │ │ │ │ │ ├── mocked_method.tpl.dist │ │ │ │ │ ├── mocked_static_method.tpl.dist │ │ │ │ │ ├── proxied_method.tpl.dist │ │ │ │ │ ├── trait_class.tpl.dist │ │ │ │ │ ├── unmocked_clone.tpl.dist │ │ │ │ │ ├── wsdl_class.tpl.dist │ │ │ │ │ └── wsdl_method.tpl.dist │ │ │ │ │ ├── Invocation.php │ │ │ │ │ ├── Invocation │ │ │ │ │ ├── Object.php │ │ │ │ │ └── Static.php │ │ │ │ │ ├── InvocationMocker.php │ │ │ │ │ ├── Invokable.php │ │ │ │ │ ├── Matcher.php │ │ │ │ │ ├── Matcher │ │ │ │ │ ├── AnyInvokedCount.php │ │ │ │ │ ├── AnyParameters.php │ │ │ │ │ ├── ConsecutiveParameters.php │ │ │ │ │ ├── Invocation.php │ │ │ │ │ ├── InvokedAtIndex.php │ │ │ │ │ ├── InvokedAtLeastCount.php │ │ │ │ │ ├── InvokedAtLeastOnce.php │ │ │ │ │ ├── InvokedAtMostCount.php │ │ │ │ │ ├── InvokedCount.php │ │ │ │ │ ├── InvokedRecorder.php │ │ │ │ │ ├── MethodName.php │ │ │ │ │ ├── Parameters.php │ │ │ │ │ └── StatelessInvocation.php │ │ │ │ │ ├── MockBuilder.php │ │ │ │ │ ├── MockObject.php │ │ │ │ │ ├── Stub.php │ │ │ │ │ ├── Stub │ │ │ │ │ ├── ConsecutiveCalls.php │ │ │ │ │ ├── Exception.php │ │ │ │ │ ├── MatcherCollection.php │ │ │ │ │ ├── Return.php │ │ │ │ │ ├── ReturnArgument.php │ │ │ │ │ ├── ReturnCallback.php │ │ │ │ │ ├── ReturnSelf.php │ │ │ │ │ └── ReturnValueMap.php │ │ │ │ │ └── Verifiable.php │ │ │ └── tests │ │ │ │ ├── GeneratorTest.php │ │ │ │ ├── MockBuilderTest.php │ │ │ │ ├── MockObject │ │ │ │ ├── 232.phpt │ │ │ │ ├── Invocation │ │ │ │ │ ├── ObjectTest.php │ │ │ │ │ └── StaticTest.php │ │ │ │ ├── Matcher │ │ │ │ │ └── ConsecutiveParametersTest.php │ │ │ │ ├── abstract_class.phpt │ │ │ │ ├── class.phpt │ │ │ │ ├── class_call_parent_clone.phpt │ │ │ │ ├── class_call_parent_constructor.phpt │ │ │ │ ├── class_dont_call_parent_clone.phpt │ │ │ │ ├── class_dont_call_parent_constructor.phpt │ │ │ │ ├── class_implementing_interface_call_parent_constructor.phpt │ │ │ │ ├── class_implementing_interface_dont_call_parent_constructor.phpt │ │ │ │ ├── class_partial.phpt │ │ │ │ ├── class_with_method_named_method.phpt │ │ │ │ ├── class_with_method_with_variadic_arguments.phpt │ │ │ │ ├── interface.phpt │ │ │ │ ├── invocation_object_clone_object.phpt │ │ │ │ ├── namespaced_class.phpt │ │ │ │ ├── namespaced_class_call_parent_clone.phpt │ │ │ │ ├── namespaced_class_call_parent_constructor.phpt │ │ │ │ ├── namespaced_class_dont_call_parent_clone.phpt │ │ │ │ ├── namespaced_class_dont_call_parent_constructor.phpt │ │ │ │ ├── namespaced_class_implementing_interface_call_parent_constructor.phpt │ │ │ │ ├── namespaced_class_implementing_interface_dont_call_parent_constructor.phpt │ │ │ │ ├── namespaced_class_partial.phpt │ │ │ │ ├── namespaced_interface.phpt │ │ │ │ ├── nonexistent_class.phpt │ │ │ │ ├── nonexistent_class_with_namespace.phpt │ │ │ │ ├── nonexistent_class_with_namespace_starting_with_separator.phpt │ │ │ │ ├── proxy.phpt │ │ │ │ ├── scalar_type_declarations.phpt │ │ │ │ ├── wsdl_class.phpt │ │ │ │ ├── wsdl_class_namespace.phpt │ │ │ │ └── wsdl_class_partial.phpt │ │ │ │ ├── MockObjectTest.php │ │ │ │ ├── ProxyObjectTest.php │ │ │ │ ├── _fixture │ │ │ │ ├── AbstractMockTestClass.php │ │ │ │ ├── AbstractTrait.php │ │ │ │ ├── AnInterface.php │ │ │ │ ├── AnotherInterface.php │ │ │ │ ├── Bar.php │ │ │ │ ├── ClassThatImplementsSerializable.php │ │ │ │ ├── ClassWithStaticMethod.php │ │ │ │ ├── Foo.php │ │ │ │ ├── FunctionCallback.php │ │ │ │ ├── GoogleSearch.wsdl │ │ │ │ ├── InterfaceWithStaticMethod.php │ │ │ │ ├── MethodCallback.php │ │ │ │ ├── MethodCallbackByReference.php │ │ │ │ ├── MockTestInterface.php │ │ │ │ ├── Mockable.php │ │ │ │ ├── PartialMockTestClass.php │ │ │ │ ├── SingletonClass.php │ │ │ │ ├── SomeClass.php │ │ │ │ ├── StaticMockTestClass.php │ │ │ │ └── TraversableMockTestInterface.php │ │ │ │ └── bootstrap.php │ │ └── phpunit │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── .php_cs │ │ │ ├── .travis.yml │ │ │ ├── CODE_OF_CONDUCT.md │ │ │ ├── CONTRIBUTING.md │ │ │ ├── ChangeLog-4.0.md │ │ │ ├── ChangeLog-4.1.md │ │ │ ├── ChangeLog-4.2.md │ │ │ ├── ChangeLog-4.3.md │ │ │ ├── ChangeLog-4.4.md │ │ │ ├── ChangeLog-4.5.md │ │ │ ├── ChangeLog-4.6.md │ │ │ ├── ChangeLog-4.7.md │ │ │ ├── ChangeLog-4.8.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── build │ │ │ ├── bin │ │ │ │ └── phpab │ │ │ ├── binary-phar-autoload.php.in │ │ │ ├── ca.pem │ │ │ ├── library-phar-autoload.php.in │ │ │ ├── phar-manifest.php │ │ │ ├── phar-version.php │ │ │ └── travis-ci-fail.xml │ │ │ ├── composer.json │ │ │ ├── phpdox.xml.dist │ │ │ ├── phpunit │ │ │ ├── phpunit.xml.dist │ │ │ ├── phpunit.xsd │ │ │ ├── src │ │ │ ├── Exception.php │ │ │ ├── Extensions │ │ │ │ ├── GroupTestSuite.php │ │ │ │ ├── PhptTestCase.php │ │ │ │ ├── PhptTestSuite.php │ │ │ │ ├── RepeatedTest.php │ │ │ │ ├── TestDecorator.php │ │ │ │ └── TicketListener.php │ │ │ ├── Framework │ │ │ │ ├── Assert.php │ │ │ │ ├── Assert │ │ │ │ │ └── Functions.php │ │ │ │ ├── AssertionFailedError.php │ │ │ │ ├── BaseTestListener.php │ │ │ │ ├── CodeCoverageException.php │ │ │ │ ├── Constraint.php │ │ │ │ ├── Constraint │ │ │ │ │ ├── And.php │ │ │ │ │ ├── ArrayHasKey.php │ │ │ │ │ ├── ArraySubset.php │ │ │ │ │ ├── Attribute.php │ │ │ │ │ ├── Callback.php │ │ │ │ │ ├── ClassHasAttribute.php │ │ │ │ │ ├── ClassHasStaticAttribute.php │ │ │ │ │ ├── Composite.php │ │ │ │ │ ├── Count.php │ │ │ │ │ ├── Exception.php │ │ │ │ │ ├── ExceptionCode.php │ │ │ │ │ ├── ExceptionMessage.php │ │ │ │ │ ├── ExceptionMessageRegExp.php │ │ │ │ │ ├── FileExists.php │ │ │ │ │ ├── GreaterThan.php │ │ │ │ │ ├── IsAnything.php │ │ │ │ │ ├── IsEmpty.php │ │ │ │ │ ├── IsEqual.php │ │ │ │ │ ├── IsFalse.php │ │ │ │ │ ├── IsIdentical.php │ │ │ │ │ ├── IsInstanceOf.php │ │ │ │ │ ├── IsJson.php │ │ │ │ │ ├── IsNull.php │ │ │ │ │ ├── IsTrue.php │ │ │ │ │ ├── IsType.php │ │ │ │ │ ├── JsonMatches.php │ │ │ │ │ ├── JsonMatches │ │ │ │ │ │ └── ErrorMessageProvider.php │ │ │ │ │ ├── LessThan.php │ │ │ │ │ ├── Not.php │ │ │ │ │ ├── ObjectHasAttribute.php │ │ │ │ │ ├── Or.php │ │ │ │ │ ├── PCREMatch.php │ │ │ │ │ ├── SameSize.php │ │ │ │ │ ├── StringContains.php │ │ │ │ │ ├── StringEndsWith.php │ │ │ │ │ ├── StringMatches.php │ │ │ │ │ ├── StringStartsWith.php │ │ │ │ │ ├── TraversableContains.php │ │ │ │ │ ├── TraversableContainsOnly.php │ │ │ │ │ └── Xor.php │ │ │ │ ├── Error.php │ │ │ │ ├── Error │ │ │ │ │ ├── Deprecated.php │ │ │ │ │ ├── Notice.php │ │ │ │ │ └── Warning.php │ │ │ │ ├── Exception.php │ │ │ │ ├── ExceptionWrapper.php │ │ │ │ ├── ExpectationFailedException.php │ │ │ │ ├── IncompleteTest.php │ │ │ │ ├── IncompleteTestCase.php │ │ │ │ ├── IncompleteTestError.php │ │ │ │ ├── InvalidCoversTargetError.php │ │ │ │ ├── InvalidCoversTargetException.php │ │ │ │ ├── OutputError.php │ │ │ │ ├── RiskyTest.php │ │ │ │ ├── RiskyTestError.php │ │ │ │ ├── SelfDescribing.php │ │ │ │ ├── SkippedTest.php │ │ │ │ ├── SkippedTestCase.php │ │ │ │ ├── SkippedTestError.php │ │ │ │ ├── SkippedTestSuiteError.php │ │ │ │ ├── SyntheticError.php │ │ │ │ ├── Test.php │ │ │ │ ├── TestCase.php │ │ │ │ ├── TestFailure.php │ │ │ │ ├── TestListener.php │ │ │ │ ├── TestResult.php │ │ │ │ ├── TestSuite.php │ │ │ │ ├── TestSuite │ │ │ │ │ └── DataProvider.php │ │ │ │ ├── UnintentionallyCoveredCodeError.php │ │ │ │ └── Warning.php │ │ │ ├── Runner │ │ │ │ ├── BaseTestRunner.php │ │ │ │ ├── Exception.php │ │ │ │ ├── Filter │ │ │ │ │ ├── Factory.php │ │ │ │ │ ├── Group.php │ │ │ │ │ ├── Group │ │ │ │ │ │ ├── Exclude.php │ │ │ │ │ │ └── Include.php │ │ │ │ │ └── Test.php │ │ │ │ ├── StandardTestSuiteLoader.php │ │ │ │ ├── TestSuiteLoader.php │ │ │ │ └── Version.php │ │ │ ├── TextUI │ │ │ │ ├── Command.php │ │ │ │ ├── ResultPrinter.php │ │ │ │ └── TestRunner.php │ │ │ └── Util │ │ │ │ ├── Blacklist.php │ │ │ │ ├── Configuration.php │ │ │ │ ├── ErrorHandler.php │ │ │ │ ├── Fileloader.php │ │ │ │ ├── Filesystem.php │ │ │ │ ├── Filter.php │ │ │ │ ├── Getopt.php │ │ │ │ ├── GlobalState.php │ │ │ │ ├── InvalidArgumentHelper.php │ │ │ │ ├── Log │ │ │ │ ├── JSON.php │ │ │ │ ├── JUnit.php │ │ │ │ └── TAP.php │ │ │ │ ├── PHP.php │ │ │ │ ├── PHP │ │ │ │ ├── Default.php │ │ │ │ ├── Template │ │ │ │ │ └── TestCaseMethod.tpl.dist │ │ │ │ ├── Windows.php │ │ │ │ └── eval-stdin.php │ │ │ │ ├── Printer.php │ │ │ │ ├── Regex.php │ │ │ │ ├── String.php │ │ │ │ ├── Test.php │ │ │ │ ├── TestDox │ │ │ │ ├── NamePrettifier.php │ │ │ │ ├── ResultPrinter.php │ │ │ │ └── ResultPrinter │ │ │ │ │ ├── HTML.php │ │ │ │ │ └── Text.php │ │ │ │ ├── TestSuiteIterator.php │ │ │ │ ├── Type.php │ │ │ │ └── XML.php │ │ │ └── tests │ │ │ ├── Extensions │ │ │ ├── PhptTestCaseTest.php │ │ │ └── RepeatedTestTest.php │ │ │ ├── Fail │ │ │ └── fail.phpt │ │ │ ├── Framework │ │ │ ├── AssertTest.php │ │ │ ├── BaseTestListenerTest.php │ │ │ ├── Constraint │ │ │ │ ├── CountTest.php │ │ │ │ ├── ExceptionMessageRegExpTest.php │ │ │ │ ├── ExceptionMessageTest.php │ │ │ │ ├── JsonMatches │ │ │ │ │ └── ErrorMessageProviderTest.php │ │ │ │ └── JsonMatchesTest.php │ │ │ ├── ConstraintTest.php │ │ │ ├── SuiteTest.php │ │ │ ├── TestCaseTest.php │ │ │ ├── TestFailureTest.php │ │ │ ├── TestImplementorTest.php │ │ │ └── TestListenerTest.php │ │ │ ├── Regression │ │ │ ├── 523 │ │ │ │ └── Issue523Test.php │ │ │ ├── 578 │ │ │ │ └── Issue578Test.php │ │ │ ├── 684 │ │ │ │ └── Issue684Test.php │ │ │ ├── 783 │ │ │ │ ├── ChildSuite.php │ │ │ │ ├── OneTest.php │ │ │ │ ├── ParentSuite.php │ │ │ │ └── TwoTest.php │ │ │ ├── 1021 │ │ │ │ └── Issue1021Test.php │ │ │ ├── 1021.phpt │ │ │ ├── 523.phpt │ │ │ ├── 578.phpt │ │ │ ├── 684.phpt │ │ │ ├── 783.phpt │ │ │ └── GitHub │ │ │ │ ├── 74 │ │ │ │ ├── Issue74Test.php │ │ │ │ └── NewException.php │ │ │ │ ├── 244 │ │ │ │ └── Issue244Test.php │ │ │ │ ├── 322 │ │ │ │ ├── Issue322Test.php │ │ │ │ └── phpunit322.xml │ │ │ │ ├── 433 │ │ │ │ └── Issue433Test.php │ │ │ │ ├── 445 │ │ │ │ └── Issue445Test.php │ │ │ │ ├── 498 │ │ │ │ └── Issue498Test.php │ │ │ │ ├── 503 │ │ │ │ └── Issue503Test.php │ │ │ │ ├── 581 │ │ │ │ └── Issue581Test.php │ │ │ │ ├── 765 │ │ │ │ └── Issue765Test.php │ │ │ │ ├── 797 │ │ │ │ ├── Issue797Test.php │ │ │ │ └── bootstrap797.php │ │ │ │ ├── 873 │ │ │ │ └── Issue873Test.php │ │ │ │ ├── 1149 │ │ │ │ └── Issue1149Test.php │ │ │ │ ├── 1216 │ │ │ │ ├── Issue1216Test.php │ │ │ │ ├── bootstrap1216.php │ │ │ │ └── phpunit1216.xml │ │ │ │ ├── 1265 │ │ │ │ ├── Issue1265Test.php │ │ │ │ └── phpunit1265.xml │ │ │ │ ├── 1330 │ │ │ │ ├── Issue1330Test.php │ │ │ │ └── phpunit1330.xml │ │ │ │ ├── 1335 │ │ │ │ ├── Issue1335Test.php │ │ │ │ └── bootstrap1335.php │ │ │ │ ├── 1337 │ │ │ │ └── Issue1337Test.php │ │ │ │ ├── 1348 │ │ │ │ └── Issue1348Test.php │ │ │ │ ├── 1351 │ │ │ │ ├── ChildProcessClass1351.php │ │ │ │ └── Issue1351Test.php │ │ │ │ ├── 1374 │ │ │ │ └── Issue1374Test.php │ │ │ │ ├── 1437 │ │ │ │ └── Issue1437Test.php │ │ │ │ ├── 1468 │ │ │ │ └── Issue1468Test.php │ │ │ │ ├── 1471 │ │ │ │ └── Issue1471Test.php │ │ │ │ ├── 1472 │ │ │ │ └── Issue1472Test.php │ │ │ │ ├── 1570 │ │ │ │ └── Issue1570Test.php │ │ │ │ ├── 1149.phpt │ │ │ │ ├── 1216.phpt │ │ │ │ ├── 1265.phpt │ │ │ │ ├── 1330.phpt │ │ │ │ ├── 1335.phpt │ │ │ │ ├── 1337.phpt │ │ │ │ ├── 1348.phpt │ │ │ │ ├── 1351.phpt │ │ │ │ ├── 1374.phpt │ │ │ │ ├── 1437.phpt │ │ │ │ ├── 1468.phpt │ │ │ │ ├── 1471.phpt │ │ │ │ ├── 1472.phpt │ │ │ │ ├── 1570.phpt │ │ │ │ ├── 244.phpt │ │ │ │ ├── 322.phpt │ │ │ │ ├── 433.phpt │ │ │ │ ├── 445.phpt │ │ │ │ ├── 498.phpt │ │ │ │ ├── 503.phpt │ │ │ │ ├── 581.phpt │ │ │ │ ├── 74.phpt │ │ │ │ ├── 765.phpt │ │ │ │ ├── 797.phpt │ │ │ │ ├── 863.phpt │ │ │ │ ├── 873-php5.phpt │ │ │ │ └── 873-php7.phpt │ │ │ ├── Runner │ │ │ └── BaseTestRunnerTest.php │ │ │ ├── TextUI │ │ │ ├── abstract-test-class.phpt │ │ │ ├── colors-always.phpt │ │ │ ├── concrete-test-class.phpt │ │ │ ├── custom-printer-debug.phpt │ │ │ ├── custom-printer-verbose.phpt │ │ │ ├── dataprovider-debug.phpt │ │ │ ├── dataprovider-log-xml-isolation.phpt │ │ │ ├── dataprovider-log-xml.phpt │ │ │ ├── dataprovider-testdox.phpt │ │ │ ├── debug.phpt │ │ │ ├── default-isolation.phpt │ │ │ ├── default.phpt │ │ │ ├── dependencies-isolation.phpt │ │ │ ├── dependencies.phpt │ │ │ ├── dependencies2-isolation.phpt │ │ │ ├── dependencies2.phpt │ │ │ ├── dependencies3-isolation.phpt │ │ │ ├── dependencies3.phpt │ │ │ ├── empty-testcase.phpt │ │ │ ├── exception-stack.phpt │ │ │ ├── exclude-group-isolation.phpt │ │ │ ├── exclude-group.phpt │ │ │ ├── failure-isolation.phpt │ │ │ ├── failure.phpt │ │ │ ├── fatal-isolation.phpt │ │ │ ├── filter-class-isolation.phpt │ │ │ ├── filter-class.phpt │ │ │ ├── filter-dataprovider-by-classname-and-range-isolation.phpt │ │ │ ├── filter-dataprovider-by-classname-and-range.phpt │ │ │ ├── filter-dataprovider-by-number-isolation.phpt │ │ │ ├── filter-dataprovider-by-number.phpt │ │ │ ├── filter-dataprovider-by-only-range-isolation.phpt │ │ │ ├── filter-dataprovider-by-only-range.phpt │ │ │ ├── filter-dataprovider-by-only-regexp-isolation.phpt │ │ │ ├── filter-dataprovider-by-only-regexp.phpt │ │ │ ├── filter-dataprovider-by-only-string-isolation.phpt │ │ │ ├── filter-dataprovider-by-only-string.phpt │ │ │ ├── filter-dataprovider-by-range-isolation.phpt │ │ │ ├── filter-dataprovider-by-range.phpt │ │ │ ├── filter-dataprovider-by-regexp-isolation.phpt │ │ │ ├── filter-dataprovider-by-regexp.phpt │ │ │ ├── filter-dataprovider-by-string-isolation.phpt │ │ │ ├── filter-dataprovider-by-string.phpt │ │ │ ├── filter-method-case-insensitive.phpt │ │ │ ├── filter-method-case-sensitive-no-result.phpt │ │ │ ├── filter-method-isolation.phpt │ │ │ ├── filter-method.phpt │ │ │ ├── filter-no-results.phpt │ │ │ ├── group-isolation.phpt │ │ │ ├── group.phpt │ │ │ ├── help.phpt │ │ │ ├── help2.phpt │ │ │ ├── ini-isolation.phpt │ │ │ ├── list-groups.phpt │ │ │ ├── log-json-no-pretty-print.phpt │ │ │ ├── log-json-post-66021.phpt │ │ │ ├── log-json-pre-66021.phpt │ │ │ ├── log-tap.phpt │ │ │ ├── log-xml.phpt │ │ │ ├── options-after-arguments.phpt │ │ │ ├── output-isolation.phpt │ │ │ ├── repeat.phpt │ │ │ ├── report-useless-tests-incomplete.phpt │ │ │ ├── report-useless-tests-isolation.phpt │ │ │ ├── report-useless-tests.phpt │ │ │ ├── tap.phpt │ │ │ ├── test-suffix-multiple.phpt │ │ │ ├── test-suffix-single.phpt │ │ │ ├── testdox-html.phpt │ │ │ ├── testdox-text.phpt │ │ │ └── testdox.phpt │ │ │ ├── Util │ │ │ ├── ConfigurationTest.php │ │ │ ├── GetoptTest.php │ │ │ ├── GlobalStateTest.php │ │ │ ├── RegexTest.php │ │ │ ├── TestDox │ │ │ │ └── NamePrettifierTest.php │ │ │ ├── TestTest.php │ │ │ └── XMLTest.php │ │ │ ├── _files │ │ │ ├── AbstractTest.php │ │ │ ├── Author.php │ │ │ ├── BankAccount.php │ │ │ ├── BankAccountTest.php │ │ │ ├── BankAccountTest.test.php │ │ │ ├── BaseTestListenerSample.php │ │ │ ├── BeforeAndAfterTest.php │ │ │ ├── BeforeClassAndAfterClassTest.php │ │ │ ├── Book.php │ │ │ ├── Calculator.php │ │ │ ├── ChangeCurrentWorkingDirectoryTest.php │ │ │ ├── ClassWithNonPublicAttributes.php │ │ │ ├── ClassWithScalarTypeDeclarations.php │ │ │ ├── ClassWithToString.php │ │ │ ├── ConcreteTest.my.php │ │ │ ├── ConcreteTest.php │ │ │ ├── CoverageClassExtendedTest.php │ │ │ ├── CoverageClassTest.php │ │ │ ├── CoverageFunctionParenthesesTest.php │ │ │ ├── CoverageFunctionParenthesesWhitespaceTest.php │ │ │ ├── CoverageFunctionTest.php │ │ │ ├── CoverageMethodOneLineAnnotationTest.php │ │ │ ├── CoverageMethodParenthesesTest.php │ │ │ ├── CoverageMethodParenthesesWhitespaceTest.php │ │ │ ├── CoverageMethodTest.php │ │ │ ├── CoverageNamespacedFunctionTest.php │ │ │ ├── CoverageNoneTest.php │ │ │ ├── CoverageNotPrivateTest.php │ │ │ ├── CoverageNotProtectedTest.php │ │ │ ├── CoverageNotPublicTest.php │ │ │ ├── CoverageNothingTest.php │ │ │ ├── CoveragePrivateTest.php │ │ │ ├── CoverageProtectedTest.php │ │ │ ├── CoveragePublicTest.php │ │ │ ├── CoverageTwoDefaultClassAnnotations.php │ │ │ ├── CoveredClass.php │ │ │ ├── CoveredFunction.php │ │ │ ├── CustomPrinter.php │ │ │ ├── DataProviderDebugTest.php │ │ │ ├── DataProviderFilterTest.php │ │ │ ├── DataProviderIncompleteTest.php │ │ │ ├── DataProviderSkippedTest.php │ │ │ ├── DataProviderTest.php │ │ │ ├── DependencyFailureTest.php │ │ │ ├── DependencySuccessTest.php │ │ │ ├── DependencyTestSuite.php │ │ │ ├── DoubleTestCase.php │ │ │ ├── DummyException.php │ │ │ ├── EmptyTestCaseTest.php │ │ │ ├── ExceptionInAssertPostConditionsTest.php │ │ │ ├── ExceptionInAssertPreConditionsTest.php │ │ │ ├── ExceptionInSetUpTest.php │ │ │ ├── ExceptionInTearDownTest.php │ │ │ ├── ExceptionInTest.php │ │ │ ├── ExceptionNamespaceTest.php │ │ │ ├── ExceptionStackTest.php │ │ │ ├── ExceptionTest.php │ │ │ ├── Failure.php │ │ │ ├── FailureTest.php │ │ │ ├── FatalTest.php │ │ │ ├── IncompleteTest.php │ │ │ ├── Inheritance │ │ │ │ ├── InheritanceA.php │ │ │ │ └── InheritanceB.php │ │ │ ├── InheritedTestCase.php │ │ │ ├── IniTest.php │ │ │ ├── IsolationTest.php │ │ │ ├── JsonData │ │ │ │ ├── arrayObject.json │ │ │ │ └── simpleObject.json │ │ │ ├── MockRunner.php │ │ │ ├── MultiDependencyTest.php │ │ │ ├── NamespaceCoverageClassExtendedTest.php │ │ │ ├── NamespaceCoverageClassTest.php │ │ │ ├── NamespaceCoverageCoversClassPublicTest.php │ │ │ ├── NamespaceCoverageCoversClassTest.php │ │ │ ├── NamespaceCoverageMethodTest.php │ │ │ ├── NamespaceCoverageNotPrivateTest.php │ │ │ ├── NamespaceCoverageNotProtectedTest.php │ │ │ ├── NamespaceCoverageNotPublicTest.php │ │ │ ├── NamespaceCoveragePrivateTest.php │ │ │ ├── NamespaceCoverageProtectedTest.php │ │ │ ├── NamespaceCoveragePublicTest.php │ │ │ ├── NamespaceCoveredClass.php │ │ │ ├── NamespaceCoveredFunction.php │ │ │ ├── NoArgTestCaseTest.php │ │ │ ├── NoTestCaseClass.php │ │ │ ├── NoTestCases.php │ │ │ ├── NonStatic.php │ │ │ ├── NotExistingCoveredElementTest.php │ │ │ ├── NotPublicTestCase.php │ │ │ ├── NotVoidTestCase.php │ │ │ ├── NothingTest.php │ │ │ ├── OneTestCase.php │ │ │ ├── OutputTestCase.php │ │ │ ├── OverrideTestCase.php │ │ │ ├── RequirementsClassBeforeClassHookTest.php │ │ │ ├── RequirementsClassDocBlockTest.php │ │ │ ├── RequirementsTest.php │ │ │ ├── SampleArrayAccess.php │ │ │ ├── SampleClass.php │ │ │ ├── Singleton.php │ │ │ ├── StackTest.php │ │ │ ├── Struct.php │ │ │ ├── Success.php │ │ │ ├── TemplateMethodsTest.php │ │ │ ├── TestIncomplete.php │ │ │ ├── TestIterator.php │ │ │ ├── TestIterator2.php │ │ │ ├── TestSkipped.php │ │ │ ├── TestTestError.php │ │ │ ├── TestWithTest.php │ │ │ ├── ThrowExceptionTestCase.php │ │ │ ├── ThrowNoExceptionTestCase.php │ │ │ ├── WasRun.php │ │ │ ├── bar.xml │ │ │ ├── configuration.colors.empty.xml │ │ │ ├── configuration.colors.false.xml │ │ │ ├── configuration.colors.invalid.xml │ │ │ ├── configuration.colors.true.xml │ │ │ ├── configuration.custom-printer.xml │ │ │ ├── configuration.xml │ │ │ ├── configuration_empty.xml │ │ │ ├── configuration_xinclude.xml │ │ │ ├── expectedFileFormat.txt │ │ │ ├── foo.xml │ │ │ ├── structureAttributesAreSameButValuesAreNot.xml │ │ │ ├── structureExpected.xml │ │ │ ├── structureIgnoreTextNodes.xml │ │ │ ├── structureIsSameButDataIsNot.xml │ │ │ ├── structureWrongNumberOfAttributes.xml │ │ │ └── structureWrongNumberOfNodes.xml │ │ │ └── bootstrap.php │ │ ├── sebastian │ │ ├── comparator │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── build │ │ │ │ └── travis-ci.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ ├── ArrayComparator.php │ │ │ │ ├── Comparator.php │ │ │ │ ├── ComparisonFailure.php │ │ │ │ ├── DOMNodeComparator.php │ │ │ │ ├── DateTimeComparator.php │ │ │ │ ├── DoubleComparator.php │ │ │ │ ├── ExceptionComparator.php │ │ │ │ ├── Factory.php │ │ │ │ ├── MockObjectComparator.php │ │ │ │ ├── NumericComparator.php │ │ │ │ ├── ObjectComparator.php │ │ │ │ ├── ResourceComparator.php │ │ │ │ ├── ScalarComparator.php │ │ │ │ ├── SplObjectStorageComparator.php │ │ │ │ └── TypeComparator.php │ │ │ └── tests │ │ │ │ ├── ArrayComparatorTest.php │ │ │ │ ├── DOMNodeComparatorTest.php │ │ │ │ ├── DateTimeComparatorTest.php │ │ │ │ ├── DoubleComparatorTest.php │ │ │ │ ├── ExceptionComparatorTest.php │ │ │ │ ├── FactoryTest.php │ │ │ │ ├── MockObjectComparatorTest.php │ │ │ │ ├── NumericComparatorTest.php │ │ │ │ ├── ObjectComparatorTest.php │ │ │ │ ├── ResourceComparatorTest.php │ │ │ │ ├── ScalarComparatorTest.php │ │ │ │ ├── SplObjectStorageComparatorTest.php │ │ │ │ ├── TypeComparatorTest.php │ │ │ │ ├── _files │ │ │ │ ├── Author.php │ │ │ │ ├── Book.php │ │ │ │ ├── ClassWithToString.php │ │ │ │ ├── SampleClass.php │ │ │ │ ├── Struct.php │ │ │ │ ├── TestClass.php │ │ │ │ └── TestClassComparator.php │ │ │ │ ├── autoload.php │ │ │ │ └── bootstrap.php │ │ ├── diff │ │ │ ├── .gitignore │ │ │ ├── .php_cs │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ ├── Chunk.php │ │ │ │ ├── Diff.php │ │ │ │ ├── Differ.php │ │ │ │ ├── LCS │ │ │ │ │ ├── LongestCommonSubsequence.php │ │ │ │ │ ├── MemoryEfficientLongestCommonSubsequenceImplementation.php │ │ │ │ │ └── TimeEfficientLongestCommonSubsequenceImplementation.php │ │ │ │ ├── Line.php │ │ │ │ └── Parser.php │ │ │ └── tests │ │ │ │ ├── DifferTest.php │ │ │ │ ├── LCS │ │ │ │ └── TimeEfficientImplementationTest.php │ │ │ │ ├── ParserTest.php │ │ │ │ └── fixtures │ │ │ │ ├── patch.txt │ │ │ │ └── patch2.txt │ │ ├── environment │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ ├── Console.php │ │ │ │ └── Runtime.php │ │ │ └── tests │ │ │ │ ├── ConsoleTest.php │ │ │ │ └── RuntimeTest.php │ │ ├── exporter │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ └── Exporter.php │ │ │ └── tests │ │ │ │ └── ExporterTest.php │ │ ├── global-state │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ ├── Blacklist.php │ │ │ │ ├── CodeExporter.php │ │ │ │ ├── Exception.php │ │ │ │ ├── Restorer.php │ │ │ │ ├── RuntimeException.php │ │ │ │ └── Snapshot.php │ │ │ └── tests │ │ │ │ ├── BlacklistTest.php │ │ │ │ ├── SnapshotTest.php │ │ │ │ └── _fixture │ │ │ │ ├── BlacklistedChildClass.php │ │ │ │ ├── BlacklistedClass.php │ │ │ │ ├── BlacklistedImplementor.php │ │ │ │ ├── BlacklistedInterface.php │ │ │ │ ├── SnapshotClass.php │ │ │ │ ├── SnapshotDomDocument.php │ │ │ │ ├── SnapshotFunctions.php │ │ │ │ └── SnapshotTrait.php │ │ ├── recursion-context │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── build.xml │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ ├── Context.php │ │ │ │ ├── Exception.php │ │ │ │ └── InvalidArgumentException.php │ │ │ └── tests │ │ │ │ └── ContextTest.php │ │ └── version │ │ │ ├── .gitattributes │ │ │ ├── .gitignore │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ └── src │ │ │ └── Version.php │ │ └── symfony │ │ └── yaml │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── Dumper.php │ │ ├── Escaper.php │ │ ├── Exception │ │ ├── DumpException.php │ │ ├── ExceptionInterface.php │ │ ├── ParseException.php │ │ └── RuntimeException.php │ │ ├── Inline.php │ │ ├── LICENSE │ │ ├── Parser.php │ │ ├── README.md │ │ ├── Tests │ │ ├── DumperTest.php │ │ ├── Fixtures │ │ │ ├── YtsAnchorAlias.yml │ │ │ ├── YtsBasicTests.yml │ │ │ ├── YtsBlockMapping.yml │ │ │ ├── YtsDocumentSeparator.yml │ │ │ ├── YtsErrorTests.yml │ │ │ ├── YtsFlowCollections.yml │ │ │ ├── YtsFoldedScalars.yml │ │ │ ├── YtsNullsAndEmpties.yml │ │ │ ├── YtsSpecificationExamples.yml │ │ │ ├── YtsTypeTransfers.yml │ │ │ ├── embededPhp.yml │ │ │ ├── escapedCharacters.yml │ │ │ ├── index.yml │ │ │ ├── sfComments.yml │ │ │ ├── sfCompact.yml │ │ │ ├── sfMergeKey.yml │ │ │ ├── sfObjects.yml │ │ │ ├── sfQuotes.yml │ │ │ ├── sfTests.yml │ │ │ └── unindentedCollections.yml │ │ ├── InlineTest.php │ │ ├── ParseExceptionTest.php │ │ ├── ParserTest.php │ │ └── YamlTest.php │ │ ├── Unescaper.php │ │ ├── Yaml.php │ │ ├── composer.json │ │ └── phpunit.xml.dist ├── set_response_code │ └── set_response_code.php ├── simple_composer │ ├── README.md │ ├── composer.json │ ├── composer.lock │ ├── composer.phar │ └── vendor │ │ ├── autoload.php │ │ ├── aws │ │ └── aws-sdk-php │ │ │ ├── LICENSE.md │ │ │ ├── NOTICE.md │ │ │ ├── composer.json │ │ │ └── src │ │ │ ├── Acm │ │ │ ├── AcmClient.php │ │ │ └── Exception │ │ │ │ └── AcmException.php │ │ │ ├── Api │ │ │ ├── AbstractModel.php │ │ │ ├── ApiProvider.php │ │ │ ├── DateTimeResult.php │ │ │ ├── DocModel.php │ │ │ ├── ErrorParser │ │ │ │ ├── JsonParserTrait.php │ │ │ │ ├── JsonRpcErrorParser.php │ │ │ │ ├── RestJsonErrorParser.php │ │ │ │ └── XmlErrorParser.php │ │ │ ├── ListShape.php │ │ │ ├── MapShape.php │ │ │ ├── Operation.php │ │ │ ├── Parser │ │ │ │ ├── AbstractParser.php │ │ │ │ ├── AbstractRestParser.php │ │ │ │ ├── Crc32ValidatingParser.php │ │ │ │ ├── Exception │ │ │ │ │ └── ParserException.php │ │ │ │ ├── JsonParser.php │ │ │ │ ├── JsonRpcParser.php │ │ │ │ ├── PayloadParserTrait.php │ │ │ │ ├── QueryParser.php │ │ │ │ ├── RestJsonParser.php │ │ │ │ ├── RestXmlParser.php │ │ │ │ └── XmlParser.php │ │ │ ├── Serializer │ │ │ │ ├── Ec2ParamBuilder.php │ │ │ │ ├── JsonBody.php │ │ │ │ ├── JsonRpcSerializer.php │ │ │ │ ├── QueryParamBuilder.php │ │ │ │ ├── QuerySerializer.php │ │ │ │ ├── RestJsonSerializer.php │ │ │ │ ├── RestSerializer.php │ │ │ │ ├── RestXmlSerializer.php │ │ │ │ └── XmlBody.php │ │ │ ├── Service.php │ │ │ ├── Shape.php │ │ │ ├── ShapeMap.php │ │ │ ├── StructureShape.php │ │ │ ├── TimestampShape.php │ │ │ └── Validator.php │ │ │ ├── ApiGateway │ │ │ ├── ApiGatewayClient.php │ │ │ └── Exception │ │ │ │ └── ApiGatewayException.php │ │ │ ├── AutoScaling │ │ │ ├── AutoScalingClient.php │ │ │ └── Exception │ │ │ │ └── AutoScalingException.php │ │ │ ├── AwsClient.php │ │ │ ├── AwsClientInterface.php │ │ │ ├── CacheInterface.php │ │ │ ├── ClientResolver.php │ │ │ ├── CloudFormation │ │ │ ├── CloudFormationClient.php │ │ │ └── Exception │ │ │ │ └── CloudFormationException.php │ │ │ ├── CloudFront │ │ │ ├── CloudFrontClient.php │ │ │ ├── CookieSigner.php │ │ │ ├── Exception │ │ │ │ └── CloudFrontException.php │ │ │ ├── Signer.php │ │ │ └── UrlSigner.php │ │ │ ├── CloudHsm │ │ │ ├── CloudHsmClient.php │ │ │ └── Exception │ │ │ │ └── CloudHsmException.php │ │ │ ├── CloudSearch │ │ │ ├── CloudSearchClient.php │ │ │ └── Exception │ │ │ │ └── CloudSearchException.php │ │ │ ├── CloudSearchDomain │ │ │ ├── CloudSearchDomainClient.php │ │ │ └── Exception │ │ │ │ └── CloudSearchDomainException.php │ │ │ ├── CloudTrail │ │ │ ├── CloudTrailClient.php │ │ │ ├── Exception │ │ │ │ └── CloudTrailException.php │ │ │ ├── LogFileIterator.php │ │ │ ├── LogFileReader.php │ │ │ └── LogRecordIterator.php │ │ │ ├── CloudWatch │ │ │ ├── CloudWatchClient.php │ │ │ └── Exception │ │ │ │ └── CloudWatchException.php │ │ │ ├── CloudWatchEvents │ │ │ ├── CloudWatchEventsClient.php │ │ │ └── Exception │ │ │ │ └── CloudWatchEventsException.php │ │ │ ├── CloudWatchLogs │ │ │ ├── CloudWatchLogsClient.php │ │ │ └── Exception │ │ │ │ └── CloudWatchLogsException.php │ │ │ ├── CodeCommit │ │ │ ├── CodeCommitClient.php │ │ │ └── Exception │ │ │ │ └── CodeCommitException.php │ │ │ ├── CodeDeploy │ │ │ ├── CodeDeployClient.php │ │ │ └── Exception │ │ │ │ └── CodeDeployException.php │ │ │ ├── CodePipeline │ │ │ ├── CodePipelineClient.php │ │ │ └── Exception │ │ │ │ └── CodePipelineException.php │ │ │ ├── CognitoIdentity │ │ │ ├── CognitoIdentityClient.php │ │ │ ├── CognitoIdentityProvider.php │ │ │ └── Exception │ │ │ │ └── CognitoIdentityException.php │ │ │ ├── CognitoSync │ │ │ ├── CognitoSyncClient.php │ │ │ └── Exception │ │ │ │ └── CognitoSyncException.php │ │ │ ├── Command.php │ │ │ ├── CommandInterface.php │ │ │ ├── CommandPool.php │ │ │ ├── ConfigService │ │ │ ├── ConfigServiceClient.php │ │ │ └── Exception │ │ │ │ └── ConfigServiceException.php │ │ │ ├── Credentials │ │ │ ├── CredentialProvider.php │ │ │ ├── Credentials.php │ │ │ ├── CredentialsInterface.php │ │ │ └── InstanceProfileProvider.php │ │ │ ├── DataPipeline │ │ │ ├── DataPipelineClient.php │ │ │ └── Exception │ │ │ │ └── DataPipelineException.php │ │ │ ├── DeviceFarm │ │ │ ├── DeviceFarmClient.php │ │ │ └── Exception │ │ │ │ └── DeviceFarmException.php │ │ │ ├── DirectConnect │ │ │ ├── DirectConnectClient.php │ │ │ └── Exception │ │ │ │ └── DirectConnectException.php │ │ │ ├── DirectoryService │ │ │ ├── DirectoryServiceClient.php │ │ │ └── Exception │ │ │ │ └── DirectoryServiceException.php │ │ │ ├── DoctrineCacheAdapter.php │ │ │ ├── DynamoDb │ │ │ ├── BinaryValue.php │ │ │ ├── DynamoDbClient.php │ │ │ ├── Exception │ │ │ │ └── DynamoDbException.php │ │ │ ├── LockingSessionConnection.php │ │ │ ├── Marshaler.php │ │ │ ├── NumberValue.php │ │ │ ├── SessionConnectionInterface.php │ │ │ ├── SessionHandler.php │ │ │ ├── SetValue.php │ │ │ ├── StandardSessionConnection.php │ │ │ └── WriteRequestBatch.php │ │ │ ├── DynamoDbStreams │ │ │ ├── DynamoDbStreamsClient.php │ │ │ └── Exception │ │ │ │ └── DynamoDbStreamsException.php │ │ │ ├── Ec2 │ │ │ ├── CopySnapshotMiddleware.php │ │ │ ├── Ec2Client.php │ │ │ └── Exception │ │ │ │ └── Ec2Exception.php │ │ │ ├── Ecr │ │ │ ├── EcrClient.php │ │ │ └── Exception │ │ │ │ └── EcrException.php │ │ │ ├── Ecs │ │ │ ├── EcsClient.php │ │ │ └── Exception │ │ │ │ └── EcsException.php │ │ │ ├── Efs │ │ │ ├── EfsClient.php │ │ │ └── Exception │ │ │ │ └── EfsException.php │ │ │ ├── ElastiCache │ │ │ ├── ElastiCacheClient.php │ │ │ └── Exception │ │ │ │ └── ElastiCacheException.php │ │ │ ├── ElasticBeanstalk │ │ │ ├── ElasticBeanstalkClient.php │ │ │ └── Exception │ │ │ │ └── ElasticBeanstalkException.php │ │ │ ├── ElasticLoadBalancing │ │ │ ├── ElasticLoadBalancingClient.php │ │ │ └── Exception │ │ │ │ └── ElasticLoadBalancingException.php │ │ │ ├── ElasticTranscoder │ │ │ ├── ElasticTranscoderClient.php │ │ │ └── Exception │ │ │ │ └── ElasticTranscoderException.php │ │ │ ├── ElasticsearchService │ │ │ ├── ElasticsearchServiceClient.php │ │ │ └── Exception │ │ │ │ └── ElasticsearchServiceException.php │ │ │ ├── Emr │ │ │ ├── EmrClient.php │ │ │ └── Exception │ │ │ │ └── EmrException.php │ │ │ ├── Endpoint │ │ │ ├── EndpointProvider.php │ │ │ └── PatternEndpointProvider.php │ │ │ ├── Exception │ │ │ ├── AwsException.php │ │ │ ├── CouldNotCreateChecksumException.php │ │ │ ├── CredentialsException.php │ │ │ ├── MultipartUploadException.php │ │ │ ├── UnresolvedApiException.php │ │ │ ├── UnresolvedEndpointException.php │ │ │ └── UnresolvedSignatureException.php │ │ │ ├── Firehose │ │ │ ├── Exception │ │ │ │ └── FirehoseException.php │ │ │ └── FirehoseClient.php │ │ │ ├── Glacier │ │ │ ├── Exception │ │ │ │ └── GlacierException.php │ │ │ ├── GlacierClient.php │ │ │ ├── MultipartUploader.php │ │ │ └── TreeHash.php │ │ │ ├── Handler │ │ │ ├── GuzzleV5 │ │ │ │ ├── GuzzleHandler.php │ │ │ │ ├── GuzzleStream.php │ │ │ │ └── PsrStream.php │ │ │ └── GuzzleV6 │ │ │ │ └── GuzzleHandler.php │ │ │ ├── HandlerList.php │ │ │ ├── HasDataTrait.php │ │ │ ├── HashInterface.php │ │ │ ├── HashingStream.php │ │ │ ├── History.php │ │ │ ├── Iam │ │ │ ├── Exception │ │ │ │ └── IamException.php │ │ │ └── IamClient.php │ │ │ ├── Inspector │ │ │ ├── Exception │ │ │ │ └── InspectorException.php │ │ │ └── InspectorClient.php │ │ │ ├── Iot │ │ │ ├── Exception │ │ │ │ └── IotException.php │ │ │ └── IotClient.php │ │ │ ├── IotDataPlane │ │ │ ├── Exception │ │ │ │ └── IotDataPlaneException.php │ │ │ └── IotDataPlaneClient.php │ │ │ ├── JsonCompiler.php │ │ │ ├── Kinesis │ │ │ ├── Exception │ │ │ │ └── KinesisException.php │ │ │ └── KinesisClient.php │ │ │ ├── Kms │ │ │ ├── Exception │ │ │ │ └── KmsException.php │ │ │ └── KmsClient.php │ │ │ ├── Lambda │ │ │ ├── Exception │ │ │ │ └── LambdaException.php │ │ │ └── LambdaClient.php │ │ │ ├── LruArrayCache.php │ │ │ ├── MachineLearning │ │ │ ├── Exception │ │ │ │ └── MachineLearningException.php │ │ │ └── MachineLearningClient.php │ │ │ ├── MarketplaceCommerceAnalytics │ │ │ ├── Exception │ │ │ │ └── MarketplaceCommerceAnalyticsException.php │ │ │ └── MarketplaceCommerceAnalyticsClient.php │ │ │ ├── Middleware.php │ │ │ ├── MockHandler.php │ │ │ ├── Multipart │ │ │ ├── AbstractUploadManager.php │ │ │ ├── AbstractUploader.php │ │ │ └── UploadState.php │ │ │ ├── OpsWorks │ │ │ ├── Exception │ │ │ │ └── OpsWorksException.php │ │ │ └── OpsWorksClient.php │ │ │ ├── PhpHash.php │ │ │ ├── Rds │ │ │ ├── Exception │ │ │ │ └── RdsException.php │ │ │ └── RdsClient.php │ │ │ ├── Redshift │ │ │ ├── Exception │ │ │ │ └── RedshiftException.php │ │ │ └── RedshiftClient.php │ │ │ ├── Result.php │ │ │ ├── ResultInterface.php │ │ │ ├── ResultPaginator.php │ │ │ ├── RetryMiddleware.php │ │ │ ├── Route53 │ │ │ ├── Exception │ │ │ │ └── Route53Exception.php │ │ │ └── Route53Client.php │ │ │ ├── Route53Domains │ │ │ ├── Exception │ │ │ │ └── Route53DomainsException.php │ │ │ └── Route53DomainsClient.php │ │ │ ├── S3 │ │ │ ├── AmbiguousSuccessParser.php │ │ │ ├── ApplyChecksumMiddleware.php │ │ │ ├── BatchDelete.php │ │ │ ├── BucketEndpointMiddleware.php │ │ │ ├── Exception │ │ │ │ ├── DeleteMultipleObjectsException.php │ │ │ │ ├── PermanentRedirectException.php │ │ │ │ └── S3Exception.php │ │ │ ├── GetBucketLocationParser.php │ │ │ ├── MultipartCopy.php │ │ │ ├── MultipartUploader.php │ │ │ ├── MultipartUploadingTrait.php │ │ │ ├── PermanentRedirectMiddleware.php │ │ │ ├── PostObject.php │ │ │ ├── PutObjectUrlMiddleware.php │ │ │ ├── RetryableMalformedResponseParser.php │ │ │ ├── S3Client.php │ │ │ ├── S3UriParser.php │ │ │ ├── SSECMiddleware.php │ │ │ ├── StreamWrapper.php │ │ │ └── Transfer.php │ │ │ ├── Sdk.php │ │ │ ├── Ses │ │ │ ├── Exception │ │ │ │ └── SesException.php │ │ │ └── SesClient.php │ │ │ ├── Signature │ │ │ ├── AnonymousSignature.php │ │ │ ├── S3SignatureV4.php │ │ │ ├── SignatureInterface.php │ │ │ ├── SignatureProvider.php │ │ │ └── SignatureV4.php │ │ │ ├── Sns │ │ │ ├── Exception │ │ │ │ └── SnsException.php │ │ │ └── SnsClient.php │ │ │ ├── Sqs │ │ │ ├── Exception │ │ │ │ └── SqsException.php │ │ │ └── SqsClient.php │ │ │ ├── Ssm │ │ │ ├── Exception │ │ │ │ └── SsmException.php │ │ │ └── SsmClient.php │ │ │ ├── StorageGateway │ │ │ ├── Exception │ │ │ │ └── StorageGatewayException.php │ │ │ └── StorageGatewayClient.php │ │ │ ├── Sts │ │ │ ├── Exception │ │ │ │ └── StsException.php │ │ │ └── StsClient.php │ │ │ ├── Support │ │ │ ├── Exception │ │ │ │ └── SupportException.php │ │ │ └── SupportClient.php │ │ │ ├── Swf │ │ │ ├── Exception │ │ │ │ └── SwfException.php │ │ │ └── SwfClient.php │ │ │ ├── TraceMiddleware.php │ │ │ ├── Waf │ │ │ ├── Exception │ │ │ │ └── WafException.php │ │ │ └── WafClient.php │ │ │ ├── Waiter.php │ │ │ ├── WorkSpaces │ │ │ ├── Exception │ │ │ │ └── WorkSpacesException.php │ │ │ └── WorkSpacesClient.php │ │ │ ├── WrappedHttpHandler.php │ │ │ ├── data │ │ │ ├── acm │ │ │ │ └── 2015-12-08 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── apigateway │ │ │ │ └── 2015-07-09 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── autoscaling │ │ │ │ └── 2011-01-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── cloudformation │ │ │ │ └── 2010-05-15 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── cloudfront │ │ │ │ ├── 2015-07-27 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ │ └── 2016-01-28 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── cloudhsm │ │ │ │ └── 2014-05-30 │ │ │ │ │ └── api-2.json.php │ │ │ ├── cloudsearch │ │ │ │ └── 2013-01-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── cloudsearchdomain │ │ │ │ └── 2013-01-01 │ │ │ │ │ └── api-2.json.php │ │ │ ├── cloudtrail │ │ │ │ └── 2013-11-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── codecommit │ │ │ │ └── 2015-04-13 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── codedeploy │ │ │ │ └── 2014-10-06 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── codepipeline │ │ │ │ └── 2015-07-09 │ │ │ │ │ └── api-2.json.php │ │ │ ├── cognito-identity │ │ │ │ └── 2014-06-30 │ │ │ │ │ └── api-2.json.php │ │ │ ├── cognito-sync │ │ │ │ └── 2014-06-30 │ │ │ │ │ └── api-2.json.php │ │ │ ├── config │ │ │ │ └── 2014-11-12 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── data.iot │ │ │ │ └── 2015-05-28 │ │ │ │ │ └── api-2.json.php │ │ │ ├── datapipeline │ │ │ │ └── 2012-10-29 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── devicefarm │ │ │ │ └── 2015-06-23 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── directconnect │ │ │ │ └── 2012-10-25 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── ds │ │ │ │ └── 2015-04-16 │ │ │ │ │ └── api-2.json.php │ │ │ ├── dynamodb │ │ │ │ └── 2012-08-10 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── ec2 │ │ │ │ └── 2015-10-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── ecr │ │ │ │ └── 2015-09-21 │ │ │ │ │ └── api-2.json.php │ │ │ ├── ecs │ │ │ │ └── 2014-11-13 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── elasticache │ │ │ │ └── 2015-02-02 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── elasticbeanstalk │ │ │ │ └── 2010-12-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── elasticfilesystem │ │ │ │ └── 2015-02-01 │ │ │ │ │ └── api-2.json.php │ │ │ ├── elasticloadbalancing │ │ │ │ └── 2012-06-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── elasticmapreduce │ │ │ │ └── 2009-03-31 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── elastictranscoder │ │ │ │ └── 2012-09-25 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── email │ │ │ │ └── 2010-12-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── endpoints.json.php │ │ │ ├── es │ │ │ │ └── 2015-01-01 │ │ │ │ │ └── api-2.json.php │ │ │ ├── events │ │ │ │ └── 2014-02-03 │ │ │ │ │ └── api-2.json.php │ │ │ ├── firehose │ │ │ │ └── 2015-08-04 │ │ │ │ │ └── api-2.json.php │ │ │ ├── glacier │ │ │ │ └── 2012-06-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── iam │ │ │ │ └── 2010-05-08 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── inspector │ │ │ │ └── 2015-08-18 │ │ │ │ │ └── api-2.json.php │ │ │ ├── iot │ │ │ │ └── 2015-05-28 │ │ │ │ │ └── api-2.json.php │ │ │ ├── kinesis │ │ │ │ └── 2013-12-02 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── kms │ │ │ │ └── 2014-11-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── lambda │ │ │ │ └── 2015-03-31 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── logs │ │ │ │ └── 2014-03-28 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── machinelearning │ │ │ │ └── 2014-12-12 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── manifest.json.php │ │ │ ├── marketplacecommerceanalytics │ │ │ │ └── 2015-07-01 │ │ │ │ │ └── api-2.json.php │ │ │ ├── monitoring │ │ │ │ └── 2010-08-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── opsworks │ │ │ │ └── 2013-02-18 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── rds │ │ │ │ └── 2014-10-31 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── redshift │ │ │ │ └── 2012-12-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── route53 │ │ │ │ └── 2013-04-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── route53domains │ │ │ │ └── 2014-05-15 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── s3 │ │ │ │ └── 2006-03-01 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── sns │ │ │ │ └── 2010-03-31 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── sqs │ │ │ │ └── 2012-11-05 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ ├── examples-1.json.php │ │ │ │ │ ├── paginators-1.json.php │ │ │ │ │ └── waiters-2.json.php │ │ │ ├── ssm │ │ │ │ └── 2014-11-06 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── storagegateway │ │ │ │ └── 2013-06-30 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── streams.dynamodb │ │ │ │ └── 2012-08-10 │ │ │ │ │ └── api-2.json.php │ │ │ ├── sts │ │ │ │ └── 2011-06-15 │ │ │ │ │ └── api-2.json.php │ │ │ ├── support │ │ │ │ └── 2013-04-15 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── swf │ │ │ │ └── 2012-01-25 │ │ │ │ │ ├── api-2.json.php │ │ │ │ │ └── paginators-1.json.php │ │ │ ├── waf │ │ │ │ └── 2015-08-24 │ │ │ │ │ └── api-2.json.php │ │ │ └── workspaces │ │ │ │ └── 2015-04-08 │ │ │ │ ├── api-2.json.php │ │ │ │ └── paginators-1.json.php │ │ │ └── functions.php │ │ ├── bin │ │ └── jp.php │ │ ├── composer │ │ ├── ClassLoader.php │ │ ├── LICENSE │ │ ├── autoload_classmap.php │ │ ├── autoload_files.php │ │ ├── autoload_namespaces.php │ │ ├── autoload_psr4.php │ │ ├── autoload_real.php │ │ └── installed.json │ │ ├── guzzlehttp │ │ ├── guzzle │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── README.md │ │ │ ├── UPGRADING.md │ │ │ ├── composer.json │ │ │ └── src │ │ │ │ ├── Client.php │ │ │ │ ├── ClientInterface.php │ │ │ │ ├── Cookie │ │ │ │ ├── CookieJar.php │ │ │ │ ├── CookieJarInterface.php │ │ │ │ ├── FileCookieJar.php │ │ │ │ ├── SessionCookieJar.php │ │ │ │ └── SetCookie.php │ │ │ │ ├── Exception │ │ │ │ ├── BadResponseException.php │ │ │ │ ├── ClientException.php │ │ │ │ ├── ConnectException.php │ │ │ │ ├── GuzzleException.php │ │ │ │ ├── RequestException.php │ │ │ │ ├── SeekException.php │ │ │ │ ├── ServerException.php │ │ │ │ ├── TooManyRedirectsException.php │ │ │ │ └── TransferException.php │ │ │ │ ├── Handler │ │ │ │ ├── CurlFactory.php │ │ │ │ ├── CurlFactoryInterface.php │ │ │ │ ├── CurlHandler.php │ │ │ │ ├── CurlMultiHandler.php │ │ │ │ ├── EasyHandle.php │ │ │ │ ├── MockHandler.php │ │ │ │ ├── Proxy.php │ │ │ │ └── StreamHandler.php │ │ │ │ ├── HandlerStack.php │ │ │ │ ├── MessageFormatter.php │ │ │ │ ├── Middleware.php │ │ │ │ ├── Pool.php │ │ │ │ ├── PrepareBodyMiddleware.php │ │ │ │ ├── RedirectMiddleware.php │ │ │ │ ├── RequestOptions.php │ │ │ │ ├── RetryMiddleware.php │ │ │ │ ├── TransferStats.php │ │ │ │ ├── UriTemplate.php │ │ │ │ ├── functions.php │ │ │ │ └── functions_include.php │ │ ├── promises │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ │ ├── AggregateException.php │ │ │ │ ├── CancellationException.php │ │ │ │ ├── EachPromise.php │ │ │ │ ├── FulfilledPromise.php │ │ │ │ ├── Promise.php │ │ │ │ ├── PromiseInterface.php │ │ │ │ ├── PromisorInterface.php │ │ │ │ ├── RejectedPromise.php │ │ │ │ ├── RejectionException.php │ │ │ │ ├── TaskQueue.php │ │ │ │ ├── functions.php │ │ │ │ └── functions_include.php │ │ │ └── tests │ │ │ │ ├── AggregateExceptionTest.php │ │ │ │ ├── EachPromiseTest.php │ │ │ │ ├── FulfilledPromiseTest.php │ │ │ │ ├── NotPromiseInstance.php │ │ │ │ ├── PromiseTest.php │ │ │ │ ├── RejectedPromiseTest.php │ │ │ │ ├── RejectionExceptionTest.php │ │ │ │ ├── TaskQueueTest.php │ │ │ │ ├── Thennable.php │ │ │ │ ├── bootstrap.php │ │ │ │ └── functionsTest.php │ │ └── psr7 │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.md │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ ├── AppendStream.php │ │ │ ├── BufferStream.php │ │ │ ├── CachingStream.php │ │ │ ├── DroppingStream.php │ │ │ ├── FnStream.php │ │ │ ├── InflateStream.php │ │ │ ├── LazyOpenStream.php │ │ │ ├── LimitStream.php │ │ │ ├── MessageTrait.php │ │ │ ├── MultipartStream.php │ │ │ ├── NoSeekStream.php │ │ │ ├── PumpStream.php │ │ │ ├── Request.php │ │ │ ├── Response.php │ │ │ ├── Stream.php │ │ │ ├── StreamDecoratorTrait.php │ │ │ ├── StreamWrapper.php │ │ │ ├── Uri.php │ │ │ ├── functions.php │ │ │ └── functions_include.php │ │ │ └── tests │ │ │ ├── AppendStreamTest.php │ │ │ ├── BufferStreamTest.php │ │ │ ├── CachingStreamTest.php │ │ │ ├── DroppingStreamTest.php │ │ │ ├── FnStreamTest.php │ │ │ ├── FunctionsTest.php │ │ │ ├── InflateStreamTest.php │ │ │ ├── LazyOpenStreamTest.php │ │ │ ├── LimitStreamTest.php │ │ │ ├── MultipartStreamTest.php │ │ │ ├── NoSeekStreamTest.php │ │ │ ├── PumpStreamTest.php │ │ │ ├── RequestTest.php │ │ │ ├── ResponseTest.php │ │ │ ├── StreamDecoratorTraitTest.php │ │ │ ├── StreamTest.php │ │ │ ├── StreamWrapperTest.php │ │ │ ├── UriTest.php │ │ │ └── bootstrap.php │ │ ├── mtdowling │ │ └── jmespath.php │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── CHANGELOG.md │ │ │ ├── LICENSE │ │ │ ├── Makefile │ │ │ ├── README.rst │ │ │ ├── bin │ │ │ ├── jp.php │ │ │ └── perf.php │ │ │ ├── composer.json │ │ │ ├── phpunit.xml.dist │ │ │ ├── src │ │ │ ├── AstRuntime.php │ │ │ ├── CompilerRuntime.php │ │ │ ├── DebugRuntime.php │ │ │ ├── Env.php │ │ │ ├── FnDispatcher.php │ │ │ ├── JmesPath.php │ │ │ ├── Lexer.php │ │ │ ├── Parser.php │ │ │ ├── SyntaxErrorException.php │ │ │ ├── TreeCompiler.php │ │ │ ├── TreeInterpreter.php │ │ │ └── Utils.php │ │ │ └── tests │ │ │ ├── ComplianceTest.php │ │ │ ├── EnvTest.php │ │ │ ├── FnDispatcherTest.php │ │ │ ├── LexerTest.php │ │ │ ├── ParserTest.php │ │ │ ├── SyntaxErrorExceptionTest.php │ │ │ ├── TreeCompilerTest.php │ │ │ ├── TreeInterpreterTest.php │ │ │ ├── UtilsTest.php │ │ │ └── compliance │ │ │ ├── basic.json │ │ │ ├── boolean.json │ │ │ ├── current.json │ │ │ ├── escape.json │ │ │ ├── filters.json │ │ │ ├── functions.json │ │ │ ├── identifiers.json │ │ │ ├── indices.json │ │ │ ├── literal.json │ │ │ ├── multiselect.json │ │ │ ├── perf │ │ │ ├── basic.json │ │ │ ├── deep_hierarchy.json │ │ │ ├── deep_projection.json │ │ │ ├── functions.json │ │ │ ├── multiwildcard.json │ │ │ └── wildcardindex.json │ │ │ ├── pipe.json │ │ │ ├── slice.json │ │ │ ├── syntax.json │ │ │ ├── unicode.json │ │ │ └── wildcard.json │ │ └── psr │ │ └── http-message │ │ ├── LICENSE │ │ ├── README.md │ │ ├── composer.json │ │ └── src │ │ ├── MessageInterface.php │ │ ├── RequestInterface.php │ │ ├── ResponseInterface.php │ │ ├── ServerRequestInterface.php │ │ ├── StreamInterface.php │ │ ├── UploadedFileInterface.php │ │ └── UriInterface.php ├── swiftmailer │ ├── composer_swiftmailer_script.php │ └── readme_php.md └── vagrant_php_server │ ├── Vagrantfile │ └── apache_php.sh ├── playwright ├── playwright_with_headless_false │ └── playwright_with_headless_false.py └── playwright_with_headless_true │ └── playwright_with_headless_true.py ├── ponysay └── install_ponysay │ ├── Vagrantfile │ ├── install_ponysay.sh │ └── ubuntu-xenial-16.04-cloudimg-console.log ├── postfix ├── basic_postfix_smtp_relay_aws_ses │ ├── Vagrantfile │ └── bootstrap.sh └── basic_postfix_smtp_relay_config │ ├── Vagrantfile │ └── bootstrap.sh ├── postgres └── basic_postgres_install │ ├── README.md │ ├── Vagrantfile │ └── basic_postgres_install.sh ├── puppet ├── basic_erb_template │ ├── basic_erb_template.pp │ └── mytemplate.erb ├── defined_resource_example │ └── defined_resource_example.pp ├── erb_template_with_array │ ├── erb_template_with_array.pp │ └── mytemplate.erb ├── for_loop_create_directories │ └── for_loop_create_directories.pp ├── if_scope_lookup_var_exists │ ├── if_scope_lookup_var_template.pp │ └── mytemplate.erb ├── if_scope_lookup_var_template │ ├── if_scope_lookup_var_template.pp │ └── mytemplate.erb ├── if_variable_set_erb_template │ ├── if_variable_set_erb_template.pp │ └── mytemplate.erb └── string_substitution │ └── string_substitution.pp ├── pykaldi └── pykaldi_docker_build │ ├── README.md │ └── pykaldi_docker_build.yaml ├── python ├── Flask │ ├── get_config │ │ ├── README.md │ │ ├── config │ │ │ ├── development.cfg │ │ │ └── production.cfg │ │ └── get_config.py │ ├── get_config_from_env │ │ ├── README.md │ │ ├── config │ │ │ ├── development.cfg │ │ │ └── production.cfg │ │ └── get_config_from_env.py │ └── return_redirect │ │ └── return_redirect.py ├── PyQT5 │ └── pyqt5_simple_example │ │ ├── README.md │ │ ├── Vagrantfile │ │ ├── pyqt5_simple_example.sh │ │ └── render_page.py ├── argparse │ └── argparse_basics │ │ └── argparse_basics.py ├── boto │ └── ec2 │ │ └── cloudwatch │ │ └── create_cloudwatch_alarm.py ├── boto3 │ ├── boto3_cli_or_imported │ │ ├── boto3_client_use.py │ │ └── describe_instances_web.py │ ├── create_iam_user │ │ └── create_iam_user.py │ ├── ecs_run_task │ │ ├── README.md │ │ ├── ecs_run_task.py │ │ ├── ecs_run_task_with_override_cmd.py │ │ ├── ecs_run_task_with_override_cmd_and_env.py │ │ └── requirements.txt │ ├── get_all_reserved_instances │ │ └── get_all_reserved_instances.py │ ├── get_aws_account_id │ │ └── get_aws_account_id.py │ ├── get_cost_and_usage │ │ └── get_cost_and_usage.py │ ├── get_price_using_pricing_api │ │ └── get_price_using_pricing_api.py │ ├── get_regions_using_session │ │ └── get_regions_using_session.py │ ├── s3_bucket_resolve_region_endpoint │ │ └── s3_bucket_resolve_region_endpoint.py │ ├── s3_bucket_without_ssl │ │ ├── dynamodb_test_transfers.py │ │ ├── file_transmitted_with_ssl.txt │ │ ├── file_transmitted_without_ssl.txt │ │ ├── s3_bucket_file_transfers.py │ │ └── s3_bucket_without_ssl.py │ ├── s3_create_bucket │ │ └── s3_create_bucket.py │ ├── s3_list_buckets │ │ └── s3_list_buckets.py │ └── sns_topic_pusher │ │ ├── README.md │ │ ├── sns_topic.yaml │ │ ├── sns_topic_pusher.py │ │ └── sns_topic_pusher_attributes.py ├── classes │ └── class_basics │ │ └── basic_class_creation.py ├── click │ └── basic_click_project │ │ ├── vacation.py │ │ └── vacation_with_optional_arguments.py ├── closures │ └── closure_example │ │ └── closure_example.py ├── credstash │ └── credstash_get_value │ │ └── credstash_get_value.py ├── datetime │ ├── explore_datetime_formats.py │ ├── get_first_last_day_previous_month.py │ └── get_previous_monday.py ├── decimal │ └── decimal_initialize_string_or_float │ │ └── decimal_initialize_string_or_float.py ├── dict │ ├── if_key_exists │ │ └── if_key_exists.py │ ├── sort_by_key │ │ └── sort_by_key.py │ └── sort_by_split_key │ │ ├── sort_by_split_key.py │ │ └── sort_by_split_key_no_function.py ├── dict_sort_python37 │ ├── README.md │ └── dict_sort_python37.py ├── django │ └── basic_django_site │ │ ├── README.md │ │ ├── Vagrantfile │ │ ├── initialize_django.sh │ │ └── mysite │ │ ├── db.sqlite3 │ │ ├── manage.py │ │ └── mysite │ │ ├── __init__.py │ │ ├── settings.py │ │ ├── urls.py │ │ ├── views.py │ │ └── wsgi.py ├── environ_variables │ ├── python_get_environ_variable_try_catch.py │ └── python_get_print_environ_variable.py ├── exponential_backoff │ └── exponential_backoff.py ├── fabric │ ├── environment_dictionary │ │ └── fabfile.py │ ├── fabric_api │ │ └── fabric_api_tutorial.py │ ├── failing_task │ │ └── fabfile.py │ ├── failing_task_with_settings_handler │ │ └── fabfile.py │ └── task_arguments │ │ └── fabfile.py ├── finviz │ └── basic_finviz_query │ │ └── basic_finviz_query.py ├── functions │ ├── arguments_passed_as_dictionary │ │ └── arguments_passed_as_dictionary.py │ └── functions_accept_keyword_arguments │ │ ├── README.md │ │ └── functions_accept_keyword_arguments.py ├── gunicorn │ └── basic_gunicorn_setup │ │ ├── Vagrantfile │ │ ├── app.py │ │ └── deploy.sh ├── jinja2 │ ├── jinja2_decimal_formatting │ │ ├── jinja2_decimal_formatting.py │ │ └── my_templates │ │ │ └── jinja2_decimal_formatting.j2 │ └── jinja2_using_file_template │ │ ├── jinja2_basic_file.py │ │ └── my_templates │ │ └── city_info_template.txt ├── kafka_with_python │ ├── kafka_with_python_consumer.py │ └── kafka_with_python_producer.py ├── list │ └── identify_shared_list_items │ │ └── identify_shared_list_items.py ├── logging │ ├── logging_from_imported_module_multiple_loggers │ │ ├── README.md │ │ ├── logging_from_imported_module.py │ │ └── my_module.py │ ├── logging_from_imported_module_root_logger │ │ ├── README.md │ │ ├── logging_from_imported_module.py │ │ └── my_module.py │ ├── logging_handler_tutorial.py │ ├── logging_level_by_handler │ │ └── logging_level_by_handler.py │ └── logging_with_config_dict │ │ ├── README.md │ │ ├── logging_conf.yaml │ │ ├── logging_from_imported_module.py │ │ └── my_module.py ├── moto │ ├── basic_moto_test │ │ └── basic_moto_test.py │ └── unit_test_with_moto │ │ ├── create_instances.py │ │ └── unit_test_with_moto.py ├── mysql-connector-python │ ├── mysql_update │ │ ├── README.md │ │ └── mysql_update.py │ └── simple_connection │ │ └── simple_connection.py ├── newrelic-api │ ├── README.md │ └── newrelic-api.py ├── ordereddict │ └── dict_to_ordereddict │ │ ├── dict_to_ordereddict.py │ │ └── dict_to_ordereddict_lambda.py ├── pandas │ └── dataframe_from_csv │ │ ├── dataframe_from_csv.py │ │ └── mlb_2016.csv ├── pip │ └── nested_requirements_documents │ │ ├── README.md │ │ ├── nested_requirements_files.sh │ │ └── nested_requirements_files_nump_numexpr.sh ├── poetry │ └── poetry_access_private_repo │ │ └── pyproject.toml ├── quality_standards │ ├── README.md │ └── quality_standards.md ├── reportlab │ ├── basic_report │ │ ├── basic_report.py │ │ └── hello.pdf │ ├── basic_report_using_jinja │ │ ├── basic_report_using_jinja.py │ │ └── template.j2 │ └── basic_report_using_rml │ │ ├── basic_report_using_rml.py │ │ └── template.rml ├── schedule │ └── schedule_test.py ├── scope │ └── scope_testing │ │ └── scope_testing.py ├── set │ └── set_comprehension │ │ └── set_comprehension.py ├── signal_interrupt │ ├── README.md │ └── signal_interrupt.py ├── smtp_email_sender │ └── smtp_email_sender.py ├── sphinx │ └── basic_sphinx │ │ ├── Makefile │ │ ├── basic_sphinx.py │ │ ├── basic_sphinx.rst │ │ ├── conf.py │ │ ├── conf.rst │ │ └── index.rst ├── split_on_string │ └── basic_split_on_string.py ├── string │ └── string_formatting_numbers │ │ └── string_formatting_numbers.py ├── subprocess │ └── subprocess_module_pipes_using_popen.py ├── time │ └── explore_time_formats.py ├── unittest │ ├── basic_unittest │ │ └── basic_unittest.py │ ├── basic_unittest_with_one_time_setup │ │ └── basic_unittest_with_setup.py │ ├── basic_unittest_with_setup │ │ └── basic_unittest_with_setup.py │ └── unittest_multiple_modules │ │ ├── Player.py │ │ ├── README.md │ │ ├── Team.py │ │ └── tests │ │ ├── __init__.py │ │ ├── test_Player.py │ │ └── test_Team.py ├── urllib3 │ └── urllib3_simple_connection │ │ ├── requirements.txt │ │ └── urlllib3.py ├── virtualenv │ └── bootstrap_script │ │ ├── create_default_bootstrap.py │ │ ├── create_my_app_bootstrap.py │ │ ├── create_my_app_bootstrap_diagram.graffle │ │ ├── create_my_app_bootstrap_diagram.png │ │ ├── my_app_after_install.py │ │ ├── my_app_bootstrap.py │ │ └── my_app_bootstrap.sh ├── wsgi_application │ └── wsgi_application.py └── yaml │ └── parse_yaml_with_pyyaml_module │ ├── cities.yaml │ └── yaml_parse.py ├── rabbitmq └── rabbitmq_tutorial │ ├── Vagrantfile │ ├── rabbitmq_basic_install.sh │ ├── receive.py │ └── send.py ├── rds_iam.yaml ├── redis ├── redis_284 │ ├── Vagrantfile │ └── redis_284_basic_install.sh └── redis_insight_with_docker │ ├── README.md │ └── docker-compose.yaml ├── redis_test.yaml ├── ruby ├── basic_rails_asset_pipeline │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── README.rdoc │ ├── Rakefile │ ├── app │ │ ├── assets │ │ │ ├── images │ │ │ │ └── .keep │ │ │ ├── javascripts │ │ │ │ └── application.js │ │ │ └── stylesheets │ │ │ │ └── application.css │ │ ├── controllers │ │ │ ├── application_controller.rb │ │ │ └── concerns │ │ │ │ └── .keep │ │ ├── helpers │ │ │ └── application_helper.rb │ │ ├── mailers │ │ │ └── .keep │ │ ├── models │ │ │ ├── .keep │ │ │ └── concerns │ │ │ │ └── .keep │ │ └── views │ │ │ └── layouts │ │ │ └── application.html.erb │ ├── bin │ │ ├── bundle │ │ ├── rails │ │ ├── rake │ │ ├── setup │ │ └── spring │ ├── config.ru │ ├── config │ │ ├── application.rb │ │ ├── boot.rb │ │ ├── database.yml │ │ ├── environment.rb │ │ ├── environments │ │ │ ├── development.rb │ │ │ ├── production.rb │ │ │ └── test.rb │ │ ├── initializers │ │ │ ├── assets.rb │ │ │ ├── backtrace_silencers.rb │ │ │ ├── cookies_serializer.rb │ │ │ ├── filter_parameter_logging.rb │ │ │ ├── inflections.rb │ │ │ ├── mime_types.rb │ │ │ ├── session_store.rb │ │ │ ├── to_time_preserves_timezone.rb │ │ │ └── wrap_parameters.rb │ │ ├── locales │ │ │ └── en.yml │ │ ├── routes.rb │ │ └── secrets.yml │ ├── db │ │ └── seeds.rb │ ├── lib │ │ ├── assets │ │ │ └── .keep │ │ └── tasks │ │ │ └── .keep │ ├── log │ │ └── .keep │ ├── public │ │ ├── 404.html │ │ ├── 422.html │ │ ├── 500.html │ │ ├── assets │ │ │ ├── .sprockets-manifest-a4cf488181db5ece9f86a05362b618c4.json │ │ │ ├── application-943ad24e6862b6fb0a4880bc104e52e6a3a5abba68ff6e54f18c16a45f2fad5b.js │ │ │ ├── application-943ad24e6862b6fb0a4880bc104e52e6a3a5abba68ff6e54f18c16a45f2fad5b.js.gz │ │ │ ├── application-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css │ │ │ └── application-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css.gz │ │ ├── favicon.ico │ │ └── robots.txt │ ├── test │ │ ├── controllers │ │ │ └── .keep │ │ ├── fixtures │ │ │ └── .keep │ │ ├── helpers │ │ │ └── .keep │ │ ├── integration │ │ │ └── .keep │ │ ├── mailers │ │ │ └── .keep │ │ ├── models │ │ │ └── .keep │ │ └── test_helper.rb │ └── vendor │ │ └── assets │ │ ├── javascripts │ │ └── .keep │ │ └── stylesheets │ │ └── .keep ├── basic_sidekiq_worker │ ├── Gemfile │ ├── Gemfile.lock │ ├── README.md │ ├── Vagrantfile │ └── basic_sidekiq_worker.sh ├── erb │ ├── erb_access_environment_variable │ │ └── erb_access_environment_variable.rb │ ├── erb_if_defined_else_assign │ │ └── erb_if_defined_else_assign.rb │ ├── erb_is_defined_and_true │ │ └── erb_is_defined_and_true.rb │ └── erb_replace_char │ │ └── erb_replace_char.rb ├── erb_is_defined_and_true │ └── erb_is_defined_and_true.rb ├── executable_exists_cross_platform │ └── executable_exists_cross_platform.rb ├── file_exists │ └── file_exists.rb ├── get_env_variable │ └── get_env_variable.rb ├── hash_value_or_default │ ├── hash_value_or_default.rb │ ├── hash_value_or_default_with_dig.rb │ └── hash_value_or_default_with_dig_diff_types.rb ├── iterate_over_array │ └── iterate_over_array.rb ├── profiling │ ├── memory_profiler │ │ ├── README.md │ │ ├── hello.rb │ │ └── memory_profiler_example.rb │ └── rbspy │ │ ├── README.md │ │ └── rbspy_example.rb ├── rest_client_example │ └── rest_client_get.rb ├── ruby_exception_handling │ ├── ruby_handled_exception.rb │ └── ruby_unhandled_exception.rb ├── ruby_on_rails_hello_world │ ├── README.md │ ├── Vagrantfile │ ├── helloworld │ │ ├── .gitignore │ │ ├── .ruby-version │ │ ├── Gemfile │ │ ├── Gemfile.lock │ │ ├── README.md │ │ ├── Rakefile │ │ ├── app │ │ │ ├── assets │ │ │ │ ├── config │ │ │ │ │ └── manifest.js │ │ │ │ ├── images │ │ │ │ │ └── .keep │ │ │ │ ├── javascripts │ │ │ │ │ ├── application.js │ │ │ │ │ ├── cable.js │ │ │ │ │ └── channels │ │ │ │ │ │ └── .keep │ │ │ │ └── stylesheets │ │ │ │ │ └── application.css │ │ │ ├── channels │ │ │ │ └── application_cable │ │ │ │ │ ├── channel.rb │ │ │ │ │ └── connection.rb │ │ │ ├── controllers │ │ │ │ ├── application_controller.rb │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ ├── helpers │ │ │ │ └── application_helper.rb │ │ │ ├── jobs │ │ │ │ └── application_job.rb │ │ │ ├── mailers │ │ │ │ └── application_mailer.rb │ │ │ ├── models │ │ │ │ ├── application_record.rb │ │ │ │ └── concerns │ │ │ │ │ └── .keep │ │ │ └── views │ │ │ │ └── layouts │ │ │ │ ├── application.html.erb │ │ │ │ ├── mailer.html.erb │ │ │ │ └── mailer.text.erb │ │ ├── bin │ │ │ ├── bundle │ │ │ ├── rails │ │ │ ├── rake │ │ │ ├── setup │ │ │ ├── update │ │ │ └── yarn │ │ ├── config.ru │ │ ├── config │ │ │ ├── application.rb │ │ │ ├── boot.rb │ │ │ ├── cable.yml │ │ │ ├── credentials.yml.enc │ │ │ ├── database.yml │ │ │ ├── environment.rb │ │ │ ├── environments │ │ │ │ ├── development.rb │ │ │ │ ├── production.rb │ │ │ │ └── test.rb │ │ │ ├── initializers │ │ │ │ ├── application_controller_renderer.rb │ │ │ │ ├── assets.rb │ │ │ │ ├── backtrace_silencers.rb │ │ │ │ ├── content_security_policy.rb │ │ │ │ ├── cookies_serializer.rb │ │ │ │ ├── filter_parameter_logging.rb │ │ │ │ ├── inflections.rb │ │ │ │ ├── mime_types.rb │ │ │ │ └── wrap_parameters.rb │ │ │ ├── locales │ │ │ │ └── en.yml │ │ │ ├── puma.rb │ │ │ ├── routes.rb │ │ │ ├── spring.rb │ │ │ └── storage.yml │ │ ├── db │ │ │ └── seeds.rb │ │ ├── lib │ │ │ ├── assets │ │ │ │ └── .keep │ │ │ └── tasks │ │ │ │ └── .keep │ │ ├── log │ │ │ └── .keep │ │ ├── package.json │ │ ├── public │ │ │ ├── 404.html │ │ │ ├── 422.html │ │ │ ├── 500.html │ │ │ ├── apple-touch-icon-precomposed.png │ │ │ ├── apple-touch-icon.png │ │ │ ├── favicon.ico │ │ │ └── robots.txt │ │ ├── storage │ │ │ └── .keep │ │ ├── test │ │ │ ├── application_system_test_case.rb │ │ │ ├── controllers │ │ │ │ └── .keep │ │ │ ├── fixtures │ │ │ │ ├── .keep │ │ │ │ └── files │ │ │ │ │ └── .keep │ │ │ ├── helpers │ │ │ │ └── .keep │ │ │ ├── integration │ │ │ │ └── .keep │ │ │ ├── mailers │ │ │ │ └── .keep │ │ │ ├── models │ │ │ │ └── .keep │ │ │ ├── system │ │ │ │ └── .keep │ │ │ └── test_helper.rb │ │ ├── tmp │ │ │ └── .keep │ │ └── vendor │ │ │ └── .keep │ └── ruby_on_rails_install.sh ├── socket_get_hostname │ └── socket_get_hostname.rb └── yaml_load_with_begin_rescue │ ├── invalid_yaml_file.yaml │ ├── valid_yaml_file.yaml │ └── yaml_load_with_begin_rescue.rb ├── salt ├── salt_sandbox │ ├── README.md │ ├── Vagrantfile │ ├── bootstrap_master.sh │ └── bootstrap_minion.sh ├── vagrant_salt_developer_instance │ ├── README.md │ ├── Vagrantfile │ └── bootstrap.sh └── vagrant_salt_local_development │ ├── README.md │ ├── Vagrantfile │ └── bootstrap.sh ├── sam ├── sam-app-with-private-serverless-api │ ├── .gitignore │ ├── README.md │ ├── events │ │ └── event.json │ ├── hello_world │ │ ├── __init__.py │ │ ├── app.py │ │ └── requirements.txt │ ├── samconfig.toml │ ├── template.yaml │ ├── tests │ │ └── unit │ │ │ ├── __init__.py │ │ │ └── test_handler.py │ └── vpc.yaml └── sam-app │ ├── .gitignore │ ├── README.md │ ├── events │ └── event.json │ ├── hello_world │ ├── __init__.py │ ├── app.py │ └── requirements.txt │ ├── template.yaml │ └── tests │ └── unit │ ├── __init__.py │ └── test_handler.py ├── selenium ├── selenium_python_chrome_headless │ ├── README.md │ ├── Vagrantfile │ ├── get_screenshot.py │ └── selenium_python_chrome_headless.sh └── selenium_python_get_screenshot │ ├── README.md │ ├── Vagrantfile │ ├── basic_selenium_install.sh │ └── get_screenshot.py ├── sequelize └── basic_sequelize_migration │ ├── README.md │ ├── Vagrantfile │ ├── basic_sequelize_system.sh │ ├── config │ └── config.json │ ├── migrations │ └── 20200729011317-create-user.js │ ├── models │ ├── index.js │ └── user.js │ ├── package-lock.json │ └── package.json ├── serverless_framework ├── reference_serverless_resource_in_resources_section │ ├── README.md │ ├── handler.py │ └── serverless.yml ├── serverless_with_global_var │ ├── README.md │ ├── config.dev.yml │ ├── config.prd.yml │ ├── handler.js │ └── serverless.yml ├── serverless_with_node_app │ ├── README.md │ ├── handler.js │ └── serverless.yml ├── serverless_with_node_on_cron │ ├── .gitignore │ ├── handler.js │ └── serverless.yml ├── serverless_with_python3_and_parameter_store │ ├── README.md │ ├── handler.py │ └── serverless.yml └── serverless_with_python3_and_secrets_manager │ ├── README.md │ ├── handler.py │ ├── serverless.yml │ └── with_json_secret │ ├── README.md │ ├── handler.py │ └── serverless.yml ├── sh └── sh_confirm_variable_set │ ├── README.md │ └── sh_confirm_variable_set.sh ├── sidekiq ├── README.md └── sidekiq.service ├── solr ├── solr_cloud │ ├── Administration.md │ ├── README.md │ ├── Troubleshooting.md │ ├── Vagrantfile │ ├── solr_cloud.sh │ └── zookeeper_instance.sh ├── solr_single_instance_apt │ ├── README.md │ ├── Vagrantfile │ └── solr_single_instance.sh └── solr_single_instance_download │ ├── README.md │ ├── Vagrantfile │ └── solr_single_instance.sh ├── spark ├── pyspark_install │ └── pyspark_install.sh └── spark_install │ ├── README.md │ ├── Vagrantfile │ ├── spark_install.sh │ └── spark_lessons │ ├── spark_create_rdd_in_code.py │ ├── spark_create_rdd_via_s3.py │ ├── spark_examine_context.py │ ├── spark_standalone_app.py │ └── spark_wordcount.md ├── splunk ├── splunk_docker_logging_driver │ ├── Vagrantfile │ └── docker_logging_splunk.sh ├── splunk_docker_universal_forwarder │ ├── README.md │ └── apache_fake_logs.yaml ├── splunk_enterprise │ ├── Vagrantfile │ └── splunk_enterprise.sh └── splunk_python_sdk │ └── splunk_connect.py ├── sqoop └── basic_sqoop │ ├── Vagrantfile │ └── basic_sqoop.sh ├── squid └── basic_squid │ ├── README.md │ ├── Vagrantfile │ ├── basic_squid_infrastructure.yaml │ └── basic_squid_install.sh ├── ssh └── ssh_ProxyCommand │ ├── Images │ ├── ssh Proxy with -t.png │ └── ssh Proxy without -t.png.png │ ├── README.md │ └── sshProxyServers.cloudformation.json ├── sumologic ├── sumologic_docker_file │ └── README.md └── sumologic_ecs_daemonset │ ├── README.md │ └── sumologic_ecs_daemonset.yaml ├── swift ├── BridgingHeader │ ├── BridgingHeader.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcuserdata │ │ │ │ └── cjohnson.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── xcschemes │ │ │ └── BridgingHeader.xcscheme │ ├── BridgingHeader │ │ ├── AppDelegate.swift │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.xib │ │ │ └── Main.storyboard │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── ViewController.swift │ └── BridgingHeaderTests │ │ ├── BridgingHeaderTests.swift │ │ └── Info.plist ├── Calculator │ └── Calculator │ │ └── Calculator.xcodeproj │ │ ├── project.xcworkspace │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ └── xcschemes │ │ ├── Calculator.xcscheme │ │ └── xcschememanagement.plist ├── arrays_and_dictionaries │ └── arrays_and_dictionaries.playground │ │ ├── Contents.swift │ │ ├── Results.playgrounddata │ │ ├── Sources │ │ └── SupportCode.swift │ │ ├── contents.xcplayground │ │ ├── playground.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── playground.xccheckout │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── timeline.xctimeline ├── basic_class │ └── basic_class.playground │ │ ├── Contents.swift │ │ ├── Results.playgrounddata │ │ ├── Sources │ │ └── SupportCode.swift │ │ └── contents.xcplayground ├── bridge_header │ ├── bridge_header.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcuserdata │ │ │ │ └── cjohnson.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── xcschemes │ │ │ └── bridge_header.xcscheme │ ├── bridge_header │ │ ├── AppDelegate.swift │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.xib │ │ │ └── Main.storyboard │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ ├── SimpleMath-Bridging-Header.h │ │ └── ViewController.swift │ └── bridge_headerTests │ │ ├── Info.plist │ │ └── bridge_headerTests.swift ├── bridging_header │ ├── bridging_header.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcuserdata │ │ │ │ └── cjohnson.xcuserdatad │ │ │ │ └── UserInterfaceState.xcuserstate │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── xcschemes │ │ │ └── bridging_header.xcscheme │ ├── bridging_header │ │ ├── AppDelegate.swift │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.xib │ │ │ └── Main.storyboard │ │ ├── Images.xcassets │ │ │ └── AppIcon.appiconset │ │ │ │ └── Contents.json │ │ ├── Info.plist │ │ └── ViewController.swift │ └── bridging_headerTests │ │ ├── Info.plist │ │ └── bridging_headerTests.swift ├── for_loops │ └── for_loops.playground │ │ ├── Contents.swift │ │ ├── Sources │ │ └── SupportCode.swift │ │ ├── contents.xcplayground │ │ ├── playground.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ ├── for_loops.xccheckout │ │ │ └── playground.xccheckout │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── timeline.xctimeline ├── functions │ └── functions.playground │ │ ├── Contents.swift │ │ ├── Results.playgrounddata │ │ ├── Sources │ │ └── SupportCode.swift │ │ ├── contents.xcplayground │ │ ├── playground.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── playground.xccheckout │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── timeline.xctimeline ├── inheritance_basics │ └── inheritance_basics.playground │ │ ├── Contents.swift │ │ ├── Sources │ │ └── SupportCode.swift │ │ ├── contents.xcplayground │ │ ├── playground.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── timeline.xctimeline ├── set_variable │ └── set_variable.playground │ │ ├── Contents.swift │ │ ├── Sources │ │ └── SupportCode.swift │ │ ├── contents.xcplayground │ │ ├── playground.xcworkspace │ │ ├── contents.xcworkspacedata │ │ ├── xcshareddata │ │ │ └── playground.xccheckout │ │ └── xcuserdata │ │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── timeline.xctimeline └── variable_in_string │ └── variable_in_string.playground │ ├── Contents.swift │ ├── Results.playgrounddata │ ├── Sources │ └── SupportCode.swift │ ├── contents.xcplayground │ ├── playground.xcworkspace │ ├── contents.xcworkspacedata │ ├── xcshareddata │ │ └── playground.xccheckout │ └── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ └── UserInterfaceState.xcuserstate │ └── timeline.xctimeline ├── sysdig └── read_file_with_docker │ └── README.md ├── terraform ├── aws │ ├── api_gateway │ │ └── main.tf │ ├── aws_config │ │ ├── main.tf │ │ └── variables.tf │ ├── aws_module_asg_and_template_with_gp3 │ │ ├── README.md │ │ └── main.tf │ ├── ec2_security_group_ingress_security_groups_null_value │ │ └── main.tf │ ├── rds_with_readreplicas │ │ ├── README.md │ │ ├── main.tf │ │ ├── variables.tf │ │ └── vpc.tf │ ├── terraform_config │ │ └── main.tf │ ├── terraform_ecs │ │ ├── main.tf │ │ └── templates │ │ │ └── ecs_cluster_node.sh │ ├── terraform_ecs_environment │ │ ├── ecs │ │ │ └── dev │ │ │ │ └── us-west-2 │ │ │ │ ├── main.tf │ │ │ │ ├── templates │ │ │ │ └── ecs_cluster_node.sh │ │ │ │ └── variables.tf │ │ ├── modules │ │ │ ├── ecs │ │ │ │ ├── main.tf │ │ │ │ ├── templates │ │ │ │ │ ├── ecs_cluster_node.sh │ │ │ │ │ └── ecs_policy.json │ │ │ │ └── variables.tf │ │ │ └── vpc │ │ │ │ ├── main.tf │ │ │ │ ├── output.tf │ │ │ │ └── variables.tf │ │ └── vpc │ │ │ ├── README.md │ │ │ ├── dev │ │ │ ├── us-east-1 │ │ │ │ ├── main.tf │ │ │ │ └── variables.tf │ │ │ └── us-west-2 │ │ │ │ ├── main.tf │ │ │ │ ├── output.tf │ │ │ │ └── variables.tf │ │ │ └── prod │ │ │ ├── us-east-1 │ │ │ ├── main.tf │ │ │ └── variables.tf │ │ │ └── us-west-2 │ │ │ ├── main.tf │ │ │ └── variables.tf │ ├── terraform_ecs_multicontainer_task │ │ ├── ecs.tf │ │ ├── elbv2.tf │ │ ├── main.tf │ │ ├── nginx_service.tf │ │ ├── templates │ │ │ ├── ecs_cluster_node.sh │ │ │ └── nginx.json │ │ └── vpc.tf │ ├── terraform_ecs_service_and_task │ │ ├── main.tf │ │ ├── nginx_app.tf │ │ └── templates │ │ │ ├── ecs_cluster_node.sh │ │ │ └── nginx_task_definition.json │ ├── terraform_ecs_service_task_and_elbv2 │ │ ├── ecs.tf │ │ ├── elbv2.tf │ │ ├── main.tf │ │ ├── nginx_service.tf │ │ ├── templates │ │ │ ├── ecs_cluster_node.sh │ │ │ └── nginx.json │ │ └── vpc.tf │ ├── terraform_ecs_with_parameter_store │ │ ├── main.tf │ │ ├── parameter_store.tf │ │ ├── templates │ │ │ ├── ecs_cluster_node.sh │ │ │ ├── ubuntu_task_definition.json │ │ │ └── ubuntu_task_definition_execution_role_policy.json │ │ ├── ubuntu_task.tf │ │ └── versions.tf │ ├── terraform_elasticache_replication_group_num_cache_clusters │ │ ├── main.tf │ │ └── vpc.tf │ ├── terraform_elbv2_listener_rule_multiple_values │ │ ├── README.md │ │ ├── main.tf │ │ └── vpc.tf │ ├── terraform_large_disk │ │ ├── README.md │ │ └── main.tf │ ├── terraform_module_aws_rds │ │ ├── README.md │ │ ├── main.tf │ │ ├── variables.tf │ │ └── vpc.tf │ ├── terraform_s3_replication_configuration │ │ └── main.tf │ └── terraform_target_group │ │ ├── main.tf │ │ ├── outputs.tf │ │ ├── versions.tf │ │ └── vpc.tf ├── terraform_aws_tags_with_local_variable │ ├── README.md │ ├── main.tf │ ├── vars.tf │ └── versions.tf ├── terraform_cloudwatch_metric_alarm │ ├── main.tf │ ├── main_dimensions_as_local.tf.x │ ├── main_dimensions_as_local_with_interpolation.tf.x │ └── vars.tf ├── terraform_ec2_user_data │ └── terraform_ec2_user_data.tf ├── terraform_fmt │ ├── README.md │ ├── tf_format_failing │ │ └── main.tf │ └── tf_format_passing │ │ └── main.tf ├── terraform_for_each │ └── main.tf ├── terraform_for_each_list_objects │ ├── main.tf │ ├── terraform.tfvars │ └── variables.tf ├── terraform_iam_user │ ├── main.tf │ └── test_user_ec2_admin_policy.json ├── terraform_multi_provider │ ├── README.md │ └── main.tf ├── terraform_multi_provider_module │ ├── README.md │ ├── main.tf │ └── modules │ │ └── s3 │ │ └── main.tf ├── terraform_mysql_user_provision │ ├── README.md │ ├── Vagrantfile │ ├── main.tf │ ├── mysql_basic_install.sh │ ├── mysql_users.tf │ └── variables.tf ├── terraform_s3_backend │ ├── README.md │ └── main.tf ├── terraform_state_mv │ ├── README.md │ ├── mv_to_another_configuration │ │ ├── source_configuration │ │ │ └── main.tf │ │ └── target_configuration │ │ │ └── main.tf │ └── mv_within_configuration │ │ └── main.tf ├── terraform_template │ ├── README.md │ ├── main.tf │ └── templates │ │ └── user_data.sh ├── terraform_with_environments │ ├── README.md │ ├── modules │ │ └── vpc │ │ │ └── main.tf │ ├── prod │ │ └── main.tf │ ├── qa │ │ └── main.tf │ └── vpc_modules │ │ ├── README.md │ │ ├── dev │ │ ├── us-east-1 │ │ │ ├── main.tf │ │ │ └── variables.tf │ │ └── us-west-2 │ │ │ ├── main.tf │ │ │ └── variables.tf │ │ ├── modules │ │ └── vpc │ │ │ ├── main.tf │ │ │ └── variables.tf │ │ └── prod │ │ ├── us-east-1 │ │ ├── main.tf │ │ └── variables.tf │ │ └── us-west-2 │ │ ├── main.tf │ │ └── variables.tf ├── terraform_with_pagerduty │ ├── README.md │ └── pager.tf └── terraform_with_workspaces │ ├── README.md │ ├── main.tf │ └── variables.tf ├── tftpd └── tftpd-hpa_server │ ├── Vagrantfile │ └── install_tftpd-hpa_server.sh ├── tomcat └── webapp_with_routing │ ├── WebContent │ ├── META-INF │ │ └── MANIFEST.MF │ └── WEB-INF │ │ ├── lib │ │ └── servlet-api.jar │ │ └── web.xml │ ├── build.xml │ └── src │ └── org │ └── test │ └── webapp │ ├── OSInfoServlet.java │ ├── RequestInfoServlet.java │ └── RootServlet.java ├── travis ├── .travis.yml ├── Dockerfile └── README.md ├── vagrant ├── basic_amazon_linux_2 │ ├── Vagrantfile │ └── shell_provision_script.sh ├── basic_ubuntu │ ├── Vagrantfile │ └── basic_ubuntu.sh ├── create_all_network_types │ └── Vagrantfile ├── dual_provisioner │ ├── README.md │ ├── Vagrantfile │ ├── shared.sh │ └── vagrant_only.sh ├── ngrok │ └── Vagrantfile ├── plugin_installed │ └── Vagrantfile ├── port_forwarding │ └── Vagrantfile ├── provisioner_ansible_local │ ├── README.md │ ├── Vagrantfile │ └── ansible │ │ ├── playbook.retry │ │ └── playbook.yml ├── provisioner_salt │ ├── README.md │ ├── Vagrantfile │ └── salt │ │ ├── global.sls │ │ ├── salt-minion.conf │ │ └── top.sls └── shell_provisioner_script_with_env_vars │ ├── Vagrantfile │ └── shell_provisioner_script_with_env_vars.sh ├── vagrant_aws_flow ├── Vagrantfile ├── build │ └── build.xml ├── deploy │ └── deploy.sh ├── docs │ ├── build │ │ └── README.md │ ├── deploy │ │ └── README.md │ └── infra │ │ └── README.md ├── html │ └── index.html └── infra │ └── vagrant-aws-flow.json ├── vertx └── vertx_sample_java_app │ ├── Vagrantfile │ └── vertx_sample_java_app.sh ├── vestacp └── basic_vestacp_install │ ├── README.md │ ├── Vagrantfile │ └── install_script.sh ├── web_development └── basic_api_with_jquery │ ├── flask_server.py │ └── static │ └── index.html ├── webdriverio └── basic_webdriverio │ ├── package-lock.json │ ├── package.json │ ├── test │ └── specs │ │ └── basic.js │ └── wdio.conf.js ├── webpack ├── basic_webpack_project │ ├── README.md │ ├── dist │ │ └── index.html │ ├── package-lock.json │ ├── package.json │ ├── src │ │ └── index.js │ └── webpack.config.js └── webpack_s3_publish │ ├── README.md │ ├── dist │ └── index.html │ ├── package-lock.json │ ├── package.json │ ├── src │ └── index.js │ └── webpack.config.js ├── yaml └── yaml_alias │ ├── README.md │ ├── yaml_alias.yaml │ └── yaml_alias_overwrite.yaml └── yarn └── yarn_audit ├── package.json ├── yarn.lock └── yarn_audit_ci.sh /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .gradle 3 | .serverless 4 | .terraform 5 | .vagrant 6 | *.pyc 7 | node_modules/ 8 | terraform.tfstate 9 | terraform.tfstate.backup 10 | terraform.tfvars 11 | ubuntu-xenial-16.04-cloudimg-console.log 12 | ubuntu-bionic-18.04-cloudimg-console.log 13 | -------------------------------------------------------------------------------- /JMX-Starter/ForLoop.java: -------------------------------------------------------------------------------- 1 | 2 | public class ForLoop { 3 | public static void main(String[] args) throws InterruptedException { 4 | for (int i = 0; i <= 3000; i++) { 5 | System.out.println(i); 6 | Thread.sleep(1000); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ansible/ansible_dry_run/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = "bento/centos-7.2" 6 | config.vm.hostname = 'ansible' 7 | config.vm.provision(:shell, path: './ansible_dry_run.sh') 8 | 9 | end 10 | -------------------------------------------------------------------------------- /ansible/ansible_dry_run/playbooks/sample_playbook.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: install apache2 on localhost 3 | hosts: localhost 4 | tasks: 5 | - name: install apache2 on localhost 6 | yum: name=httpd state=latest 7 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_for_loop/ansible/initial_playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | roles: 4 | - sample_vhost_configuration 5 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_for_loop/ansible/roles/sample_vhost_configuration/tasks/main.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - name: create 3 | become: yes 4 | template: 5 | src: vhost_configuration.j2 6 | dest: "/var/tmp/{{ item }}.conf" 7 | with_items: [ 'test01', 'test02' ] 8 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_for_loop/ansible/roles/sample_vhost_configuration/templates/vhost_configuration.j2: -------------------------------------------------------------------------------- 1 | 2 | DocumentRoot "/var/www/{{ item }}" 3 | ServerName {{ item }}.example.com 4 | 5 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_with_vars/README.md: -------------------------------------------------------------------------------- 1 | # Testing Connectivity 2 | ## Install Template File with Vars 3 | `ansible-playbook --inventory-file playbooks/hosts playbooks/vars_test.yml` -------------------------------------------------------------------------------- /ansible/ansible_playbook_with_vars/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = "ubuntu/wily64" 6 | 7 | end 8 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_with_vars/playbooks/appconfig.j2: -------------------------------------------------------------------------------- 1 | api_endpoint = {{ api_endpoint }} 2 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_with_vars/playbooks/vars_test.retry: -------------------------------------------------------------------------------- 1 | testserver 2 | -------------------------------------------------------------------------------- /ansible/basic_ansible_playbook/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = "ubuntu/wily64" 6 | 7 | end 8 | -------------------------------------------------------------------------------- /ansible/basic_ansible_playbook/playbooks/ntp.yml: -------------------------------------------------------------------------------- 1 | # yaml files always start with three --- 2 | --- 3 | - name: install ntp 4 | hosts: testserver 5 | sudo: True 6 | tasks: 7 | - name: install ntp 8 | apt: name=ntp 9 | -------------------------------------------------------------------------------- /ansible/deploy_cloudformation_role/playbooks/roles/manage_cloudformation/vars/main.yml: -------------------------------------------------------------------------------- 1 | vars: 2 | region: us-west-2 3 | # resource specific variables 4 | image_id: ami-d24c5cb3 -------------------------------------------------------------------------------- /ansible/sample_playbook/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | The `sample_playbook.yml` file describes the different components of an Ansible Playbook. 3 | -------------------------------------------------------------------------------- /ant/ant_echo_task/README.md: -------------------------------------------------------------------------------- 1 | # Objective: 2 | To demonstrator the ant ```echo``` task. 3 | 4 | # To Run: 5 | Run ```ant echo``` at a command prompt. 6 | The ```echo``` argument tells ant to run the ```echo``` target, which, in return, runs ```echo task```. -------------------------------------------------------------------------------- /ant/ant_echo_task/build.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /apache2/apache2_basic_install/apache2_basic_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | apt-get -y install apache2 3 | -------------------------------------------------------------------------------- /apache_zookeeper/apache_zookeeper_standalone/zookeeper_instance.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo apt-get -y update 4 | apt-get -y install zookeeper zookeeperd 5 | -------------------------------------------------------------------------------- /audiowaveform/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:latest 2 | 3 | RUN apt-get update && \ 4 | apt-get install -y software-properties-common && \ 5 | yes | add-apt-repository ppa:chris-needham/ppa && \ 6 | apt-get update && \ 7 | apt-get install audiowaveform -y 8 | -------------------------------------------------------------------------------- /audiowaveform/README.md: -------------------------------------------------------------------------------- 1 | # Overview # 2 | 3 | This snippet is a dockerfile for creating a container with the latest version of ubuntu with [AudioWaveForm](https://github.com/bbc/audiowaveform#usage) installed. 4 | AudioWaveForm converts audio files into visual formats such as png and json. 5 | -------------------------------------------------------------------------------- /aws-security-viz/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | Runs the AWS Security Visualization tool available at https://github.com/anaynayak/aws-security-viz. -------------------------------------------------------------------------------- /aws/amplify/basic_amplify/basic_amplify.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | AWSTemplateFormatVersion: 2010-09-09 4 | 5 | Description: Basic Amplify 6 | 7 | Parameters: {} 8 | 9 | Resources: 10 | 11 | BasicApp: 12 | Type: AWS::Amplify::App 13 | Properties: 14 | Name: basic-amplify-app 15 | -------------------------------------------------------------------------------- /aws/amplify/basic_amplify/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

My First Heading

6 |

My first paragraph.

7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /aws/awscli_tool/snippets_autoscaling.md: -------------------------------------------------------------------------------- 1 | # List All Groups with ASGName/Min/Max/Desired Capacity 2 | `aws autoscaling describe-auto-scaling-groups --max-items 1000 --query 'AutoScalingGroups[*].{AutoScalingGroupName:AutoScalingGroupName,MinSize:MinSize,MaxSize:MaxSize,DesiredCapacity:DesiredCapacity}' --output table` -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/ap-northeast-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsToSubnets", 4 | "ParameterValue": "ap-northeast-1b, ap-northeast-1c, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/ap-northeast-2.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "ap-northeast-2a, ap-northeast-2c, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/ap-south-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "ap-south-1a, ap-south-1b, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/ap-southeast-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "ap-southeast-1a, ap-southeast-1b, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/ap-southeast-2.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "ap-southeast-2a, ap-southeast-2b, ap-southeast-2c, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/ca-central-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "ca-central-1a, ca-central-1b, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/eu-central-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "eu-central-1a, eu-central-1b, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/eu-west-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "eu-west-1a, eu-west-1b, eu-west-1c, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/eu-west-2.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "eu-west-2a, eu-west-2b, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/sa-east-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "sa-east-1a, sa-east-1b, sa-east-1c, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/us-east-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "us-east-1a, us-east-1b, us-east-1c, us-east-1d, us-east-1e" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/us-east-2.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "us-east-2a, us-east-2b, us-east-2c, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/us-west-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "us-west-1b, us-west-1c, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_az_agnostic_one_file/params/us-west-2.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "us-west-2a, us-west-2b, us-west-2b, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_change_parameters/parameters/us-west-2_2az.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "us-west-2a, us-west-2b" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/cloudformation_change_parameters/parameters/us-west-2_3az.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "us-west-2a, us-west-2b, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/function_transform_include/ubuntu_ami.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | AWSRegionArch2AMI: 4 | # https://cloud-images.ubuntu.com/locator/ 5 | # search on: amazon 16.04 hvm-ssd 6 | us-east-1: 7 | '64': ami-ddf13fb0 8 | us-west-1: 9 | '64': ami-b20542d2 10 | us-west-2: 11 | '64': ami-b9ff39d9 12 | -------------------------------------------------------------------------------- /aws/cloudformation/s3_endpoint_with_parameters/s3_endpoint_allowed_resources_parameters.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey" : "S3EndpointAllowedResources", 4 | "ParameterValue" : "arn:aws:s3:::test01.cloudavail.com, arn:aws:s3:::test02.cloudavail.com, arn:aws:s3:::test03.cloudavail.com" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/s3_endpoint_with_parameters_and_environment/dev01.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey" : "S3EndpointAllowedResources", 4 | "ParameterValue" : "*" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/s3_endpoint_with_parameters_and_environment/prd01.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey" : "S3EndpointAllowedResources", 4 | "ParameterValue" : "cloudavail-prd01-logs, cloudavail-prd01-my_application_bucket" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/s3_endpoint_with_parameters_and_environment/qa01.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey" : "S3EndpointAllowedResources", 4 | "ParameterValue" : "cloudavail-qa01-logs, cloudavail-qa01-my_application_bucket" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /aws/cloudformation/serverless_function/lambda/hello_world.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | 4 | def handler(event, context): 5 | print 'Hello World' 6 | -------------------------------------------------------------------------------- /aws/cloudfront/cloudfront_redirect_all_index_s3/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

CloudFront Redirect Testing

6 | 7 |

CloudFront Redirect All to Index.html Testing HTML File.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /aws/codedeploy/basic_codedeploy_install/files/appspec.yml: -------------------------------------------------------------------------------- 1 | version: 0.0 2 | os: linux 3 | # files: 4 | # - source: /index.html 5 | # destination: /var/www/html 6 | hooks: 7 | AfterInstall: 8 | - location: ./scripts/after_install.sh 9 | timeout: 5 10 | runas: root 11 | -------------------------------------------------------------------------------- /aws/codedeploy/basic_codedeploy_install/files/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

CodeDeploy is Working

6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /aws/codedeploy/basic_codedeploy_install/files/scripts/after_install.sh: -------------------------------------------------------------------------------- 1 | echo "Date: $(date)" > /var/tmp/codedeploy_investigation.txt 2 | echo "PWD: $(pwd)" >> /var/tmp/codedeploy_investigation.txt 3 | echo "Deploymemnt Id: ${DEPLOYMENT_ID}" >> /var/tmp/codedeploy_investigation.txt 4 | -------------------------------------------------------------------------------- /aws/codedeploy/codedeploy_agent_install_ubuntu_1510/aws_credentials: -------------------------------------------------------------------------------- 1 | [default] 2 | aws_access_key_id = 3 | aws_secret_access_key = 4 | -------------------------------------------------------------------------------- /aws/ecr/ecr_with_scan_and_sns_publish_and_filter/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | Snippet is checked in but is untested. 4 | -------------------------------------------------------------------------------- /aws/ecs/ecs_task_with_secretsmanager/parse_combined_secrets.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | const allSecrets = process.env.ALL_SECRETS; 3 | const parsedSecrets = JSON.parse(allSecrets); 4 | # below is an example of using the given secret 5 | console.log(parsedSecrets['secret-one']); 6 | console.log(parsedSecrets['secret-two']); 7 | -------------------------------------------------------------------------------- /aws/eks/eks_introduction/application_definitions/nginx_service.yaml: -------------------------------------------------------------------------------- 1 | kind: Service 2 | apiVersion: v1 3 | metadata: 4 | name: nginx-service 5 | spec: 6 | selector: 7 | app: nginx 8 | ports: 9 | - protocol: TCP 10 | port: 80 11 | -------------------------------------------------------------------------------- /aws/elasticbeanstalk/elasticbeanstalk_deployment/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | Run `eb_deploy.dot` file here --> https://dreampuf.github.io/GraphvizOnline/ 4 | 5 | dot file outlines the flow of Platform Hooks 6 | -------------------------------------------------------------------------------- /aws/elasticbeanstalk/elasticbeanstalk_with_cron/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | # Elastic Beanstalk Files 3 | .elasticbeanstalk/* 4 | !.elasticbeanstalk/*.cfg.yml 5 | !.elasticbeanstalk/*.global.yml 6 | -------------------------------------------------------------------------------- /aws/elasticbeanstalk/elasticbeanstalk_with_cron/app.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | from flask import Flask 4 | 5 | application = Flask(__name__) 6 | 7 | @application.route("/") 8 | def hello(): 9 | return "Hello World!" 10 | -------------------------------------------------------------------------------- /aws/elasticbeanstalk/elasticbeanstalk_with_cron/crons/eb_crons: -------------------------------------------------------------------------------- 1 | # Place Cron Tasks in this File 2 | * * * * * root echo "Current Date and Time $(date)" >> /var/log/eb_crons_test_file.log 3 | -------------------------------------------------------------------------------- /aws/elasticbeanstalk/elasticbeanstalk_with_cron/requirements.txt: -------------------------------------------------------------------------------- 1 | Click==7.0 2 | Flask==1.0.2 3 | itsdangerous==1.1.0 4 | Jinja2==2.11.3 5 | MarkupSafe==1.1.0 6 | Werkzeug==2.2.3 7 | -------------------------------------------------------------------------------- /aws/elb/elb_backend_selfsigned_cert/apache_selfsigned_cert.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | apt -y update 4 | apt -y install apache2 5 | a2enmod ssl 6 | a2ensite default-ssl.conf 7 | service apache2 reload 8 | -------------------------------------------------------------------------------- /aws/eventbridge/basic_eventbus_and_sender/basic_eventbus.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | 3 | AWSTemplateFormatVersion: 2010-09-09 4 | 5 | Mappings: {} 6 | 7 | Resources: 8 | 9 | EventBus: 10 | Type: AWS::Events::EventBus 11 | Properties: 12 | Name: !Sub ${AWS::StackName} 13 | 14 | Outputs: {} 15 | -------------------------------------------------------------------------------- /aws/lambda/lambda_with_ssm/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3==1.9.205 2 | botocore==1.12.205 3 | docutils==0.14 4 | futures==3.3.0 5 | jmespath==0.9.4 6 | python-dateutil==2.8.0 7 | s3transfer==0.2.1 8 | six==1.12.0 9 | urllib3==1.26.5 10 | -------------------------------------------------------------------------------- /aws/s3/s3_bucket_with_versioning/output-example.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/aws/s3/s3_bucket_with_versioning/output-example.png -------------------------------------------------------------------------------- /aws/s3/s3_bucket_with_versioning/waffles.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/aws/s3/s3_bucket_with_versioning/waffles.jpg -------------------------------------------------------------------------------- /aws/s3/s3_vpc_endpoint_terraform/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet provides a configuration -------------------------------------------------------------------------------- /aws/s3/s3_vpc_endpoint_terraform/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-west-2" 3 | } 4 | -------------------------------------------------------------------------------- /aws/sts/sts_basic_application/Resources/get_federation_token - Required Permissions.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": "2012-10-17", 3 | "Statement": [ 4 | { 5 | "Effect": "Allow", 6 | "Action": "sts:GetFederationToken", 7 | "Resource": "*" 8 | } 9 | ] 10 | } -------------------------------------------------------------------------------- /aws/terraform/guardduty/guardduty_detector/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-west-2" 3 | } 4 | 5 | resource "aws_guardduty_detector" "guardduty_detector" { 6 | enable = true 7 | } 8 | -------------------------------------------------------------------------------- /bash/if_or_condition/if_or_condition.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash - 2 | 3 | environment="dev" 4 | 5 | if [[ $environment == "qa" || $environment == "production" ]]; then 6 | echo "If statement triggered." 7 | else 8 | echo "If statement not triggered." 9 | fi 10 | -------------------------------------------------------------------------------- /centos/centos_change_timezone/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = 2 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'bento/centos-7.2' 6 | config.vm.provision(:shell, path: './centos_change_timezone.sh') 7 | 8 | end 9 | -------------------------------------------------------------------------------- /centos/centos_systemd_enable/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = 2 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'centos/7' 6 | config.vm.provision(:shell, path: './centos_systemd_enable.sh') 7 | 8 | end 9 | -------------------------------------------------------------------------------- /centos/centos_systemd_enable/centos_systemd_enable.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | yum -y install httpd 4 | 5 | systemctl enable httpd.service 6 | # systemctl is-enabled httpd.service 7 | -------------------------------------------------------------------------------- /crashplan/crashplan_client_ubuntu/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This is currently untested - but the install does complete and the CrashPlan application does run. 4 | -------------------------------------------------------------------------------- /crashplan/crashplan_client_ubuntu/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = "ubuntu/xenial64" 6 | 7 | config.vm.hostname = 'crashplan' 8 | config.vm.provision "shell", path: "./crashplan_server.sh" 9 | 10 | end -------------------------------------------------------------------------------- /debian/debian_update_timezone/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:buster 2 | # to expirement with changing the timezone, you can use 3 | # ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime 4 | RUN ln -sf /usr/share/zoneinfo/Etc/UTC /etc/localtime 5 | RUN echo "Etc/UTC" > /etc/timezone 6 | 7 | -------------------------------------------------------------------------------- /docker/docker_build_with_build_args/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:latest 2 | # ARG must be after "FROM" 3 | ARG BUILD_ARG 4 | RUN echo "The value of BUILD ARG is: $BUILD_ARG" 5 | -------------------------------------------------------------------------------- /docker/docker_compose_basic/mysql/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mysql 2 | -------------------------------------------------------------------------------- /docker/docker_compose_basic/web/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:2 2 | 3 | COPY requirements.txt . 4 | COPY web.py . 5 | 6 | RUN pip install -r requirements.txt 7 | 8 | ENTRYPOINT ["python", "web.py"] 9 | -------------------------------------------------------------------------------- /docker/docker_compose_basic/web/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.0 2 | mysql-connector==2.1.6 -------------------------------------------------------------------------------- /docker/docker_compose_basic/web/web.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from flask import Flask 4 | 5 | app = Flask(__name__) 6 | 7 | @app.route('/') 8 | def root(): 9 | return 'Root Route Called.' 10 | 11 | 12 | if __name__ == '__main__': 13 | app.run(host='0.0.0.0') 14 | -------------------------------------------------------------------------------- /docker/docker_compose_with_mysql/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | mysql: 4 | image: mysql:latest 5 | environment: 6 | MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD} 7 | ports: 8 | - 3306:3306 9 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:latest 2 | # needed to investigate PID of running process 3 | RUN apt -y update ; apt -y install procps 4 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:latest 2 | # needed to investigate PID of running process 3 | RUN apt -y update ; apt -y install procps 4 | COPY entrypoint.sh /entrypoint.sh 5 | RUN chmod +x entrypoint.sh 6 | CMD /entrypoint.sh 7 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!bin/bash 2 | nginx -g 'daemon off;' 3 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper_exec_bash/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:latest 2 | # needed to investigate PID of running process 3 | RUN apt -y update ; apt -y install procps 4 | COPY entrypoint.sh /entrypoint.sh 5 | RUN chmod +x entrypoint.sh 6 | CMD [ "/entrypoint.sh" ] 7 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper_exec_bash/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!bin/bash 2 | exec nginx -g 'daemon off;' 3 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper_exec_mode/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx:latest 2 | # needed to investigate PID of running process 3 | RUN apt -y update ; apt -y install procps 4 | COPY entrypoint.sh /entrypoint.sh 5 | RUN chmod +x entrypoint.sh 6 | CMD [ "/entrypoint.sh" ] 7 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper_exec_mode/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!bin/bash 2 | nginx -g 'daemon off;' 3 | -------------------------------------------------------------------------------- /docker/docker_with_environment_variable/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:latest 2 | # the above represents creating a Dockerfile where the 3 | # environment variable TZ is always set to UTC 4 | ENV TZ=UTC 5 | -------------------------------------------------------------------------------- /docker/docker_with_nginx_gzip/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx 2 | COPY nginx.conf /etc/nginx/conf.d/gzip.conf 3 | -------------------------------------------------------------------------------- /docker/docker_with_nginx_gzip/README.md: -------------------------------------------------------------------------------- 1 | # Docker 2 | `docker build . -t nginx_with_gzip:latest` 3 | 4 | `docker run -d -p 8080:80 nginx_with_gzip:latest` 5 | 6 | # Nginx Is now running! 7 | 8 | Navigate to `localhost:8080` in your browser or run: 9 | 10 | `curl localhost:8080` -------------------------------------------------------------------------------- /docker/docker_with_nginx_proxy_to_nodejs/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | nodejs /var/node/static/server.js & 3 | /usr/sbin/nginx 4 | tail -f /dev/null -------------------------------------------------------------------------------- /docker/docker_with_nginx_proxy_to_nodejs/provision.sh: -------------------------------------------------------------------------------- 1 | apt-get update 2 | apt-get install -y curl 3 | apt-get install -y gnupg gnupg1 gnupg2 4 | curl -sL https://deb.nodesource.com/setup_9.x | bash - 5 | apt-get install -y nodejs 6 | npm install express 7 | 8 | chmod +x /provision/entrypoint.sh 9 | -------------------------------------------------------------------------------- /docker/docker_with_nginx_proxy_to_nodejs/static/index.html: -------------------------------------------------------------------------------- 1 |

Hello World!

2 | -------------------------------------------------------------------------------- /docker/jsonfile_with_multiple_labels/README.md: -------------------------------------------------------------------------------- 1 | # Run a Docker Container with Labels 2 | 3 | `docker run --publish 80:80 --label name=nginx --label git_sha=b7fe0b6 --log-driver json-file --log-opt labels=name,git_sha nginx:latest` 4 | 5 | # Confirm the Logs Have Labels Applied 6 | 7 | `docker logs fbe131fc1d91 --details` 8 | -------------------------------------------------------------------------------- /docker/supervisor_test/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | supervisord -c "/etc/supervisord.conf" 3 | 4 | while sleep 60; do 5 | supervisorctl status all 6 | done 7 | -------------------------------------------------------------------------------- /docker/supervisor_test/static/index.html: -------------------------------------------------------------------------------- 1 |

Hello World!

2 | -------------------------------------------------------------------------------- /docker/supervisor_test/supervisord.conf: -------------------------------------------------------------------------------- 1 | [program:nginx] 2 | command=nginx 3 | 4 | [program:nodeserver] 5 | command=node /provision/static/server.js 6 | 7 | 8 | [supervisord] 9 | -------------------------------------------------------------------------------- /dot/basic_dot_digraph/basic_dot_digraph.dot: -------------------------------------------------------------------------------- 1 | digraph basic_digraph { 2 | a -> b; 3 | b -> c; 4 | b -> d; 5 | } -------------------------------------------------------------------------------- /envkey/node_envkey_app/envkey.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('envkey') 3 | // envkey, if loaded properly, will modify "env" to include values from envkey 4 | console.log(process.env) 5 | -------------------------------------------------------------------------------- /envkey/node_envkey_app_precedence/.env: -------------------------------------------------------------------------------- 1 | DB_PASSWORD="ReplacedBy.ENVFile" 2 | -------------------------------------------------------------------------------- /fluentbit/fluentbit_with_s3_output_config/fluentbit.env: -------------------------------------------------------------------------------- 1 | AWS_ACCESS_KEY_ID= 2 | AWS_SECRET_ACCESS_KEY= 3 | -------------------------------------------------------------------------------- /fluentbit/fluentbit_with_tag_setter_and_selector/README.md: -------------------------------------------------------------------------------- 1 | # Run Docker 2 | 3 | - This will start a fluentbit container using the file `./conf/fluent-bit.conf`: `docker run --volume "$(pwd)/conf/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf" fluent/fluent-bit:latest` 4 | 5 | -------------------------------------------------------------------------------- /fluentd/basic_fluentd_install_centos/basic_fluentd_install_centos.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash - 2 | 3 | # from: http://docs.fluentd.org/articles/install-by-rpm 4 | 5 | curl -L https://toolbelt.treasuredata.com/sh/install-redhat-td-agent2.sh | sh 6 | systemctl start td-agent 7 | -------------------------------------------------------------------------------- /fluentd/basic_fluentd_use_centos_ansible/ansible/playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | roles: 4 | - fluentd -------------------------------------------------------------------------------- /fluentd/basic_fluentd_use_centos_ansible/ansible/roles/fluentd/files/td-agent: -------------------------------------------------------------------------------- 1 | # setting TD_AGENT_USER and TD_AGENT_GROUP 2 | # makes possible accessing log files owned by root, such as: 3 | # /var/log/messages and /var/log/secure 4 | TD_AGENT_USER=root 5 | TD_AGENT_GROUP=root 6 | -------------------------------------------------------------------------------- /fluentd/basic_fluentd_use_centos_ansible/ansible/roles/fluentd/templates/config.d/match.d/standard.conf: -------------------------------------------------------------------------------- 1 | 2 | type file 3 | path /var/log/td-agent/all_fluentd_events.out 4 | 5 | -------------------------------------------------------------------------------- /fluentd/basic_fluentd_use_centos_ansible/ansible/roles/fluentd/templates/config.d/source.d/system_logs.conf: -------------------------------------------------------------------------------- 1 | 2 | @type tail 3 | format syslog 4 | path /var/log/messages, /var/log/secure 5 | pos_file /var/log/td-agent/syslog_logs.pos 6 | read_from_head true 7 | tag system_logs.* 8 | 9 | -------------------------------------------------------------------------------- /fluentd/basic_fluentd_use_centos_ansible/ansible/roles/fluentd/templates/td-agent.conf: -------------------------------------------------------------------------------- 1 | # {{ ansible_managed }} 2 | 3 | @include /etc/td-agent/config.d/source.d/*.conf 4 | @include /etc/td-agent/config.d/match.d/*.conf 5 | -------------------------------------------------------------------------------- /gatsby/gatsby-config.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Configure your Gatsby site with this file. 3 | * 4 | * See: https://www.gatsbyjs.com/docs/gatsby-config/ 5 | */ 6 | 7 | module.exports = { 8 | /* Your site config here */ 9 | plugins: [], 10 | } 11 | -------------------------------------------------------------------------------- /gatsby/src/pages/index.js: -------------------------------------------------------------------------------- 1 | import React from "react" 2 | 3 | export default function Home() { 4 | return
Hello world!
5 | } 6 | -------------------------------------------------------------------------------- /gitlab/gitlab_runner_terraform/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This document utilizes terraform to create a gitlab runner. 4 | 5 | # Creating the GitLab Runner 6 | 7 | terraform apply -var 'gitlab_runner_registration_token=example_string' 8 | -------------------------------------------------------------------------------- /gitlab/gitlab_runner_terraform/variables.tf: -------------------------------------------------------------------------------- 1 | variable "gitlab_runner_registration_token" { 2 | type = "string" 3 | } 4 | -------------------------------------------------------------------------------- /go/hello_world/hello_world.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | fmt.Printf("hello, world\n") 7 | } 8 | -------------------------------------------------------------------------------- /go/newrelic_api_connector/go.mod: -------------------------------------------------------------------------------- 1 | module cloudavail.com/newrelic-resource-export-hcl/v2 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/newrelic/newrelic-client-go v0.19.0 7 | golang.org/x/sys v0.1.0 // indirect 8 | ) 9 | -------------------------------------------------------------------------------- /gradle/gradle_file_exists/test_file_exists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/gradle/gradle_file_exists/test_file_exists.txt -------------------------------------------------------------------------------- /gradle/gradle_rename_root_project/settings.gradle: -------------------------------------------------------------------------------- 1 | // objective: to rename the gradle "rootProject" 2 | 3 | rootProject.name = 'new_project_name' 4 | -------------------------------------------------------------------------------- /gradle/gradle_tar_directory/exclude_dir/exclude_test_file.txt: -------------------------------------------------------------------------------- 1 | // objective: to exit and throw error if file does not exist 2 | version = 0.1.0 3 | 4 | task fileExists { 5 | assert file 6 | } 7 | -------------------------------------------------------------------------------- /gradle/gradle_tar_directory/lib/lib_test_file.txt: -------------------------------------------------------------------------------- 1 | // objective: to exit and throw error if file does not exist 2 | version = 0.1.0 3 | 4 | task fileExists { 5 | assert file 6 | } 7 | -------------------------------------------------------------------------------- /gradle/gradle_tar_directory/root_test_file.txt: -------------------------------------------------------------------------------- 1 | // objective: to exit and throw error if file does not exist 2 | version = 0.1.0 3 | 4 | task fileExists { 5 | assert file 6 | } 7 | -------------------------------------------------------------------------------- /gradle/gradle_tar_directory/src/src_test_file.txt: -------------------------------------------------------------------------------- 1 | // objective: to exit and throw error if file does not exist 2 | version = 0.1.0 3 | 4 | task fileExists { 5 | assert file 6 | } 7 | -------------------------------------------------------------------------------- /gradle/hello_world/build.gradle: -------------------------------------------------------------------------------- 1 | version = 0.1 2 | 3 | // apply plugin: 'java' is required before calling the 'jar' method 4 | apply plugin: 'java' 5 | 6 | sourceCompatibility = 1.6 7 | 8 | jar { 9 | manifest { 10 | attributes 'Main-Class': 'org.world.hello.HelloWorld' 11 | } 12 | } 13 | 14 | -------------------------------------------------------------------------------- /gradle/hello_world/src/main/java/org/world/hello/HelloWorld.java: -------------------------------------------------------------------------------- 1 | package org.world.hello; 2 | 3 | class HelloWorld { 4 | public static void main(String[] args) { 5 | System.out.println("Hello World!"); 6 | } 7 | } -------------------------------------------------------------------------------- /grafana/elasticsearch_logstash_latest_grafana/data_sources/elasticsearch.json: -------------------------------------------------------------------------------- 1 | // get datasources: http://localhost:9200/api/datasources 2 | { 3 | "name":"elasticsearch", 4 | "type":"elasticsearch", 5 | "url":"http://mydatasource.com", 6 | "access":"proxy", 7 | "basicAuth":false 8 | } 9 | 10 | 11 | -------------------------------------------------------------------------------- /grunt/grunt_arguments/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grunt_argument", 3 | "version": "0.0.1", 4 | "devDependencies": { 5 | "grunt": "^0.4.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /grunt/grunt_compress_directory/directory_to_be_compressed/directory_1/file_1.txt: -------------------------------------------------------------------------------- 1 | This is file_1.txt. -------------------------------------------------------------------------------- /grunt/grunt_compress_directory/directory_to_be_compressed/directory_2/file_2.txt: -------------------------------------------------------------------------------- 1 | This is file_2.txt. -------------------------------------------------------------------------------- /grunt/grunt_compress_directory/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grunt_argument", 3 | "version": "0.0.1", 4 | "devDependencies": { 5 | "grunt": "^0.4.5", 6 | "grunt-contrib-compress": "^0.8.0" 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /grunt/grunt_environment_variables/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grunt_argument", 3 | "version": "0.0.1", 4 | "devDependencies": { 5 | "grunt": "^0.4.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /grunt/grunt_fail/Gruntfile.js: -------------------------------------------------------------------------------- 1 | module.exports = function (grunt) { 2 | 3 | grunt.fail.fatal('Fatal Fail', 2); 4 | 5 | }; 6 | -------------------------------------------------------------------------------- /grunt/grunt_fail/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grunt_fail", 3 | "version": "0.0.1", 4 | "devDependencies": { 5 | "grunt": "^0.4.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /grunt/grunt_multitask/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grunt_argument", 3 | "version": "0.0.1", 4 | "devDependencies": { 5 | "grunt": "^0.4.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /haproxy/haproxy_with_ssh/backend.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | apt -y update 4 | apt-get -y install apache2 5 | 6 | adduser testing --gecos "Test User" --disabled-password 7 | echo "testing:password" | chpasswd 8 | 9 | # ssh testing@192.168.50.2 -p 2022 10 | -------------------------------------------------------------------------------- /heroku/heroku_python_basic_app/Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn hello:app 2 | -------------------------------------------------------------------------------- /heroku/heroku_python_basic_app/hello.py: -------------------------------------------------------------------------------- 1 | import os 2 | from flask import Flask 3 | 4 | app = Flask(__name__) 5 | 6 | @app.route('/') 7 | def hello(): 8 | return 'Hello World!' 9 | -------------------------------------------------------------------------------- /heroku/heroku_python_basic_app/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.0 2 | Jinja2==2.11.3 3 | MarkupSafe==0.18 4 | Werkzeug==2.2.3 5 | gunicorn==18.0 6 | itsdangerous==0.23 7 | wsgiref==0.1.2 -------------------------------------------------------------------------------- /hiera/hiera_test/common.yaml: -------------------------------------------------------------------------------- 1 | my_value: 'string' -------------------------------------------------------------------------------- /java/basic_heapdump_jmap/ForLoop.java: -------------------------------------------------------------------------------- 1 | 2 | public class ForLoop { 3 | public static void main(String[] args) throws InterruptedException { 4 | for (int i = 0; i <= 300; i++) { 5 | System.out.println(i); 6 | Thread.sleep(1000); 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /java/springwebapp/src/main/webapp/WEB-INF/helloWorld.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Spring 4.0.2 MVC web service

4 | 5 |

Name : ${name}

6 | 7 | 8 | -------------------------------------------------------------------------------- /javascript/return_uri/return_uri.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_basic_deployment/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet will create a basic Kubernetes "Deployment" of nginx. 4 | 5 | # Create a Deployment 6 | 7 | `kubectl apply -f nginx_deployment.yaml` 8 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_cronjob/README.md: -------------------------------------------------------------------------------- 1 | # Create Cronjob 2 | 3 | `kubectl apply -f cronjob.yaml` 4 | 5 | # See Events 6 | 7 | `kubectl get events` 8 | 9 | # Get Job Run History 10 | 11 | `kubectl describe cronjob` 12 | 13 | # Get Logs from Job 14 | 15 | `kubectl logs hello-1533664200-c65rb` 16 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_deploy/config/deploy/dev/nginx_config_map.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | metadata: 4 | name: envvariables-configmap 5 | data: 6 | environment: dev 7 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_deploy/config/namespaces/dev.yaml: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "Namespace", 3 | "apiVersion": "v1", 4 | "metadata": { 5 | "name": "dev" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_env_var_from_config_map/configmap/development.yaml: -------------------------------------------------------------------------------- 1 | kind: ConfigMap 2 | apiVersion: v1 3 | metadata: 4 | name: env-variables-configmap 5 | namespace: default 6 | data: 7 | ENVIRONMENT: development 8 | LOG_LEVEL: warn 9 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_env_var_from_config_map/pods/nginx.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: Pod 3 | metadata: 4 | name: nginx 5 | spec: 6 | containers: 7 | - name: nginx 8 | image: nginx:latest 9 | envFrom: 10 | - configMapRef: 11 | name: env-variables-configmap 12 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_pod_with_configmap/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: env-variables-configmap 5 | namespace: default 6 | data: 7 | ENVIRONMENT: development 8 | LOG_LEVEL: warn 9 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_pod_with_configmap_as_file/configmap.yaml: -------------------------------------------------------------------------------- 1 | apiVersion: v1 2 | kind: ConfigMap 3 | metadata: 4 | name: ubuntu-configmap 5 | namespace: default 6 | data: 7 | config.yaml: | 8 | ENVIRONMENT: development 9 | LOG_LEVEL: warn 10 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_pod_with_secrets_as_file/secrets.txt: -------------------------------------------------------------------------------- 1 | { 2 | "host": "db01.cloudavail.com:3306", 3 | "dbname": "cloudavail", 4 | "username": "cloudavail", 5 | "password": "hsdfjkshdjk" 6 | } 7 | -------------------------------------------------------------------------------- /logdna/logdna_fluentd_forwarder/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet will run a server configured with the LogDNA agent. Prior to usage you will need to set the LOGDNA_KEY variable (this will be used by the script to setup LogDNA within Vagrant) - an example would be `LOGDNA_KEY=xxxx` followed by `vagrant up` 4 | -------------------------------------------------------------------------------- /logstash/logstash_installed_via_ansible/ansible/playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | roles: 4 | - logstash_server -------------------------------------------------------------------------------- /logstash/logstash_installed_via_ansible/ansible/roles/logstash_server/files/elasticsearch.repo: -------------------------------------------------------------------------------- 1 | [logstash-2.4] 2 | name=Logstash repository for 2.4.x packages 3 | baseurl=https://packages.elastic.co/logstash/2.4/centos 4 | gpgcheck=1 5 | gpgkey=https://packages.elastic.co/GPG-KEY-elasticsearch 6 | enabled=1 7 | -------------------------------------------------------------------------------- /make/make_accept_cli_argument/Makefile: -------------------------------------------------------------------------------- 1 | # how to run: 2 | # make echo environment="production" 3 | # will return "production" 4 | # else - environment is sandbox 5 | environment ?= "sandbox" 6 | 7 | echo: 8 | @echo $(environment) 9 | -------------------------------------------------------------------------------- /maven/maven_basic_project/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | # requires that you install the 4 | 5 | Vagrant.configure(vagrantfile_api_version) do |config| 6 | 7 | config.vm.box = "ubuntu/wily64" 8 | config.vm.provision "shell", path: "./install_maven.sh" 9 | 10 | end 11 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/classes/com/cloudavail/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/maven/maven_basic_project/artifact/target/classes/com/cloudavail/App.class -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/maven-archiver/pom.properties: -------------------------------------------------------------------------------- 1 | #Generated by Maven 2 | #Fri Jun 17 03:36:09 UTC 2016 3 | version=1.0-SNAPSHOT 4 | groupId=com.cloudavail 5 | artifactId=artifact 6 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/cloudavail/App.class 2 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /vagrant/artifact/src/main/java/com/cloudavail/App.java 2 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/cloudavail/AppTest.class 2 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst: -------------------------------------------------------------------------------- 1 | /vagrant/artifact/src/test/java/com/cloudavail/AppTest.java 2 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/test-classes/com/cloudavail/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/maven/maven_basic_project/artifact/target/test-classes/com/cloudavail/AppTest.class -------------------------------------------------------------------------------- /maven/maven_basic_project/install_maven.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | apt -y update 4 | 5 | apt -y install maven 6 | 7 | # used for compiling Java software 8 | apt -y install default-jdk -------------------------------------------------------------------------------- /maven/maven_bintray_deploy/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | # requires that you install the 4 | 5 | Vagrant.configure(vagrantfile_api_version) do |config| 6 | 7 | config.vm.box = "ubuntu/wily64" 8 | config.vm.provision "shell", path: "./install_maven.sh" 9 | 10 | end 11 | -------------------------------------------------------------------------------- /maven/maven_bintray_deploy/install_maven.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | apt -y update 4 | 5 | apt -y install maven 6 | 7 | # used for compiling Java software 8 | apt -y install default-jdk -------------------------------------------------------------------------------- /microsoft/windows_7/disable_windows_10_upgrade/disable_windows_10_upgrade.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/microsoft/windows_7/disable_windows_10_upgrade/disable_windows_10_upgrade.reg -------------------------------------------------------------------------------- /mysql/basic_docker_mysql_container_with_database/world.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/mysql/basic_docker_mysql_container_with_database/world.sql -------------------------------------------------------------------------------- /newrelic/newrelic_php_agent_install/ansible/files/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World! 4 | 5 | 6 | Hello World!

'; ?> 7 | 8 | 9 | -------------------------------------------------------------------------------- /nginx/centos_nginx_php_ansible/ansible/files/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World! 4 | 5 | 6 | Hello World!

'; ?> 7 | 8 | 9 | -------------------------------------------------------------------------------- /nginx/nginx_uwsgi_flask/uwsgi_config.ini: -------------------------------------------------------------------------------- 1 | [uwsgi] 2 | plugins = python 3 | uwsgi-socket = /tmp/uwsgi.sock 4 | wsgi-file = /vagrant/flask_app.py 5 | -------------------------------------------------------------------------------- /nginx/nginx_uwsgi_flask_with_passed_variable/config/development.cfg: -------------------------------------------------------------------------------- 1 | # note that configuration variables must be written in all uppercase 2 | DATABASE = 'localhost' 3 | -------------------------------------------------------------------------------- /nginx/nginx_uwsgi_flask_with_passed_variable/config/production.cfg: -------------------------------------------------------------------------------- 1 | # note that configuration variables must be written in all uppercase 2 | DATABASE = '192.168.2.4' 3 | -------------------------------------------------------------------------------- /nginx/nginx_uwsgi_flask_with_passed_variable/uwsgi_config.ini: -------------------------------------------------------------------------------- 1 | [uwsgi] 2 | plugins = python 3 | uwsgi-socket = /tmp/uwsgi.sock 4 | wsgi-file = /vagrant/flask_app.py 5 | python-autoreload = 1 6 | env = CONFIG_FILE=config/development.cfg 7 | -------------------------------------------------------------------------------- /nginx/ubuntu_nginx_php/php_site/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nginx/ubuntu_nginx_php_env_variable/php_site/index.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /nmap/python-nmap-scanner/README.md: -------------------------------------------------------------------------------- 1 | # Objective: 2 | 3 | The objective of this snippet is to utilize the [python-nmap](https://xael.org/pages/python-nmap-en.html) tool to generate a list of systems. 4 | -------------------------------------------------------------------------------- /nodejs/basic_node_package/index.js: -------------------------------------------------------------------------------- 1 | exports.printMsg = function() { 2 | console.log("This is a message from the demo package"); 3 | } 4 | -------------------------------------------------------------------------------- /nodejs/hello_world/README.md: -------------------------------------------------------------------------------- 1 | # Overview: 2 | This snippet runs a nodejs script. 3 | 4 | # Run: 5 | `node hello_world.js` 6 | -------------------------------------------------------------------------------- /nodejs/hello_world/hello_world.js: -------------------------------------------------------------------------------- 1 | // prints Hello World to Console 2 | console.log("Hello World!"); 3 | -------------------------------------------------------------------------------- /nodejs/node_asynchronous_options/1200px-Llama_lying_down.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/nodejs/node_asynchronous_options/1200px-Llama_lying_down.jpg -------------------------------------------------------------------------------- /nodejs/node_asynchronous_options/2560px-Lama_glama_Laguna_Colorada_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/nodejs/node_asynchronous_options/2560px-Lama_glama_Laguna_Colorada_2.jpg -------------------------------------------------------------------------------- /nodejs/node_asynchronous_options/node_initial_file.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | console.log('Called after 1 Second') 4 | console.log('Called after 5 Seconds') 5 | console.log('Called after 10 Seconds') 6 | -------------------------------------------------------------------------------- /nodejs/node_asynchronous_options/promise.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | const promise = new Promise((resolve, reject) => { 3 | //resolve('good'); 4 | //reject('bad'); 5 | }) 6 | .then(value => { 7 | console.log(value); 8 | }) 9 | .catch(err => { 10 | console.log(err); 11 | }) 12 | -------------------------------------------------------------------------------- /nodejs/node_asynchronous_options/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

Test HTML

6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /nodejs/node_docker_cpu_measures/cpu_count.js: -------------------------------------------------------------------------------- 1 | var os = require('os'), 2 | cpuCount = os.cpus().length; 3 | console.log(`CPU Cores: ${cpuCount}`); 4 | -------------------------------------------------------------------------------- /nodejs/node_dotenv/.env: -------------------------------------------------------------------------------- 1 | BASEBALL_TEAM="Dodgers" 2 | BASKETBALL_TEAM="Warriors" 3 | -------------------------------------------------------------------------------- /nodejs/node_dotenv/dotenv.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('dotenv').config() 3 | 4 | console.log(`Value of Baseball Team: ${process.env.BASKETBALL_TEAM}.`) 5 | console.log(`Value of Basketball Team: ${process.env.BASEBALL_TEAM}.`) 6 | -------------------------------------------------------------------------------- /nodejs/node_for_loop/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet runs a nodejs script that reads and outputs a file. 4 | 5 | # Run 6 | 7 | `./node_read_file.js` 8 | -------------------------------------------------------------------------------- /nodejs/node_jest_test/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet runs a (jest)[https://jestjs.io/] test. 4 | 5 | # To Run 6 | 7 | ## Run without a Coverage Report 8 | 9 | Run `yarn run test`. 10 | 11 | ## Run with a Coverage Report 12 | 13 | This adds the `--coverage` flag. Run `yarn run test-with-coverage`. -------------------------------------------------------------------------------- /nodejs/node_jest_test/sum.js: -------------------------------------------------------------------------------- 1 | function sum(a, b) { 2 | return a + b; 3 | } 4 | module.exports = sum; 5 | -------------------------------------------------------------------------------- /nodejs/node_jest_test/sum.test.js: -------------------------------------------------------------------------------- 1 | const sum = require('./sum'); 2 | 3 | test('adds 1 + 2 to equal 3', () => { 4 | expect(sum(1, 2)).toBe(3); 5 | }); 6 | -------------------------------------------------------------------------------- /nodejs/node_read_file/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet runs a nodejs script that reads and outputs a file. 4 | 5 | # Run 6 | 7 | `./node_read_file.js` 8 | -------------------------------------------------------------------------------- /nodejs/node_read_file/node_read_file_sync.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | const fs = require('fs') 4 | 5 | var data = fs.readFileSync('./warriors2019.txt'); 6 | 7 | console.log(data.toString()); 8 | -------------------------------------------------------------------------------- /nodejs/node_ssh_tunnel/vars.sh: -------------------------------------------------------------------------------- 1 | export DST_HOST='' 2 | export PRIVATE_KEY='' 3 | export SSH_HOST='' 4 | export SSH_USERNAME='' 5 | -------------------------------------------------------------------------------- /nodejs/node_variable_interpolation_from_envvar/node_variable_interpolation_from_envvar.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | //name = process.env.NAME 3 | console.log(`Hello, ${process.env.NAME}`); 4 | -------------------------------------------------------------------------------- /nodejs/node_wait_on_for_port/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "wait-on": "^6.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /nodejs_command/aws_api_command/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | # Run 4 | node aws_api.js -------------------------------------------------------------------------------- /nodejs_command/aws_api_command/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "aws_api_command", 3 | "version": "1.0.0", 4 | "description": "aws api command", 5 | "main": "aws_api.js", 6 | "dependencies": { 7 | "aws-sdk": "^2.665.0" 8 | }, 9 | "author": "", 10 | "license": "ISC" 11 | } 12 | -------------------------------------------------------------------------------- /nodejs_command/hello_world/README.md: -------------------------------------------------------------------------------- 1 | # Run 2 | `node hello_world.js` -------------------------------------------------------------------------------- /nodejs_command/hello_world/hello_world.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log("Hello World!") -------------------------------------------------------------------------------- /nodejs_command/nodejs_mediaconvert_createjob/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | # Run 4 | node aws_api.js -------------------------------------------------------------------------------- /objective-c/HelloWorld/HelloWorld.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /objective-c/SimpleMath/SimpleMath.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /objective-c/hello-world.playground/Contents.swift: -------------------------------------------------------------------------------- 1 | //: Playground - noun: a place where people can play 2 | 3 | import Cocoa 4 | 5 | var str = "Hello, playground" 6 | -------------------------------------------------------------------------------- /objective-c/hello-world.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/objective-c/hello-world.playground/Results.playgrounddata -------------------------------------------------------------------------------- /objective-c/hello-world.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to hello-world.playground. 3 | // 4 | -------------------------------------------------------------------------------- /objective-c/hello-world.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /openvpn/openvpn_client_in_docker/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ubuntu:16.04 2 | RUN apt update 3 | RUN apt -y install openvpn 4 | # need to confirm that /etc/openvpn/client is the correct location 5 | # for OpenVPN client files 6 | RUN mkdir -p /etc/openvpn/client -------------------------------------------------------------------------------- /openvpn/openvpn_client_in_docker/openvpn_client_files/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore everything in this directory 2 | * 3 | # Except this file 4 | !.gitignore 5 | -------------------------------------------------------------------------------- /openvpn/openvpn_community_edition_docker_amazon_linux_2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM amazonlinux:2 2 | RUN yum update -y && yum install -y initscripts; 3 | RUN amazon-linux-extras install -y epel && yum install -y openvpn 4 | RUN yum -y install easy-rsa 5 | CMD [ "/usr/sbin/openvpn", "--config /etc/openvpn/cloudavail.conf" ] 6 | -------------------------------------------------------------------------------- /packer/base_windows_image_userdata_build/packer_simple_config.ps1: -------------------------------------------------------------------------------- 1 | 2 | # NOTE: it is suggested that EC2Launch be utilized for setting Windows 2016 Server passwords 3 | net user Administrator # add password here and remove comments: "" 4 | 5 | -------------------------------------------------------------------------------- /packer/packer_ami_two_regions/ami_two_regions_vars.json: -------------------------------------------------------------------------------- 1 | { 2 | "packer_subnet_id": "subnet-029c6421d7287c728", 3 | "packer_vpc_id": "vpc-0ce5a61c9f228bc9c" 4 | } -------------------------------------------------------------------------------- /packer/packer_build_docker_image_with_ansible/playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # playbook.yml 3 | - name: 'Provision Image' 4 | hosts: 127.0.0.1 5 | connection: local 6 | become: true 7 | 8 | tasks: 9 | - name: install Apache 10 | package: 11 | name: apache2 12 | state: present 13 | -------------------------------------------------------------------------------- /packer/windows_with_nodejs_and_iis/iisstart.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World! 4 | 5 | 6 |

Hello World!

7 | 8 | 9 | -------------------------------------------------------------------------------- /packer/windows_with_nodejs_and_iis/nodejs_script_copy_file.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs'); 2 | fs.createReadStream("C:/nodetest/iisstart.htm").pipe(fs.createWriteStream("C:/inetpub/wwwroot/iisstart.htm")); 3 | -------------------------------------------------------------------------------- /percona/percona_toolkit_install/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = '2' 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/bionic64' 6 | config.vm.provision 'shell', path: './percona_toolkit_install.sh' 7 | 8 | end 9 | -------------------------------------------------------------------------------- /percona/pt-query-digest-example/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This document describes how to use the pt-query-digest tool. 4 | 5 | # Running within Docker 6 | 7 | `docker run --volume $(pwd)":/var/tmp perconalab/percona-toolkit /usr/bin/pt-query-digest --type genlog /var/tmp/mysql-general.log` 8 | -------------------------------------------------------------------------------- /phing/phing_lint_task/echo_fail.php: -------------------------------------------------------------------------------- 1 | $b 3 | echo "echo fail" 4 | ?> 5 | -------------------------------------------------------------------------------- /phing/phing_lint_task/echo_pass.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /phing/phing_lint_task/files_set_01/echo_01.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /phing/phing_lint_task/files_set_01/echo_02.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /phing/phing_lint_task/files_set_02/echo_01.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /phing/phing_lint_task/files_set_02/echo_02.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /php/php_string_explode/php_string_explode.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "phpunit/phpunit": "^4.8" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/composer.phar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/php/phpunit_simple_test/composer.phar -------------------------------------------------------------------------------- /php/phpunit_simple_test/phpunit: -------------------------------------------------------------------------------- 1 | vendor/phpunit/phpunit/phpunit -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/autoload.php: -------------------------------------------------------------------------------- 1 | stop(); 3 | 4 | $writer = new PHP_CodeCoverage_Report_HTML; 5 | $writer->process($coverage, '/tmp/coverage'); 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php: -------------------------------------------------------------------------------- 1 | publicMethod(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php: -------------------------------------------------------------------------------- 1 | __phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); 4 | } 5 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_static_method.tpl.dist: -------------------------------------------------------------------------------- 1 | 2 | {modifier} function {reference}{method_name}({arguments_decl}) 3 | { 4 | throw new PHPUnit_Framework_MockObject_BadMethodCallException; 5 | } 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/trait_class.tpl.dist: -------------------------------------------------------------------------------- 1 | {prologue}class {class_name} 2 | { 3 | use {trait_name}; 4 | } 5 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/unmocked_clone.tpl.dist: -------------------------------------------------------------------------------- 1 | public function __clone() 2 | { 3 | $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); 4 | parent::__clone(); 5 | } 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_class.tpl.dist: -------------------------------------------------------------------------------- 1 | {namespace}class {class_name} extends \SoapClient 2 | { 3 | public function __construct($wsdl, array $options) 4 | { 5 | parent::__construct('{wsdl}', $options); 6 | } 7 | {methods}} 8 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/wsdl_method.tpl.dist: -------------------------------------------------------------------------------- 1 | 2 | public function {method_name}({arguments}) 3 | { 4 | } 5 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterface.php: -------------------------------------------------------------------------------- 1 | doSomethingElse(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/tests/_fixture/FunctionCallback.php: -------------------------------------------------------------------------------- 1 | ' . file_get_contents('php://input')); 4 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Fail/fail.phpt: -------------------------------------------------------------------------------- 1 | --TEST-- 2 | // This test intentionally fails and it is checked by Travis. 3 | --FILE-- 4 | --EXPECTF-- 5 | unexpected 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/684/Issue684Test.php: -------------------------------------------------------------------------------- 1 | assertTrue($_ENV['configAvailableInBootstrap']); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/bootstrap1216.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Issue1216Test.php 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/Issue1265Test.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/phpunit1265.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/Issue1330Test.php: -------------------------------------------------------------------------------- 1 | assertTrue(PHPUNIT_1330); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1330/phpunit1330.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1351/ChildProcessClass1351.php: -------------------------------------------------------------------------------- 1 | assertTrue(false); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1570/Issue1570Test.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test.php 4 | 5 | 6 | 7 | 8 | one 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/74/NewException.php: -------------------------------------------------------------------------------- 1 | publicMethod(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/CoveredFunction.php: -------------------------------------------------------------------------------- 1 | fail(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/IncompleteTest.php: -------------------------------------------------------------------------------- 1 | markTestIncomplete('Test incomplete'); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceA.php: -------------------------------------------------------------------------------- 1 | assertEquals('application/x-test', ini_get('default_mimetype')); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/JsonData/arrayObject.json: -------------------------------------------------------------------------------- 1 | ["Mascott", "Tux", "OS", "Linux"] 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/JsonData/simpleObject.json: -------------------------------------------------------------------------------- 1 | {"Mascott":"Tux"} -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/MockRunner.php: -------------------------------------------------------------------------------- 1 | var = $var; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/Success.php: -------------------------------------------------------------------------------- 1 | markTestIncomplete('Incomplete test'); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/TestSkipped.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Skipped test'); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/TestTestError.php: -------------------------------------------------------------------------------- 1 | wasRun = true; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/bar.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.colors.empty.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.colors.false.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.colors.invalid.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.colors.true.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.custom-printer.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/expectedFileFormat.txt: -------------------------------------------------------------------------------- 1 | FOO 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/foo.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/bootstrap.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/set_response_code/set_response_code.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/simple_composer/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "cloudavail/snippets", 3 | "authors": [ 4 | { 5 | "name": "Colin Johnson", 6 | "email": "colinbjohnson@gmail.com" 7 | } 8 | ], 9 | "require": { 10 | "aws/aws-sdk-php": "^3.14" 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /php/simple_composer/composer.phar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/php/simple_composer/composer.phar -------------------------------------------------------------------------------- /php/simple_composer/vendor/autoload.php: -------------------------------------------------------------------------------- 1 | [ 'DescribeTrails' => [ 'result_key' => 'trailList', ], ],]; 4 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/aws/aws-sdk-php/src/data/sqs/2012-11-05/paginators-1.json.php: -------------------------------------------------------------------------------- 1 | [ 'ListQueues' => [ 'result_key' => 'QueueUrls', ], ],]; 4 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/bin/jp.php: -------------------------------------------------------------------------------- 1 | ../mtdowling/jmespath.php/bin/jp.php -------------------------------------------------------------------------------- /php/simple_composer/vendor/composer/autoload_classmap.php: -------------------------------------------------------------------------------- 1 | 2 | My FQDN Hostname is: <%= @fqdn %> 3 | My Variable is: <%= scope.lookupvar('my_variable') %> -------------------------------------------------------------------------------- /puppet/if_scope_lookup_var_template/mytemplate.erb: -------------------------------------------------------------------------------- 1 | <%- if scope.lookupvar('os') == 'Darwin' -%> 2 | The value of the operatingsystem fact was Darwin. 3 | <% else %> 4 | The value of the operatingsystem fact was not Darwin. 5 | <% end %> -------------------------------------------------------------------------------- /python/Flask/get_config/config/production.cfg: -------------------------------------------------------------------------------- 1 | DATABASE = '192.168.2.4' 2 | -------------------------------------------------------------------------------- /python/Flask/get_config_from_env/config/production.cfg: -------------------------------------------------------------------------------- 1 | DATABASE = '192.168.2.4' 2 | -------------------------------------------------------------------------------- /python/PyQT5/pyqt5_simple_example/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet renders a webpage as a PDF. This snippet _does not_ render a pretty looking PDF. 4 | -------------------------------------------------------------------------------- /python/PyQT5/pyqt5_simple_example/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/xenial64' 6 | config.vm.provision "shell", path: "./pyqt5_simple_example.sh" 7 | 8 | end 9 | -------------------------------------------------------------------------------- /python/boto3/ecs_run_task/ecs_run_task.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/python 2 | 3 | import boto3 4 | 5 | client = boto3.client('ecs') 6 | 7 | response = client.run_task( 8 | cluster='ecs-cluster-ECSCluster-ENMU0REIYR5N', 9 | taskDefinition='ecs-cluster-ExampleTaskDefinition-1F5XYW6OB7U8G:1' 10 | ) 11 | -------------------------------------------------------------------------------- /python/boto3/ecs_run_task/requirements.txt: -------------------------------------------------------------------------------- 1 | boto3==1.10.49 2 | botocore==1.13.49 3 | docutils==0.15.2 4 | futures==3.3.0 5 | jmespath==0.9.4 6 | python-dateutil==2.8.1 7 | s3transfer==0.2.1 8 | six==1.13.0 9 | urllib3==1.25.7 10 | -------------------------------------------------------------------------------- /python/boto3/s3_bucket_without_ssl/file_transmitted_with_ssl.txt: -------------------------------------------------------------------------------- 1 | File transmitted with SSL. -------------------------------------------------------------------------------- /python/boto3/s3_bucket_without_ssl/file_transmitted_without_ssl.txt: -------------------------------------------------------------------------------- 1 | File transmitted without SSL. -------------------------------------------------------------------------------- /python/boto3/s3_create_bucket/s3_create_bucket.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # objective: 4 | # create s3 bucket 5 | 6 | import boto3 7 | 8 | client = boto3.client('s3') 9 | 10 | response = client.create_bucket(Bucket='my_bucket_name') 11 | print(response) 12 | -------------------------------------------------------------------------------- /python/boto3/s3_list_buckets/s3_list_buckets.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | # objective: 4 | # list s3 buckets 5 | 6 | import boto3 7 | 8 | client = boto3.client('s3') 9 | 10 | response = client.list_buckets() 11 | print(response) 12 | -------------------------------------------------------------------------------- /python/credstash/credstash_get_value/credstash_get_value.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import credstash 4 | 5 | secret_value = credstash.getSecret('secret_key', region='us-west-2', table='credstash-table') 6 | 7 | print secret_value 8 | -------------------------------------------------------------------------------- /python/dict_sort_python37/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | With the release of python 3.7, support was added for an ordered dictionary object. With this support and the use of the `sort` functionality built into python, a dictionary can be sorted! 4 | -------------------------------------------------------------------------------- /python/django/basic_django_site/mysite/db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/python/django/basic_django_site/mysite/db.sqlite3 -------------------------------------------------------------------------------- /python/django/basic_django_site/mysite/mysite/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/python/django/basic_django_site/mysite/mysite/__init__.py -------------------------------------------------------------------------------- /python/django/basic_django_site/mysite/mysite/views.py: -------------------------------------------------------------------------------- 1 | from django.http import HttpResponse 2 | 3 | def hello(request): 4 | return HttpResponse("Hello world") 5 | -------------------------------------------------------------------------------- /python/environ_variables/python_get_print_environ_variable.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | # objective: print environment variable 4 | 5 | import os 6 | 7 | print os.environ['MY_VAR'] 8 | 9 | # usage: 10 | # export MY_VAR=apple 11 | # ./python_get_print_environ_variable.py 12 | # return: 13 | # apple -------------------------------------------------------------------------------- /python/finviz/basic_finviz_query/basic_finviz_query.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | from finviz.screener import Screener 4 | filters=['fa_pe_profitable',] 5 | stock_list = Screener(filters=filters, table='Valuation', order='pe') 6 | 7 | print(stock_list) 8 | -------------------------------------------------------------------------------- /python/gunicorn/basic_gunicorn_setup/deploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | apt -y update 4 | apt -y install gunicorn 5 | 6 | # want to run the app? 7 | # cd /vagrant 8 | # gunicorn --bind=0.0.0.0:8000 --workers=1 app:app 9 | 10 | # gunicorn --paste development.ini -b :8080 --chdir /path/to/project -------------------------------------------------------------------------------- /python/jinja2/jinja2_using_file_template/my_templates/city_info_template.txt: -------------------------------------------------------------------------------- 1 | The city {{city_name}} was founded in {{city_founding_date}}. -------------------------------------------------------------------------------- /python/logging/logging_with_config_dict/logging_conf.yaml: -------------------------------------------------------------------------------- 1 | version: 1 2 | 3 | loggers: 4 | my_module: 5 | level: WARNING 6 | 7 | root: 8 | level: INFO 9 | -------------------------------------------------------------------------------- /python/newrelic-api/newrelic-api.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | from newrelic_api import AlertPolicies 4 | 5 | alert_policies = AlertPolicies().list() 6 | 7 | print alert_policies 8 | -------------------------------------------------------------------------------- /python/pandas/dataframe_from_csv/dataframe_from_csv.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | import pandas as pd 4 | 5 | mlb_standings = pd.read_csv('./mlb_2016.csv') 6 | 7 | print mlb_standings -------------------------------------------------------------------------------- /python/quality_standards/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This document seeks to provide quality standards for freelance scripting projects. 4 | -------------------------------------------------------------------------------- /python/reportlab/basic_report/hello.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/python/reportlab/basic_report/hello.pdf -------------------------------------------------------------------------------- /python/set/set_comprehension/set_comprehension.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | 3 | mlb_teams = set() 4 | 5 | mlb_teams.add('losangeles_dodgers') 6 | mlb_teams.add('oakland_athletics') 7 | mlb_teams.add('sanfrancico_giants') 8 | 9 | print '\n'.join(str(team) for team in mlb_teams) 10 | -------------------------------------------------------------------------------- /python/sphinx/basic_sphinx/basic_sphinx.rst: -------------------------------------------------------------------------------- 1 | basic_sphinx module 2 | =================== 3 | 4 | .. automodule:: basic_sphinx 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /python/sphinx/basic_sphinx/conf.rst: -------------------------------------------------------------------------------- 1 | conf module 2 | =========== 3 | 4 | .. automodule:: conf 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /python/split_on_string/basic_split_on_string.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | string = "08 G.O.M.D copy 17.mp3" 4 | string_split_on_period = string.split(".") 5 | string_without_extension = string_split_on_period[0:-1] 6 | 7 | # prints '08 G', 'O', 'M', 'D copy 17' with [0:-1] 8 | print(string_without_extension) -------------------------------------------------------------------------------- /python/unittest/unittest_multiple_modules/tests/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | -------------------------------------------------------------------------------- /python/urllib3/urllib3_simple_connection/requirements.txt: -------------------------------------------------------------------------------- 1 | urllib3==1.26.8 2 | -------------------------------------------------------------------------------- /python/urllib3/urllib3_simple_connection/urlllib3.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | import urllib3 4 | http = urllib3.PoolManager() 5 | request = http.request('GET', 'https://www.cloudavail.com/') 6 | print(request.data) 7 | -------------------------------------------------------------------------------- /python/virtualenv/bootstrap_script/create_my_app_bootstrap_diagram.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/python/virtualenv/bootstrap_script/create_my_app_bootstrap_diagram.png -------------------------------------------------------------------------------- /python/wsgi_application/wsgi_application.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python3 2 | 3 | def application(env, start_response): 4 | start_response('200 OK', [('Content-Type','text/html')]) 5 | return [b"Hello World"] 6 | -------------------------------------------------------------------------------- /redis/redis_284/redis_284_basic_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | apt -y update 3 | apt -y install redis-server='2:2.8.4-2' 4 | -------------------------------------------------------------------------------- /redis/redis_insight_with_docker/docker-compose.yaml: -------------------------------------------------------------------------------- 1 | version: '3' 2 | services: 3 | redis: 4 | image: redis:latest 5 | ports: 6 | - 6379:6379 7 | redisinsight: 8 | image: redislabs/redisinsight:latest 9 | links: 10 | - redis 11 | ports: 12 | - 8001:8001 -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require File.expand_path('../config/application', __FILE__) 5 | 6 | Rails.application.load_tasks 7 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/assets/images/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/app/assets/images/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | # Prevent CSRF attacks by raising an exception. 3 | # For APIs, you may want to use :null_session instead. 4 | protect_from_forgery with: :exception 5 | end 6 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/app/controllers/concerns/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/mailers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/app/mailers/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/models/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/app/models/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/models/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/app/models/concerns/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) 3 | load Gem.bin_path('bundler', 'bundle') 4 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | begin 3 | load File.expand_path('../spring', __FILE__) 4 | rescue LoadError => e 5 | raise unless e.message.include?('spring') 6 | end 7 | require_relative '../config/boot' 8 | require 'rake' 9 | Rake.application.run 10 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require ::File.expand_path('../config/environment', __FILE__) 4 | run Rails.application 5 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/config/boot.rb: -------------------------------------------------------------------------------- 1 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) 2 | 3 | require 'bundler/setup' # Set up gems listed in the Gemfile. 4 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the Rails application. 2 | require File.expand_path('../application', __FILE__) 3 | 4 | # Initialize the Rails application. 5 | Rails.application.initialize! 6 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/config/initializers/cookies_serializer.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | Rails.application.config.action_dispatch.cookies_serializer = :json 4 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Configure sensitive parameters which will be filtered from the log file. 4 | Rails.application.config.filter_parameters += [:password] 5 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/config/initializers/session_store.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | Rails.application.config.session_store :cookie_store, key: '_basic_rails_asset_pipeline_session' 4 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/lib/assets/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/lib/assets/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/lib/tasks/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/lib/tasks/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/log/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/log/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/public/favicon.ico -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/controllers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/test/controllers/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/fixtures/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/test/fixtures/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/helpers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/test/helpers/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/integration/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/test/integration/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/mailers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/test/mailers/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/models/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/test/models/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/vendor/assets/javascripts/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/vendor/assets/javascripts/.keep -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/vendor/assets/stylesheets/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/basic_rails_asset_pipeline/vendor/assets/stylesheets/.keep -------------------------------------------------------------------------------- /ruby/basic_sidekiq_worker/Gemfile: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | source "https://rubygems.org" 4 | 5 | # gem "rails" 6 | 7 | gem "sidekiq", "~> 7.0" 8 | -------------------------------------------------------------------------------- /ruby/basic_sidekiq_worker/README.md: -------------------------------------------------------------------------------- 1 | # Create Gemfile 2 | 3 | I'm actually creating the Gemfile on macOS (10.14) but the Gemfile will be used on Ubuntu. 4 | 5 | 1. create the Gemfile: `bundle init` 6 | 2. add sidekiq: `bundle add sidekiq --skip-install` 7 | -------------------------------------------------------------------------------- /ruby/basic_sidekiq_worker/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = "ubuntu/bionic64" 6 | config.vm.hostname = 'sidekiq' 7 | 8 | config.vm.provision(:shell, path: './basic_sidekiq_worker.sh') 9 | 10 | end 11 | -------------------------------------------------------------------------------- /ruby/basic_sidekiq_worker/basic_sidekiq_worker.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | apt update 3 | 4 | apt -y install redis 5 | 6 | apt -y install ruby ruby-bundler 7 | 8 | cd /vagrant 9 | bundle install 10 | sidekiqctl status 11 | -------------------------------------------------------------------------------- /ruby/erb/erb_access_environment_variable/erb_access_environment_variable.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'erb' 4 | 5 | user_home_template = ERB.new("Users $HOME is: <%= ENV['HOME'] %>") 6 | puts user_home_template.result(binding) 7 | -------------------------------------------------------------------------------- /ruby/file_exists/file_exists.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/ruby 2 | 3 | my_file = '/path/to/file' 4 | 5 | if File.exists?(my_file) == true 6 | puts 'File Exists' 7 | else 8 | puts 'File Does Not Exist' 9 | end 10 | -------------------------------------------------------------------------------- /ruby/hash_value_or_default/hash_value_or_default_with_dig_diff_types.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | record = { 'attrs' => nil } 4 | record['attrs'] = { 'container_name' => 'container' } 5 | puts record.dig(:attrs, :container_name) || "Not Defined" 6 | puts record.dig('attrs', 'container_name') || "Not Defined" 7 | -------------------------------------------------------------------------------- /ruby/iterate_over_array/iterate_over_array.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | repositories = [ './repository_one' , './repository_two' ] 4 | 5 | repositories.each do |repository| 6 | print repository 7 | end 8 | -------------------------------------------------------------------------------- /ruby/profiling/memory_profiler/hello.rb: -------------------------------------------------------------------------------- 1 | # usage: 2 | # ruby-memory-profiler 3 | 4 | # for a full list of options: 5 | # ruby-memory-profiler -h 6 | puts "hello world!" -------------------------------------------------------------------------------- /ruby/profiling/memory_profiler/memory_profiler_example.rb: -------------------------------------------------------------------------------- 1 | require 'memory_profiler' 2 | report = MemoryProfiler.report do 3 | puts "Randy have a great trip in Spain!!!" 4 | puts 'something' 5 | puts 500000000000000000000 6 | end 7 | report.pretty_print -------------------------------------------------------------------------------- /ruby/profiling/rbspy/rbspy_example.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | array = Array.new 3 | i = 0 4 | loop do 5 | array << i 6 | i = i + 1 7 | sleep(1) 8 | puts array 9 | if i == 300 10 | break 11 | end 12 | end -------------------------------------------------------------------------------- /ruby/rest_client_example/rest_client_get.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'rest-client' 4 | 5 | url = 'www.google.com' 6 | 7 | response = RestClient.get(url, headers={}) 8 | 9 | puts response 10 | -------------------------------------------------------------------------------- /ruby/ruby_exception_handling/ruby_unhandled_exception.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | File.open("file_not_exist.txt", "r") 4 | 5 | puts "Ruby Program Continues" 6 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-2.5.1 -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require_relative 'config/application' 5 | 6 | Rails.application.load_tasks 7 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/assets/config/manifest.js: -------------------------------------------------------------------------------- 1 | //= link_tree ../images 2 | //= link_directory ../javascripts .js 3 | //= link_directory ../stylesheets .css 4 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/assets/images/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/app/assets/images/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/assets/javascripts/channels/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/app/assets/javascripts/channels/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/channels/application_cable/channel.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Channel < ActionCable::Channel::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/channels/application_cable/connection.rb: -------------------------------------------------------------------------------- 1 | module ApplicationCable 2 | class Connection < ActionCable::Connection::Base 3 | end 4 | end 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/controllers/application_controller.rb: -------------------------------------------------------------------------------- 1 | class ApplicationController < ActionController::Base 2 | end 3 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/app/controllers/concerns/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/jobs/application_job.rb: -------------------------------------------------------------------------------- 1 | class ApplicationJob < ActiveJob::Base 2 | end 3 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/mailers/application_mailer.rb: -------------------------------------------------------------------------------- 1 | class ApplicationMailer < ActionMailer::Base 2 | default from: 'from@example.com' 3 | layout 'mailer' 4 | end 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/models/application_record.rb: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | self.abstract_class = true 3 | end 4 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/models/concerns/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/app/models/concerns/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/bin/bundle: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) 3 | load Gem.bin_path('bundler', 'bundle') 4 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/bin/rails: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | APP_PATH = File.expand_path('../config/application', __dir__) 3 | require_relative '../config/boot' 4 | require 'rails/commands' 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/bin/rake: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require_relative '../config/boot' 3 | require 'rake' 4 | Rake.application.run 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config.ru: -------------------------------------------------------------------------------- 1 | # This file is used by Rack-based servers to start the application. 2 | 3 | require_relative 'config/environment' 4 | 5 | run Rails.application 6 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config/boot.rb: -------------------------------------------------------------------------------- 1 | ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) 2 | 3 | require 'bundler/setup' # Set up gems listed in the Gemfile. 4 | require 'bootsnap/setup' # Speed up boot time by caching expensive operations. 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config/cable.yml: -------------------------------------------------------------------------------- 1 | development: 2 | adapter: async 3 | 4 | test: 5 | adapter: async 6 | 7 | production: 8 | adapter: redis 9 | url: <%= ENV.fetch("REDIS_URL") { "redis://localhost:6379/1" } %> 10 | channel_prefix: helloworld_production 11 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config/environment.rb: -------------------------------------------------------------------------------- 1 | # Load the Rails application. 2 | require_relative 'application' 3 | 4 | # Initialize the Rails application. 5 | Rails.application.initialize! 6 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config/initializers/filter_parameter_logging.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Configure sensitive parameters which will be filtered from the log file. 4 | Rails.application.config.filter_parameters += [:password] 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config/routes.rb: -------------------------------------------------------------------------------- 1 | Rails.application.routes.draw do 2 | # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html 3 | end 4 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/config/spring.rb: -------------------------------------------------------------------------------- 1 | %w[ 2 | .ruby-version 3 | .rbenv-vars 4 | tmp/restart.txt 5 | tmp/caching-dev.txt 6 | ].each { |path| Spring.watch(path) } 7 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/lib/assets/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/lib/assets/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/lib/tasks/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/lib/tasks/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/log/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/log/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "helloworld", 3 | "private": true, 4 | "dependencies": {} 5 | } 6 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/public/apple-touch-icon-precomposed.png -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/public/apple-touch-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/public/apple-touch-icon.png -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/public/favicon.ico -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file 2 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/storage/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/storage/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/application_system_test_case.rb: -------------------------------------------------------------------------------- 1 | require "test_helper" 2 | 3 | class ApplicationSystemTestCase < ActionDispatch::SystemTestCase 4 | driven_by :selenium, using: :chrome, screen_size: [1400, 1400] 5 | end 6 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/controllers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/controllers/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/fixtures/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/fixtures/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/fixtures/files/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/fixtures/files/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/helpers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/helpers/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/integration/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/integration/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/mailers/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/mailers/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/models/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/models/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/system/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/test/system/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/tmp/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/tmp/.keep -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/vendor/.keep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ruby/ruby_on_rails_hello_world/helloworld/vendor/.keep -------------------------------------------------------------------------------- /ruby/socket_get_hostname/socket_get_hostname.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'socket' 4 | 5 | hostname = Socket.gethostname 6 | 7 | puts hostname 8 | -------------------------------------------------------------------------------- /ruby/yaml_load_with_begin_rescue/invalid_yaml_file.yaml: -------------------------------------------------------------------------------- 1 | first_key: 'Giants' 2 | []second_key:'Dodgers' 3 | -------------------------------------------------------------------------------- /ruby/yaml_load_with_begin_rescue/valid_yaml_file.yaml: -------------------------------------------------------------------------------- 1 | first_key: 'Giants' 2 | second_key: 'Dodgers' 3 | -------------------------------------------------------------------------------- /sam/sam-app-with-private-serverless-api/hello_world/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/sam/sam-app-with-private-serverless-api/hello_world/__init__.py -------------------------------------------------------------------------------- /sam/sam-app-with-private-serverless-api/hello_world/requirements.txt: -------------------------------------------------------------------------------- 1 | requests -------------------------------------------------------------------------------- /sam/sam-app-with-private-serverless-api/tests/unit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/sam/sam-app-with-private-serverless-api/tests/unit/__init__.py -------------------------------------------------------------------------------- /sam/sam-app/hello_world/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/sam/sam-app/hello_world/__init__.py -------------------------------------------------------------------------------- /sam/sam-app/hello_world/requirements.txt: -------------------------------------------------------------------------------- 1 | requests -------------------------------------------------------------------------------- /sam/sam-app/tests/unit/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/sam/sam-app/tests/unit/__init__.py -------------------------------------------------------------------------------- /selenium/selenium_python_chrome_headless/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = '2' 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/xenial64' 6 | 7 | config.vm.provision(:shell, path: './selenium_python_chrome_headless.sh') 8 | 9 | end 10 | -------------------------------------------------------------------------------- /selenium/selenium_python_get_screenshot/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/trusty64' 6 | 7 | config.vm.provision(:shell, path: './basic_selenium_install.sh') 8 | 9 | end 10 | -------------------------------------------------------------------------------- /sequelize/basic_sequelize_migration/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = 2 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/focal64' 6 | config.vm.provision(:shell, path: './basic_sequelize_system.sh') 7 | 8 | end 9 | -------------------------------------------------------------------------------- /serverless_framework/serverless_with_global_var/config.dev.yml: -------------------------------------------------------------------------------- 1 | MY_VAR: Warriors -------------------------------------------------------------------------------- /serverless_framework/serverless_with_global_var/config.prd.yml: -------------------------------------------------------------------------------- 1 | MY_VAR: Bulls -------------------------------------------------------------------------------- /serverless_framework/serverless_with_global_var/serverless.yml: -------------------------------------------------------------------------------- 1 | service: serverless-with-node-app 2 | 3 | provider: 4 | name: aws 5 | runtime: nodejs10.x 6 | stage: ${opt:stage} 7 | environment: 8 | MYVAR: GSWWARRIORS 9 | 10 | functions: 11 | hello: 12 | handler: handler.hello 13 | -------------------------------------------------------------------------------- /serverless_framework/serverless_with_node_on_cron/.gitignore: -------------------------------------------------------------------------------- 1 | # package directories 2 | node_modules 3 | jspm_packages 4 | 5 | # Serverless directories 6 | .serverless -------------------------------------------------------------------------------- /sidekiq/README.md: -------------------------------------------------------------------------------- 1 | # This is how to run Sidekiq Service as a Systemd 2 | 3 | -------------------------------------------------------------------------------- /solr/solr_cloud/README.md: -------------------------------------------------------------------------------- 1 | # Objective: 2 | Creates an Zookeeper (single node, not clustered) and two node Apache Solr Cluster. 3 | -------------------------------------------------------------------------------- /solr/solr_cloud/zookeeper_instance.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo apt-get -y update 4 | apt-get -y install zookeeper zookeeperd 5 | -------------------------------------------------------------------------------- /solr/solr_single_instance_apt/README.md: -------------------------------------------------------------------------------- 1 | # Objective: 2 | Creates a single Apache Solr Server installing from an Apt repository. 3 | 4 | # Notes: 5 | The version installed via Aptitude on Ubuntu 14.04 is version 3.6.2+dfsg-2. As of 2015-12-18 the most recent version of Solr is 5.4.0. -------------------------------------------------------------------------------- /solr/solr_single_instance_apt/solr_single_instance.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | sudo apt-get -y update 4 | sudo apt-get -y install solr-tomcat 5 | -------------------------------------------------------------------------------- /spark/pyspark_install/pyspark_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # http://spark.apache.org/docs/latest/quick-start.html 4 | 5 | # apt update 6 | apt update 7 | apt -y install default-jre 8 | apt -y install python-pip 9 | pip --no-cache-dir install pyspark 10 | -------------------------------------------------------------------------------- /spark/spark_install/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = '2' 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/bionic64' 6 | config.vm.hostname = 'spark' 7 | config.vm.provision(:shell, path: './spark_install.sh') 8 | 9 | end 10 | -------------------------------------------------------------------------------- /sqoop/basic_sqoop/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = '2' 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/bionic64' 6 | config.vm.hostname = 'sqoop' 7 | config.vm.provision 'shell', path: './basic_sqoop.sh' 8 | 9 | end 10 | -------------------------------------------------------------------------------- /ssh/ssh_ProxyCommand/Images/ssh Proxy with -t.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ssh/ssh_ProxyCommand/Images/ssh Proxy with -t.png -------------------------------------------------------------------------------- /ssh/ssh_ProxyCommand/Images/ssh Proxy without -t.png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/ssh/ssh_ProxyCommand/Images/ssh Proxy without -t.png.png -------------------------------------------------------------------------------- /sumologic/sumologic_docker_file/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet describes how to launch a Sumologic Docker file collector. 4 | 5 | # Run 6 | 7 | docker run --volume $(pwd)/logs:/tmp/clogs --env SUMO_ACCESS_ID='' --env SUMO_ACCESS_KEY='' sumologic/collector:latest-file 8 | -------------------------------------------------------------------------------- /swift/BridgingHeader/BridgingHeader.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/arrays_and_dictionaries/arrays_and_dictionaries.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/swift/arrays_and_dictionaries/arrays_and_dictionaries.playground/Results.playgrounddata -------------------------------------------------------------------------------- /swift/arrays_and_dictionaries/arrays_and_dictionaries.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to arrays_and_dictionaries.playground. 3 | // 4 | -------------------------------------------------------------------------------- /swift/arrays_and_dictionaries/arrays_and_dictionaries.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/arrays_and_dictionaries/arrays_and_dictionaries.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /swift/basic_class/basic_class.playground/Contents.swift: -------------------------------------------------------------------------------- 1 | //: Playground - noun: a place where people can play 2 | 3 | import Cocoa 4 | 5 | var str = "Hello, playground" 6 | -------------------------------------------------------------------------------- /swift/basic_class/basic_class.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/swift/basic_class/basic_class.playground/Results.playgrounddata -------------------------------------------------------------------------------- /swift/basic_class/basic_class.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to basic_class.playground. 3 | // 4 | -------------------------------------------------------------------------------- /swift/basic_class/basic_class.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /swift/bridge_header/bridge_header.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/bridging_header/bridging_header.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/for_loops/for_loops.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to for_loops.playground. 3 | // 4 | -------------------------------------------------------------------------------- /swift/for_loops/for_loops.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/for_loops/for_loops.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/for_loops/for_loops.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/swift/functions/functions.playground/Results.playgrounddata -------------------------------------------------------------------------------- /swift/functions/functions.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to functions.playground. 3 | // 4 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /swift/inheritance_basics/inheritance_basics.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to inheritance.playground. 3 | // 4 | -------------------------------------------------------------------------------- /swift/inheritance_basics/inheritance_basics.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/inheritance_basics/inheritance_basics.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/inheritance_basics/inheritance_basics.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/Contents.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | 3 | var helloString = "Hello, playground" 4 | 5 | println (helloString) 6 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to set_variable.playground. 3 | // 4 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /swift/variable_in_string/variable_in_string.playground/Contents.swift: -------------------------------------------------------------------------------- 1 | import Cocoa 2 | 3 | var temperature = 75 4 | var temperatureStatement = "It is currently \(temperature) degrees." 5 | println(temperatureStatement) 6 | 7 | -------------------------------------------------------------------------------- /swift/variable_in_string/variable_in_string.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/swift/variable_in_string/variable_in_string.playground/Results.playgrounddata -------------------------------------------------------------------------------- /swift/variable_in_string/variable_in_string.playground/Sources/SupportCode.swift: -------------------------------------------------------------------------------- 1 | // 2 | // This file (and all other Swift source files in the Sources directory of this playground) will be precompiled into a framework which is automatically made available to variable_in_string.playground. 3 | // 4 | -------------------------------------------------------------------------------- /swift/variable_in_string/variable_in_string.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/variable_in_string/variable_in_string.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /sysdig/read_file_with_docker/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This document describes how to use the sysdig tool. 4 | 5 | # Running within Docker 6 | 7 | `docker run --volume $(pwd)":/var/tmp sysdig/sysdig` 8 | -------------------------------------------------------------------------------- /terraform/aws/aws_config/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/340f5c2735d6ec88b793f1eea91f2b026c24586e/terraform/aws/aws_config/variables.tf -------------------------------------------------------------------------------- /terraform/aws/aws_module_asg_and_template_with_gp3/README.md: -------------------------------------------------------------------------------- 1 | ##Overview## 2 | This snippet creates an Auto-Scaling group with 1 T2.Micro EC2 instance with a 10gb gp3 volume 3 | 4 | This snippet is not believed to be working with Terraform Version 11 -------------------------------------------------------------------------------- /terraform/aws/rds_with_readreplicas/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet creates an RDS instance with a varying number of read-replicas. You can set the number of read-replicas when running terraform. -------------------------------------------------------------------------------- /terraform/aws/rds_with_readreplicas/variables.tf: -------------------------------------------------------------------------------- 1 | variable "read_replica_count" { 2 | type = number 3 | default = 1 4 | } 5 | -------------------------------------------------------------------------------- /terraform/aws/terraform_ecs/templates/ecs_cluster_node.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash - 2 | 3 | cat > /etc/ecs/ecs.config < /etc/ecs/ecs.config < /etc/ecs/ecs.config < /etc/ecs/ecs.config < /etc/ecs/ecs.config < /etc/ecs/ecs.config < /etc/ecs/ecs.config < /var/tmp/variables.txt < /var/tmp/output_env_vars.txt < AWS Flow Application when running on AWS. 3 | 4 | # Command to Run 5 | From root of project, run the following: 6 | `ant -f build/build.xml tar` -------------------------------------------------------------------------------- /vagrant_aws_flow/docs/deploy/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | This document describes how to create a upload a tarball to S3 for usage with the Vagrant -> AWS Flow Application when running on AWS. 3 | 4 | # Command to Run 5 | From root of project, run the following: 6 | `aws s3 cp build/vaf-0.1.0.tar.gz s3://vaf-release/` -------------------------------------------------------------------------------- /vagrant_aws_flow/html/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Vagrant -> AWS Development Flow 5 | 6 | 7 | 8 |

Summary:

9 |

This is a sample application describing development flow from Vagrant to AWS.

10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /vestacp/basic_vestacp_install/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This directory contains a Vagrantfile with vestacp installed 4 | 5 | ## To enable 100GB in VM 6 | 7 | Install this plugin: `vagrant plugin install vagrant-disksize` 8 | -------------------------------------------------------------------------------- /vestacp/basic_vestacp_install/install_script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | curl -O http://vestacp.com/pub/vst-install.sh 4 | # bash vst-install.sh --force 5 | # enter $email 6 | -------------------------------------------------------------------------------- /webpack/basic_webpack_project/dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /webpack/basic_webpack_project/webpack.config.js: -------------------------------------------------------------------------------- 1 | const path = require('path'); 2 | 3 | module.exports = { 4 | entry: './src/index.js', 5 | mode: 'development', 6 | output: { 7 | filename: 'main.js', 8 | path: path.resolve(__dirname, 'dist'), 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /webpack/webpack_s3_publish/dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /yaml/yaml_alias/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This series of snippets was designed to test and understand YAML "alias"ing and, potentially, overwriting a key within a alias. 4 | -------------------------------------------------------------------------------- /yaml/yaml_alias/yaml_alias.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | vehicles: 3 | # list all common car elements here 4 | car: &base_car 5 | motor: true 6 | wheels: 4 7 | 8 | cars: 9 | volvo_242_1979: 10 | <<: *base_car 11 | doors: 2 12 | volvo_740_1985: 13 | <<: *base_car 14 | doors: 4 15 | --------------------------------------------------------------------------------