├── sam ├── sam-app │ ├── hello_world │ │ ├── __init__.py │ │ └── requirements.txt │ └── tests │ │ └── unit │ │ └── __init__.py └── sam-app-with-private-serverless-api │ ├── hello_world │ ├── __init__.py │ └── requirements.txt │ └── tests │ └── unit │ └── __init__.py ├── terraform ├── aws │ ├── aws_config │ │ └── variables.tf │ ├── terraform_module_aws_rds │ │ └── variables.tf │ ├── terraform_target_group │ │ ├── versions.tf │ │ └── main.tf │ ├── terraform_ecs_with_parameter_store │ │ ├── versions.tf │ │ ├── templates │ │ │ └── ecs_cluster_node.sh │ │ └── parameter_store.tf │ ├── rds_with_readreplicas │ │ ├── variables.tf │ │ └── README.md │ ├── terraform_ecs │ │ └── templates │ │ │ └── ecs_cluster_node.sh │ ├── terraform_ecs_environment │ │ ├── vpc │ │ │ └── README.md │ │ ├── modules │ │ │ └── ecs │ │ │ │ └── templates │ │ │ │ └── ecs_cluster_node.sh │ │ └── ecs │ │ │ └── dev │ │ │ └── us-west-2 │ │ │ └── templates │ │ │ └── ecs_cluster_node.sh │ ├── terraform_ecs_multicontainer_task │ │ ├── main.tf │ │ └── templates │ │ │ └── ecs_cluster_node.sh │ ├── terraform_ecs_service_task_and_elbv2 │ │ ├── main.tf │ │ └── templates │ │ │ └── ecs_cluster_node.sh │ ├── terraform_ecs_service_and_task │ │ └── templates │ │ │ └── ecs_cluster_node.sh │ ├── aws_module_asg_and_template_with_gp3 │ │ └── README.md │ └── terraform_elbv2_listener_rule_multiple_values │ │ └── README.md ├── terraform_with_workspaces │ └── variables.tf ├── terraform_aws_tags_with_local_variable │ ├── versions.tf │ └── vars.tf ├── terraform_cloudwatch_metric_alarm │ └── vars.tf ├── terraform_state_mv │ ├── mv_to_another_configuration │ │ ├── target_configuration │ │ │ └── main.tf │ │ └── source_configuration │ │ │ └── main.tf │ └── mv_within_configuration │ │ └── main.tf ├── terraform_for_each_list_objects │ ├── variables.tf │ └── terraform.tfvars ├── terraform_with_environments │ └── vpc_modules │ │ └── README.md ├── terraform_mysql_user_provision │ ├── variables.tf │ └── main.tf ├── terraform_template │ └── templates │ │ └── user_data.sh └── terraform_with_pagerduty │ └── README.md ├── ruby ├── basic_rails_asset_pipeline │ ├── log │ │ └── .keep │ ├── app │ │ ├── models │ │ │ ├── .keep │ │ │ └── concerns │ │ │ │ └── .keep │ │ ├── mailers │ │ │ └── .keep │ │ ├── assets │ │ │ └── images │ │ │ │ └── .keep │ │ ├── controllers │ │ │ ├── concerns │ │ │ │ └── .keep │ │ │ └── application_controller.rb │ │ └── helpers │ │ │ └── application_helper.rb │ ├── lib │ │ ├── assets │ │ │ └── .keep │ │ └── tasks │ │ │ └── .keep │ ├── public │ │ ├── favicon.ico │ │ ├── robots.txt │ │ └── assets │ │ │ ├── application-943ad24e6862b6fb0a4880bc104e52e6a3a5abba68ff6e54f18c16a45f2fad5b.js.gz │ │ │ └── application-e80e8f2318043e8af94dddc2adad5a4f09739a8ebb323b3ab31cd71d45fd9113.css.gz │ ├── test │ │ ├── fixtures │ │ │ └── .keep │ │ ├── helpers │ │ │ └── .keep │ │ ├── mailers │ │ │ └── .keep │ │ ├── models │ │ │ └── .keep │ │ ├── controllers │ │ │ └── .keep │ │ └── integration │ │ │ └── .keep │ ├── vendor │ │ └── assets │ │ │ ├── javascripts │ │ │ └── .keep │ │ │ └── stylesheets │ │ │ └── .keep │ ├── bin │ │ ├── bundle │ │ └── rake │ ├── config │ │ ├── boot.rb │ │ ├── initializers │ │ │ ├── cookies_serializer.rb │ │ │ ├── mime_types.rb │ │ │ ├── session_store.rb │ │ │ └── filter_parameter_logging.rb │ │ └── environment.rb │ ├── config.ru │ └── Rakefile ├── ruby_on_rails_hello_world │ └── helloworld │ │ ├── log │ │ └── .keep │ │ ├── tmp │ │ └── .keep │ │ ├── lib │ │ ├── assets │ │ │ └── .keep │ │ └── tasks │ │ │ └── .keep │ │ ├── storage │ │ └── .keep │ │ ├── vendor │ │ └── .keep │ │ ├── public │ │ ├── favicon.ico │ │ ├── apple-touch-icon.png │ │ ├── apple-touch-icon-precomposed.png │ │ └── robots.txt │ │ ├── test │ │ ├── fixtures │ │ │ ├── .keep │ │ │ └── files │ │ │ │ └── .keep │ │ ├── helpers │ │ │ └── .keep │ │ ├── mailers │ │ │ └── .keep │ │ ├── models │ │ │ └── .keep │ │ ├── system │ │ │ └── .keep │ │ ├── controllers │ │ │ └── .keep │ │ ├── integration │ │ │ └── .keep │ │ └── application_system_test_case.rb │ │ ├── .ruby-version │ │ ├── app │ │ ├── assets │ │ │ ├── images │ │ │ │ └── .keep │ │ │ ├── javascripts │ │ │ │ └── channels │ │ │ │ │ └── .keep │ │ │ └── config │ │ │ │ └── manifest.js │ │ ├── models │ │ │ ├── concerns │ │ │ │ └── .keep │ │ │ └── application_record.rb │ │ ├── controllers │ │ │ ├── concerns │ │ │ │ └── .keep │ │ │ └── application_controller.rb │ │ ├── views │ │ │ └── layouts │ │ │ │ └── mailer.text.erb │ │ ├── helpers │ │ │ └── application_helper.rb │ │ ├── jobs │ │ │ └── application_job.rb │ │ ├── channels │ │ │ └── application_cable │ │ │ │ ├── channel.rb │ │ │ │ └── connection.rb │ │ └── mailers │ │ │ └── application_mailer.rb │ │ ├── package.json │ │ ├── bin │ │ ├── rake │ │ ├── bundle │ │ └── rails │ │ ├── config │ │ ├── spring.rb │ │ ├── environment.rb │ │ ├── routes.rb │ │ ├── initializers │ │ │ ├── mime_types.rb │ │ │ └── filter_parameter_logging.rb │ │ ├── boot.rb │ │ └── cable.yml │ │ ├── config.ru │ │ └── Rakefile ├── yaml_load_with_begin_rescue │ ├── valid_yaml_file.yaml │ └── invalid_yaml_file.yaml ├── basic_sidekiq_worker │ ├── Gemfile │ ├── basic_sidekiq_worker.sh │ ├── README.md │ └── Vagrantfile ├── socket_get_hostname │ └── socket_get_hostname.rb ├── ruby_exception_handling │ └── ruby_unhandled_exception.rb ├── profiling │ ├── memory_profiler │ │ ├── hello.rb │ │ └── memory_profiler_example.rb │ └── rbspy │ │ └── rbspy_example.rb ├── file_exists │ └── file_exists.rb ├── iterate_over_array │ └── iterate_over_array.rb ├── rest_client_example │ └── rest_client_get.rb ├── erb │ └── erb_access_environment_variable │ │ └── erb_access_environment_variable.rb └── hash_value_or_default │ └── hash_value_or_default_with_dig_diff_types.rb ├── gradle ├── gradle_file_exists │ └── test_file_exists.txt ├── gradle_rename_root_project │ └── settings.gradle ├── gradle_tar_directory │ ├── root_test_file.txt │ ├── lib │ │ └── lib_test_file.txt │ ├── src │ │ └── src_test_file.txt │ └── exclude_dir │ │ └── exclude_test_file.txt ├── hello_world │ ├── src │ │ └── main │ │ │ └── java │ │ │ └── org │ │ │ └── world │ │ │ └── hello │ │ │ └── HelloWorld.java │ └── build.gradle └── gradle_basics │ └── build.gradle ├── hiera └── hiera_test │ └── common.yaml ├── python ├── django │ └── basic_django_site │ │ └── mysite │ │ ├── mysite │ │ ├── __init__.py │ │ └── views.py │ │ └── db.sqlite3 ├── Flask │ ├── get_config │ │ └── config │ │ │ └── production.cfg │ └── get_config_from_env │ │ └── config │ │ └── production.cfg ├── urllib3 │ └── urllib3_simple_connection │ │ ├── requirements.txt │ │ └── urlllib3.py ├── unittest │ └── unittest_multiple_modules │ │ └── tests │ │ └── __init__.py ├── boto3 │ ├── s3_bucket_without_ssl │ │ ├── file_transmitted_with_ssl.txt │ │ └── file_transmitted_without_ssl.txt │ ├── ecs_run_task │ │ ├── requirements.txt │ │ └── ecs_run_task.py │ ├── s3_list_buckets │ │ └── s3_list_buckets.py │ └── s3_create_bucket │ │ └── s3_create_bucket.py ├── reportlab │ └── basic_report │ │ └── hello.pdf ├── jinja2 │ └── jinja2_using_file_template │ │ └── my_templates │ │ └── city_info_template.txt ├── quality_standards │ └── README.md ├── PyQT5 │ └── pyqt5_simple_example │ │ ├── README.md │ │ └── Vagrantfile ├── logging │ └── logging_with_config_dict │ │ └── logging_conf.yaml ├── sphinx │ └── basic_sphinx │ │ ├── conf.rst │ │ └── basic_sphinx.rst ├── newrelic-api │ └── newrelic-api.py ├── pandas │ └── dataframe_from_csv │ │ └── dataframe_from_csv.py ├── virtualenv │ └── bootstrap_script │ │ └── create_my_app_bootstrap_diagram.png ├── wsgi_application │ └── wsgi_application.py ├── credstash │ └── credstash_get_value │ │ └── credstash_get_value.py ├── dict_sort_python37 │ └── README.md ├── finviz │ └── basic_finviz_query │ │ └── basic_finviz_query.py ├── set │ └── set_comprehension │ │ └── set_comprehension.py ├── gunicorn │ └── basic_gunicorn_setup │ │ └── deploy.sh ├── environ_variables │ └── python_get_print_environ_variable.py └── split_on_string │ └── basic_split_on_string.py ├── docker ├── docker_compose_basic │ ├── mysql │ │ └── Dockerfile │ └── web │ │ ├── requirements.txt │ │ ├── Dockerfile │ │ └── web.py ├── supervisor_test │ ├── static │ │ └── index.html │ ├── entrypoint.sh │ └── supervisord.conf ├── docker_with_nginx_proxy_to_nodejs │ ├── static │ │ └── index.html │ ├── entrypoint.sh │ └── provision.sh ├── docker_with_nginx_gzip │ ├── Dockerfile │ └── README.md ├── docker_exit_with_shell_entrypoint │ ├── nginx_shell_wrapper │ │ ├── entrypoint.sh │ │ └── Dockerfile │ ├── nginx_shell_wrapper_exec_mode │ │ ├── entrypoint.sh │ │ └── Dockerfile │ ├── nginx_shell_wrapper_exec_bash │ │ ├── entrypoint.sh │ │ └── Dockerfile │ └── nginx │ │ └── Dockerfile ├── docker_build_with_build_args │ └── Dockerfile ├── docker_with_environment_variable │ └── Dockerfile ├── docker_compose_with_mysql │ └── docker-compose.yaml └── jsonfile_with_multiple_labels │ └── README.md ├── php ├── phpunit_simple_test │ ├── phpunit │ ├── vendor │ │ ├── bin │ │ │ └── phpunit │ │ ├── sebastian │ │ │ ├── version │ │ │ │ ├── .gitignore │ │ │ │ └── .gitattributes │ │ │ ├── environment │ │ │ │ └── .gitignore │ │ │ ├── comparator │ │ │ │ ├── .gitignore │ │ │ │ └── tests │ │ │ │ │ └── bootstrap.php │ │ │ ├── global-state │ │ │ │ └── .gitignore │ │ │ ├── exporter │ │ │ │ └── .gitignore │ │ │ ├── recursion-context │ │ │ │ └── .gitignore │ │ │ └── diff │ │ │ │ ├── .gitignore │ │ │ │ └── tests │ │ │ │ └── fixtures │ │ │ │ └── patch.txt │ │ ├── phpunit │ │ │ ├── phpunit │ │ │ │ ├── tests │ │ │ │ │ ├── _files │ │ │ │ │ │ ├── bar.xml │ │ │ │ │ │ ├── foo.xml │ │ │ │ │ │ ├── expectedFileFormat.txt │ │ │ │ │ │ ├── JsonData │ │ │ │ │ │ │ ├── simpleObject.json │ │ │ │ │ │ │ └── arrayObject.json │ │ │ │ │ │ ├── NoTestCaseClass.php │ │ │ │ │ │ ├── configuration.colors.empty.xml │ │ │ │ │ │ ├── configuration.colors.true.xml │ │ │ │ │ │ ├── CoveredFunction.php │ │ │ │ │ │ ├── configuration.colors.false.xml │ │ │ │ │ │ ├── configuration.colors.invalid.xml │ │ │ │ │ │ ├── DummyException.php │ │ │ │ │ │ ├── CustomPrinter.php │ │ │ │ │ │ ├── NotVoidTestCase.php │ │ │ │ │ │ ├── EmptyTestCaseTest.php │ │ │ │ │ │ ├── NamespaceCoveredFunction.php │ │ │ │ │ │ ├── NonStatic.php │ │ │ │ │ │ ├── ConcreteTest.php │ │ │ │ │ │ ├── InheritedTestCase.php │ │ │ │ │ │ ├── Success.php │ │ │ │ │ │ ├── configuration.custom-printer.xml │ │ │ │ │ │ ├── Inheritance │ │ │ │ │ │ │ ├── InheritanceA.php │ │ │ │ │ │ │ └── InheritanceB.php │ │ │ │ │ │ ├── NoTestCases.php │ │ │ │ │ │ ├── NothingTest.php │ │ │ │ │ │ ├── OverrideTestCase.php │ │ │ │ │ │ ├── AbstractTest.php │ │ │ │ │ │ ├── ConcreteTest.my.php │ │ │ │ │ │ ├── MockRunner.php │ │ │ │ │ │ ├── NoArgTestCaseTest.php │ │ │ │ │ │ ├── ClassWithScalarTypeDeclarations.php │ │ │ │ │ │ ├── Failure.php │ │ │ │ │ │ ├── ThrowNoExceptionTestCase.php │ │ │ │ │ │ ├── Struct.php │ │ │ │ │ │ ├── TestTestError.php │ │ │ │ │ │ ├── TestSkipped.php │ │ │ │ │ │ ├── TestIncomplete.php │ │ │ │ │ │ ├── IncompleteTest.php │ │ │ │ │ │ ├── WasRun.php │ │ │ │ │ │ ├── IniTest.php │ │ │ │ │ │ ├── OneTestCase.php │ │ │ │ │ │ ├── ThrowExceptionTestCase.php │ │ │ │ │ │ ├── CoverageNoneTest.php │ │ │ │ │ │ └── NotPublicTestCase.php │ │ │ │ │ ├── Regression │ │ │ │ │ │ ├── 684 │ │ │ │ │ │ │ └── Issue684Test.php │ │ │ │ │ │ ├── 783 │ │ │ │ │ │ │ ├── OneTest.php │ │ │ │ │ │ │ └── TwoTest.php │ │ │ │ │ │ └── GitHub │ │ │ │ │ │ │ ├── 74 │ │ │ │ │ │ │ └── NewException.php │ │ │ │ │ │ │ ├── 322 │ │ │ │ │ │ │ └── phpunit322.xml │ │ │ │ │ │ │ ├── 797 │ │ │ │ │ │ │ └── bootstrap797.php │ │ │ │ │ │ │ ├── 873 │ │ │ │ │ │ │ └── Issue873Test.php │ │ │ │ │ │ │ ├── 1216 │ │ │ │ │ │ │ ├── bootstrap1216.php │ │ │ │ │ │ │ ├── phpunit1216.xml │ │ │ │ │ │ │ └── Issue1216Test.php │ │ │ │ │ │ │ ├── 1265 │ │ │ │ │ │ │ ├── phpunit1265.xml │ │ │ │ │ │ │ └── Issue1265Test.php │ │ │ │ │ │ │ ├── 1330 │ │ │ │ │ │ │ ├── phpunit1330.xml │ │ │ │ │ │ │ └── Issue1330Test.php │ │ │ │ │ │ │ ├── 1351 │ │ │ │ │ │ │ └── ChildProcessClass1351.php │ │ │ │ │ │ │ ├── 1437 │ │ │ │ │ │ │ └── Issue1437Test.php │ │ │ │ │ │ │ └── 1570 │ │ │ │ │ │ │ └── Issue1570Test.php │ │ │ │ │ ├── Fail │ │ │ │ │ │ └── fail.phpt │ │ │ │ │ └── bootstrap.php │ │ │ │ ├── src │ │ │ │ │ └── Util │ │ │ │ │ │ └── PHP │ │ │ │ │ │ └── eval-stdin.php │ │ │ │ ├── .gitattributes │ │ │ │ └── build │ │ │ │ │ └── bin │ │ │ │ │ └── phpab │ │ │ ├── php-timer │ │ │ │ ├── .gitattributes │ │ │ │ └── .gitignore │ │ │ ├── php-code-coverage │ │ │ │ ├── .gitattributes │ │ │ │ ├── tests │ │ │ │ │ └── _files │ │ │ │ │ │ ├── CoveredFunction.php │ │ │ │ │ │ ├── source_without_ignore.php │ │ │ │ │ │ └── CoverageNoneTest.php │ │ │ │ ├── scripts │ │ │ │ │ └── auto_append.php │ │ │ │ └── .gitignore │ │ │ ├── php-file-iterator │ │ │ │ ├── .gitattributes │ │ │ │ └── .gitignore │ │ │ ├── php-text-template │ │ │ │ ├── .gitattributes │ │ │ │ └── .gitignore │ │ │ ├── php-token-stream │ │ │ │ ├── .gitattributes │ │ │ │ ├── tests │ │ │ │ │ ├── _fixture │ │ │ │ │ │ ├── issue19.php │ │ │ │ │ │ ├── classInNamespace.php │ │ │ │ │ │ ├── issue30.php │ │ │ │ │ │ ├── classInScopedNamespace.php │ │ │ │ │ │ ├── source2.php │ │ │ │ │ │ ├── classExtendsNamespacedClass.php │ │ │ │ │ │ ├── multipleNamespacesWithOneClassUsingBraces.php │ │ │ │ │ │ └── multipleNamespacesWithOneClassUsingNonBraceSyntax.php │ │ │ │ │ └── bootstrap.php │ │ │ │ └── .gitignore │ │ │ └── phpunit-mock-objects │ │ │ │ ├── .gitattributes │ │ │ │ ├── tests │ │ │ │ ├── _fixture │ │ │ │ │ ├── AnInterface.php │ │ │ │ │ ├── AnotherInterface.php │ │ │ │ │ ├── TraversableMockTestInterface.php │ │ │ │ │ ├── Bar.php │ │ │ │ │ ├── InterfaceWithStaticMethod.php │ │ │ │ │ ├── ClassWithStaticMethod.php │ │ │ │ │ ├── Foo.php │ │ │ │ │ ├── MockTestInterface.php │ │ │ │ │ ├── FunctionCallback.php │ │ │ │ │ └── SomeClass.php │ │ │ │ └── bootstrap.php │ │ │ │ ├── src │ │ │ │ └── Framework │ │ │ │ │ └── MockObject │ │ │ │ │ └── Generator │ │ │ │ │ ├── trait_class.tpl.dist │ │ │ │ │ ├── wsdl_method.tpl.dist │ │ │ │ │ ├── mocked_clone.tpl.dist │ │ │ │ │ ├── mocked_static_method.tpl.dist │ │ │ │ │ ├── unmocked_clone.tpl.dist │ │ │ │ │ └── wsdl_class.tpl.dist │ │ │ │ └── .gitignore │ │ ├── phpdocumentor │ │ │ └── reflection-docblock │ │ │ │ └── .gitignore │ │ ├── phpspec │ │ │ └── prophecy │ │ │ │ └── .gitignore │ │ ├── symfony │ │ │ └── yaml │ │ │ │ ├── .gitignore │ │ │ │ └── Tests │ │ │ │ └── Fixtures │ │ │ │ └── embededPhp.yml │ │ ├── doctrine │ │ │ └── instantiator │ │ │ │ └── .gitignore │ │ └── autoload.php │ ├── composer.json │ └── composer.phar ├── simple_composer │ ├── vendor │ │ ├── bin │ │ │ └── jp.php │ │ ├── mtdowling │ │ │ └── jmespath.php │ │ │ │ └── .gitignore │ │ ├── guzzlehttp │ │ │ ├── guzzle │ │ │ │ └── src │ │ │ │ │ ├── Exception │ │ │ │ │ ├── GuzzleException.php │ │ │ │ │ ├── TooManyRedirectsException.php │ │ │ │ │ ├── TransferException.php │ │ │ │ │ ├── ClientException.php │ │ │ │ │ ├── ServerException.php │ │ │ │ │ └── BadResponseException.php │ │ │ │ │ └── functions_include.php │ │ │ ├── promises │ │ │ │ ├── tests │ │ │ │ │ └── bootstrap.php │ │ │ │ ├── .gitignore │ │ │ │ ├── src │ │ │ │ │ ├── functions_include.php │ │ │ │ │ └── CancellationException.php │ │ │ │ └── Makefile │ │ │ └── psr7 │ │ │ │ ├── .gitignore │ │ │ │ ├── src │ │ │ │ └── functions_include.php │ │ │ │ └── tests │ │ │ │ └── bootstrap.php │ │ ├── aws │ │ │ └── aws-sdk-php │ │ │ │ └── src │ │ │ │ ├── Exception │ │ │ │ ├── CredentialsException.php │ │ │ │ ├── UnresolvedApiException.php │ │ │ │ ├── UnresolvedEndpointException.php │ │ │ │ └── UnresolvedSignatureException.php │ │ │ │ ├── Api │ │ │ │ └── Parser │ │ │ │ │ └── Exception │ │ │ │ │ └── ParserException.php │ │ │ │ ├── S3 │ │ │ │ └── Exception │ │ │ │ │ ├── PermanentRedirectException.php │ │ │ │ │ └── S3Exception.php │ │ │ │ ├── Ecs │ │ │ │ └── Exception │ │ │ │ │ └── EcsException.php │ │ │ │ ├── Efs │ │ │ │ └── Exception │ │ │ │ │ └── EfsException.php │ │ │ │ ├── data │ │ │ │ ├── sqs │ │ │ │ │ └── 2012-11-05 │ │ │ │ │ │ └── paginators-1.json.php │ │ │ │ └── cloudtrail │ │ │ │ │ └── 2013-11-01 │ │ │ │ │ └── paginators-1.json.php │ │ │ │ ├── Sts │ │ │ │ └── Exception │ │ │ │ │ └── StsException.php │ │ │ │ ├── CloudHsm │ │ │ │ └── Exception │ │ │ │ │ └── CloudHsmException.php │ │ │ │ ├── Ssm │ │ │ │ └── Exception │ │ │ │ │ └── SsmException.php │ │ │ │ ├── Support │ │ │ │ └── Exception │ │ │ │ │ └── SupportException.php │ │ │ │ ├── Iot │ │ │ │ └── Exception │ │ │ │ │ └── IotException.php │ │ │ │ ├── Lambda │ │ │ │ └── Exception │ │ │ │ │ └── LambdaException.php │ │ │ │ ├── Waf │ │ │ │ └── Exception │ │ │ │ │ └── WafException.php │ │ │ │ ├── Kms │ │ │ │ └── Exception │ │ │ │ │ └── KmsException.php │ │ │ │ ├── Ses │ │ │ │ └── Exception │ │ │ │ │ └── SesException.php │ │ │ │ ├── Sqs │ │ │ │ └── Exception │ │ │ │ │ └── SqsException.php │ │ │ │ ├── Emr │ │ │ │ └── Exception │ │ │ │ │ └── EmrException.php │ │ │ │ ├── Rds │ │ │ │ └── Exception │ │ │ │ │ └── RdsException.php │ │ │ │ ├── Sns │ │ │ │ └── Exception │ │ │ │ │ └── SnsException.php │ │ │ │ ├── Swf │ │ │ │ └── Exception │ │ │ │ │ └── SwfException.php │ │ │ │ ├── Acm │ │ │ │ └── Exception │ │ │ │ │ └── AcmException.php │ │ │ │ └── CodeDeploy │ │ │ │ └── Exception │ │ │ │ └── CodeDeployException.php │ │ ├── autoload.php │ │ └── composer │ │ │ ├── autoload_classmap.php │ │ │ └── autoload_namespaces.php │ ├── composer.phar │ └── composer.json ├── vagrant_php_server │ └── apache_php.sh ├── set_response_code │ └── set_response_code.php └── php_string_explode │ └── php_string_explode.php ├── heroku └── heroku_python_basic_app │ ├── Procfile │ ├── requirements.txt │ └── hello.py ├── nginx ├── ubuntu_nginx_php │ └── php_site │ │ └── index.php ├── ubuntu_nginx_php_env_variable │ └── php_site │ │ └── index.php ├── nginx_uwsgi_flask │ └── uwsgi_config.ini ├── nginx_uwsgi_flask_with_passed_variable │ ├── config │ │ ├── development.cfg │ │ └── production.cfg │ └── uwsgi_config.ini └── centos_nginx_php_ansible │ └── ansible │ └── files │ └── index.php ├── nodejs_command ├── hello_world │ ├── README.md │ └── hello_world.js ├── aws_api_command │ ├── README.md │ └── package.json └── nodejs_mediaconvert_createjob │ └── README.md ├── vagrant ├── provisioner_ansible_local │ └── ansible │ │ └── playbook.retry ├── provisioner_salt │ ├── salt │ │ ├── top.sls │ │ ├── salt-minion.conf │ │ └── global.sls │ └── README.md ├── basic_ubuntu │ ├── basic_ubuntu.sh │ └── Vagrantfile ├── basic_amazon_linux_2 │ └── shell_provision_script.sh ├── dual_provisioner │ ├── shared.sh │ ├── vagrant_only.sh │ └── Vagrantfile └── shell_provisioner_script_with_env_vars │ └── shell_provisioner_script_with_env_vars.sh ├── ansible ├── ansible_playbook_with_vars │ ├── playbooks │ │ ├── vars_test.retry │ │ └── appconfig.j2 │ ├── README.md │ └── Vagrantfile ├── ansible_playbook_for_loop │ └── ansible │ │ ├── initial_playbook.yml │ │ └── roles │ │ └── sample_vhost_configuration │ │ ├── templates │ │ └── vhost_configuration.j2 │ │ └── tasks │ │ └── main.yml ├── sample_playbook │ └── README.md ├── deploy_cloudformation_role │ └── playbooks │ │ └── roles │ │ └── manage_cloudformation │ │ └── vars │ │ └── main.yml ├── basic_ansible_playbook │ ├── Vagrantfile │ └── playbooks │ │ └── ntp.yml └── ansible_dry_run │ ├── playbooks │ └── sample_playbook.yaml │ └── Vagrantfile ├── envkey ├── node_envkey_app_precedence │ └── .env └── node_envkey_app │ └── envkey.js ├── phing └── phing_lint_task │ ├── echo_pass.php │ ├── files_set_01 │ ├── echo_01.php │ └── echo_02.php │ ├── files_set_02 │ ├── echo_01.php │ └── echo_02.php │ └── echo_fail.php ├── serverless_framework ├── serverless_with_global_var │ ├── config.dev.yml │ ├── config.prd.yml │ └── serverless.yml └── serverless_with_node_on_cron │ └── .gitignore ├── sidekiq └── README.md ├── travis ├── Dockerfile ├── .travis.yml └── README.md ├── nodejs ├── node_dotenv │ ├── .env │ └── dotenv.js ├── hello_world │ ├── hello_world.js │ └── README.md ├── node_jest_test │ ├── sum.js │ ├── sum.test.js │ └── README.md ├── node_wait_on_for_port │ └── package.json ├── node_ssh_tunnel │ └── vars.sh ├── basic_node_package │ └── index.js ├── node_docker_cpu_measures │ └── cpu_count.js ├── node_for_loop │ └── README.md ├── node_read_file │ ├── README.md │ └── node_read_file_sync.js ├── node_asynchronous_options │ ├── 1200px-Llama_lying_down.jpg │ ├── 2560px-Lama_glama_Laguna_Colorada_2.jpg │ ├── node_initial_file.js │ ├── test.html │ └── promise.js └── node_variable_interpolation_from_envvar │ └── node_variable_interpolation_from_envvar.js ├── aws ├── s3 │ ├── s3_vpc_endpoint_terraform │ │ ├── main.tf │ │ └── README.md │ └── s3_bucket_with_versioning │ │ ├── waffles.jpg │ │ └── output-example.png ├── ecr │ └── ecr_with_scan_and_sns_publish_and_filter │ │ └── README.md ├── codedeploy │ ├── codedeploy_agent_install_ubuntu_1510 │ │ └── aws_credentials │ └── basic_codedeploy_install │ │ └── files │ │ ├── index.html │ │ ├── scripts │ │ └── after_install.sh │ │ └── appspec.yml ├── cloudformation │ ├── serverless_function │ │ └── lambda │ │ │ └── hello_world.py │ ├── s3_endpoint_with_parameters_and_environment │ │ ├── dev01.json │ │ ├── prd01.json │ │ └── qa01.json │ ├── cloudformation_change_parameters │ │ └── parameters │ │ │ ├── us-west-2_2az.json │ │ │ └── us-west-2_3az.json │ ├── cloudformation_az_agnostic_one_file │ │ └── params │ │ │ ├── eu-west-1.json │ │ │ ├── sa-east-1.json │ │ │ ├── us-east-2.json │ │ │ ├── us-west-2.json │ │ │ ├── ap-south-1.json │ │ │ ├── eu-west-2.json │ │ │ ├── us-west-1.json │ │ │ ├── ap-northeast-1.json │ │ │ ├── ca-central-1.json │ │ │ ├── eu-central-1.json │ │ │ ├── us-east-1.json │ │ │ ├── ap-northeast-2.json │ │ │ ├── ap-southeast-1.json │ │ │ └── ap-southeast-2.json │ ├── s3_endpoint_with_parameters │ │ └── s3_endpoint_allowed_resources_parameters.json │ └── function_transform_include │ │ └── ubuntu_ami.yaml ├── amplify │ └── basic_amplify │ │ ├── index.html │ │ └── basic_amplify.yaml ├── elasticbeanstalk │ ├── elasticbeanstalk_with_cron │ │ ├── requirements.txt │ │ ├── .gitignore │ │ ├── crons │ │ │ └── eb_crons │ │ └── app.py │ └── elasticbeanstalk_deployment │ │ └── README.md ├── terraform │ └── guardduty │ │ └── guardduty_detector │ │ └── main.tf ├── elb │ └── elb_backend_selfsigned_cert │ │ └── apache_selfsigned_cert.sh ├── lambda │ └── lambda_with_ssm │ │ └── requirements.txt ├── eks │ └── eks_introduction │ │ └── application_definitions │ │ └── nginx_service.yaml ├── cloudfront │ └── cloudfront_redirect_all_index_s3 │ │ └── index.html ├── sts │ └── sts_basic_application │ │ └── Resources │ │ └── get_federation_token - Required Permissions.json ├── eventbridge │ └── basic_eventbus_and_sender │ │ └── basic_eventbus.yaml ├── awscli_tool │ └── snippets_autoscaling.md └── ecs │ └── ecs_task_with_secretsmanager │ └── parse_combined_secrets.js ├── apache2 └── apache2_basic_install │ └── apache2_basic_install.sh ├── grunt ├── grunt_compress_directory │ ├── directory_to_be_compressed │ │ ├── directory_1 │ │ │ └── file_1.txt │ │ └── directory_2 │ │ │ └── file_2.txt │ └── package.json ├── grunt_fail │ ├── Gruntfile.js │ └── package.json ├── grunt_arguments │ └── package.json ├── grunt_multitask │ └── package.json └── grunt_environment_variables │ └── package.json ├── fluentbit ├── fluentbit_with_s3_output_config │ └── fluentbit.env └── fluentbit_with_tag_setter_and_selector │ └── README.md ├── fluentd ├── basic_fluentd_use_centos_ansible │ └── ansible │ │ ├── playbook.yml │ │ └── roles │ │ └── fluentd │ │ ├── templates │ │ ├── config.d │ │ │ ├── match.d │ │ │ │ └── standard.conf │ │ │ └── source.d │ │ │ │ └── system_logs.conf │ │ └── td-agent.conf │ │ └── files │ │ └── td-agent └── basic_fluentd_install_centos │ └── basic_fluentd_install_centos.sh ├── tomcat └── webapp_with_routing │ └── WebContent │ ├── META-INF │ └── MANIFEST.MF │ └── WEB-INF │ └── lib │ └── servlet-api.jar ├── dot └── basic_dot_digraph │ └── basic_dot_digraph.dot ├── gitlab └── gitlab_runner_terraform │ ├── variables.tf │ └── README.md ├── logstash └── logstash_installed_via_ansible │ └── ansible │ ├── playbook.yml │ └── roles │ └── logstash_server │ └── files │ └── elasticsearch.repo ├── redis ├── redis_284 │ └── redis_284_basic_install.sh └── redis_insight_with_docker │ └── docker-compose.yaml ├── go ├── hello_world │ └── hello_world.go └── newrelic_api_connector │ └── go.mod ├── solr ├── solr_cloud │ ├── README.md │ └── zookeeper_instance.sh └── solr_single_instance_apt │ ├── solr_single_instance.sh │ └── README.md ├── aws-security-viz └── README.md ├── gatsby ├── src │ └── pages │ │ └── index.js └── gatsby-config.js ├── maven ├── maven_basic_project │ ├── artifact │ │ └── target │ │ │ ├── maven-status │ │ │ └── maven-compiler-plugin │ │ │ │ ├── compile │ │ │ │ └── default-compile │ │ │ │ │ ├── createdFiles.lst │ │ │ │ │ └── inputFiles.lst │ │ │ │ └── testCompile │ │ │ │ └── default-testCompile │ │ │ │ ├── createdFiles.lst │ │ │ │ └── inputFiles.lst │ │ │ ├── classes │ │ │ └── com │ │ │ │ └── cloudavail │ │ │ │ └── App.class │ │ │ ├── maven-archiver │ │ │ └── pom.properties │ │ │ └── test-classes │ │ │ └── com │ │ │ └── cloudavail │ │ │ └── AppTest.class │ ├── install_maven.sh │ └── Vagrantfile └── maven_bintray_deploy │ ├── install_maven.sh │ └── Vagrantfile ├── openvpn ├── openvpn_client_in_docker │ ├── openvpn_client_files │ │ └── .gitignore │ └── Dockerfile └── openvpn_community_edition_docker_amazon_linux_2 │ └── Dockerfile ├── ssh └── ssh_ProxyCommand │ └── Images │ ├── ssh Proxy with -t.png │ └── ssh Proxy without -t.png.png ├── swift ├── set_variable │ └── set_variable.playground │ │ ├── Contents.swift │ │ ├── timeline.xctimeline │ │ ├── contents.xcplayground │ │ ├── Sources │ │ └── SupportCode.swift │ │ └── playground.xcworkspace │ │ ├── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── contents.xcworkspacedata ├── basic_class │ └── basic_class.playground │ │ ├── Contents.swift │ │ ├── contents.xcplayground │ │ ├── Results.playgrounddata │ │ └── Sources │ │ └── SupportCode.swift ├── functions │ └── functions.playground │ │ ├── Results.playgrounddata │ │ ├── timeline.xctimeline │ │ ├── contents.xcplayground │ │ ├── Sources │ │ └── SupportCode.swift │ │ └── playground.xcworkspace │ │ ├── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── contents.xcworkspacedata ├── for_loops │ └── for_loops.playground │ │ ├── timeline.xctimeline │ │ ├── contents.xcplayground │ │ ├── Sources │ │ └── SupportCode.swift │ │ └── playground.xcworkspace │ │ ├── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ │ └── UserInterfaceState.xcuserstate │ │ └── contents.xcworkspacedata ├── variable_in_string │ └── variable_in_string.playground │ │ ├── Results.playgrounddata │ │ ├── timeline.xctimeline │ │ ├── Contents.swift │ │ ├── contents.xcplayground │ │ └── Sources │ │ └── SupportCode.swift ├── inheritance_basics │ └── inheritance_basics.playground │ │ ├── timeline.xctimeline │ │ ├── contents.xcplayground │ │ ├── Sources │ │ └── SupportCode.swift │ │ └── playground.xcworkspace │ │ └── contents.xcworkspacedata ├── arrays_and_dictionaries │ └── arrays_and_dictionaries.playground │ │ ├── timeline.xctimeline │ │ ├── Results.playgrounddata │ │ ├── contents.xcplayground │ │ └── Sources │ │ └── SupportCode.swift ├── BridgingHeader │ └── BridgingHeader.xcodeproj │ │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── bridge_header │ └── bridge_header.xcodeproj │ │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ └── UserInterfaceState.xcuserstate ├── bridging_header │ └── bridging_header.xcodeproj │ │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── Calculator │ └── Calculator │ └── Calculator.xcodeproj │ └── project.xcworkspace │ └── xcuserdata │ └── cjohnson.xcuserdatad │ └── UserInterfaceState.xcuserstate ├── apache_zookeeper └── apache_zookeeper_standalone │ └── zookeeper_instance.sh ├── packer ├── packer_ami_two_regions │ └── ami_two_regions_vars.json ├── windows_with_nodejs_and_iis │ ├── iisstart.htm │ └── nodejs_script_copy_file.js ├── base_windows_image_userdata_build │ └── packer_simple_config.ps1 └── packer_build_docker_image_with_ansible │ └── playbook.yml ├── vagrant_aws_flow ├── deploy │ └── deploy.sh ├── docs │ ├── build │ │ └── README.md │ └── deploy │ │ └── README.md └── html │ └── index.html ├── ant └── ant_echo_task │ ├── build.xml │ └── README.md ├── crashplan └── crashplan_client_ubuntu │ ├── README.md │ └── Vagrantfile ├── objective-c ├── hello-world.playground │ ├── Contents.swift │ ├── contents.xcplayground │ ├── Results.playgrounddata │ └── Sources │ │ └── SupportCode.swift ├── HelloWorld │ └── HelloWorld.xcodeproj │ │ └── project.xcworkspace │ │ ├── contents.xcworkspacedata │ │ └── xcuserdata │ │ └── cjohnson.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── SimpleMath │ └── SimpleMath.xcodeproj │ └── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ └── cjohnson.xcuserdatad │ └── UserInterfaceState.xcuserstate ├── postgres └── basic_postgres_install │ ├── basic_postgres_install.sh │ └── Vagrantfile ├── puppet ├── basic_erb_template │ └── mytemplate.erb └── if_scope_lookup_var_template │ └── mytemplate.erb ├── kubernetes ├── kubernetes_deploy │ └── config │ │ ├── namespaces │ │ └── dev.yaml │ │ └── deploy │ │ └── dev │ │ └── nginx_config_map.yaml ├── kubernetes_pod_with_secrets_as_file │ └── secrets.txt ├── kubernetes_basic_deployment │ └── README.md ├── kubernetes_pod_with_configmap │ └── configmap.yaml ├── kubernetes_env_var_from_config_map │ ├── configmap │ │ └── development.yaml │ └── pods │ │ └── nginx.yaml ├── kubernetes_pod_with_configmap_as_file │ └── configmap.yaml └── kubernetes_cronjob │ └── README.md ├── mysql └── basic_docker_mysql_container_with_database │ └── world.sql ├── yaml └── yaml_alias │ ├── README.md │ └── yaml_alias.yaml ├── vestacp └── basic_vestacp_install │ ├── install_script.sh │ └── README.md ├── centos ├── centos_systemd_enable │ ├── centos_systemd_enable.sh │ └── Vagrantfile └── centos_change_timezone │ └── Vagrantfile ├── java ├── springwebapp │ └── src │ │ └── main │ │ └── webapp │ │ └── WEB-INF │ │ └── helloWorld.jsp └── basic_heapdump_jmap │ └── ForLoop.java ├── nmap └── python-nmap-scanner │ └── README.md ├── microsoft └── windows_7 │ └── disable_windows_10_upgrade │ └── disable_windows_10_upgrade.reg ├── newrelic └── newrelic_php_agent_install │ └── ansible │ └── files │ └── index.php ├── sysdig └── read_file_with_docker │ └── README.md ├── webpack ├── basic_webpack_project │ ├── dist │ │ └── index.html │ └── webpack.config.js └── webpack_s3_publish │ └── dist │ └── index.html ├── make └── make_accept_cli_argument │ └── Makefile ├── javascript └── return_uri │ └── return_uri.html ├── haproxy └── haproxy_with_ssh │ └── backend.sh ├── audiowaveform ├── Dockerfile └── README.md ├── bash └── if_or_condition │ └── if_or_condition.sh ├── spark ├── pyspark_install │ └── pyspark_install.sh └── spark_install │ └── Vagrantfile ├── percona ├── percona_toolkit_install │ └── Vagrantfile └── pt-query-digest-example │ └── README.md ├── sequelize └── basic_sequelize_migration │ └── Vagrantfile ├── .gitignore ├── sumologic └── sumologic_docker_file │ └── README.md ├── debian └── debian_update_timezone │ └── Dockerfile ├── selenium ├── selenium_python_get_screenshot │ └── Vagrantfile └── selenium_python_chrome_headless │ └── Vagrantfile ├── sqoop └── basic_sqoop │ └── Vagrantfile ├── JMX-Starter └── ForLoop.java ├── grafana └── elasticsearch_logstash_latest_grafana │ └── data_sources │ └── elasticsearch.json ├── logdna └── logdna_fluentd_forwarder │ └── README.md └── postfix ├── basic_postfix_smtp_relay_aws_ses └── Vagrantfile └── basic_postfix_smtp_relay_config └── Vagrantfile /sam/sam-app/hello_world/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sam/sam-app/tests/unit/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /terraform/aws/aws_config/variables.tf: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /gradle/gradle_file_exists/test_file_exists.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hiera/hiera_test/common.yaml: -------------------------------------------------------------------------------- 1 | my_value: 'string' -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/lib/tasks/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sam/sam-app/hello_world/requirements.txt: -------------------------------------------------------------------------------- 1 | requests -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/mailers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/fixtures/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/helpers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/mailers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/log/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/tmp/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /python/django/basic_django_site/mysite/mysite/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/controllers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/test/integration/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/lib/assets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/lib/tasks/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/storage/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/vendor/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/docker_compose_basic/mysql/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM mysql 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/phpunit: -------------------------------------------------------------------------------- 1 | vendor/phpunit/phpunit/phpunit -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/vendor/assets/javascripts/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/vendor/assets/stylesheets/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/fixtures/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/helpers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/mailers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/models/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/system/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sam/sam-app-with-private-serverless-api/hello_world/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /sam/sam-app-with-private-serverless-api/tests/unit/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/supervisor_test/static/index.html: -------------------------------------------------------------------------------- 1 |

Hello World!

2 | -------------------------------------------------------------------------------- /heroku/heroku_python_basic_app/Procfile: -------------------------------------------------------------------------------- 1 | web: gunicorn hello:app 2 | -------------------------------------------------------------------------------- /nginx/ubuntu_nginx_php/php_site/index.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /nodejs_command/hello_world/README.md: -------------------------------------------------------------------------------- 1 | # Run 2 | `node hello_world.js` -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/bin/phpunit: -------------------------------------------------------------------------------- 1 | ../phpunit/phpunit/phpunit -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/.ruby-version: -------------------------------------------------------------------------------- 1 | ruby-2.5.1 -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/assets/images/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/models/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/controllers/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/fixtures/files/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/test/integration/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vagrant/provisioner_ansible_local/ansible/playbook.retry: -------------------------------------------------------------------------------- 1 | default 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/sebastian/version/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/bin/jp.php: -------------------------------------------------------------------------------- 1 | ../mtdowling/jmespath.php/bin/jp.php -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/controllers/concerns/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/public/apple-touch-icon.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vagrant/provisioner_salt/salt/top.sls: -------------------------------------------------------------------------------- 1 | base: 2 | '*': 3 | - global -------------------------------------------------------------------------------- /ansible/ansible_playbook_with_vars/playbooks/vars_test.retry: -------------------------------------------------------------------------------- 1 | testserver 2 | -------------------------------------------------------------------------------- /envkey/node_envkey_app_precedence/.env: -------------------------------------------------------------------------------- 1 | DB_PASSWORD="ReplacedBy.ENVFile" 2 | -------------------------------------------------------------------------------- /phing/phing_lint_task/echo_pass.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/bar.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/foo.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /python/Flask/get_config/config/production.cfg: -------------------------------------------------------------------------------- 1 | DATABASE = '192.168.2.4' 2 | -------------------------------------------------------------------------------- /python/urllib3/urllib3_simple_connection/requirements.txt: -------------------------------------------------------------------------------- 1 | urllib3==1.26.8 2 | -------------------------------------------------------------------------------- /sam/sam-app-with-private-serverless-api/hello_world/requirements.txt: -------------------------------------------------------------------------------- 1 | requests -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /sidekiq/README.md: -------------------------------------------------------------------------------- 1 | # This is how to run Sidekiq Service as a Systemd 2 | 3 | -------------------------------------------------------------------------------- /travis/Dockerfile: -------------------------------------------------------------------------------- 1 | from python:3.6 2 | CMD ["python", "-c", "print(12345)"] 3 | -------------------------------------------------------------------------------- /nodejs/node_dotenv/.env: -------------------------------------------------------------------------------- 1 | BASEBALL_TEAM="Dodgers" 2 | BASKETBALL_TEAM="Warriors" 3 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-timer/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/sebastian/version/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /python/Flask/get_config_from_env/config/production.cfg: -------------------------------------------------------------------------------- 1 | DATABASE = '192.168.2.4' 2 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/assets/javascripts/channels/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/public/apple-touch-icon-precomposed.png: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/docker_compose_basic/web/requirements.txt: -------------------------------------------------------------------------------- 1 | Flask==1.0 2 | mysql-connector==2.1.6 -------------------------------------------------------------------------------- /docker/docker_with_nginx_proxy_to_nodejs/static/index.html: -------------------------------------------------------------------------------- 1 |

Hello World!

2 | -------------------------------------------------------------------------------- /nodejs_command/aws_api_command/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | # Run 4 | node aws_api.js -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /python/unittest/unittest_multiple_modules/tests/__init__.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | -------------------------------------------------------------------------------- /nodejs_command/hello_world/hello_world.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log("Hello World!") -------------------------------------------------------------------------------- /phing/phing_lint_task/echo_fail.php: -------------------------------------------------------------------------------- 1 | $b 3 | echo "echo fail" 4 | ?> 5 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-code-coverage/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-file-iterator/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-text-template/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-token-stream/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/expectedFileFormat.txt: -------------------------------------------------------------------------------- 1 | FOO 2 | -------------------------------------------------------------------------------- /python/boto3/s3_bucket_without_ssl/file_transmitted_with_ssl.txt: -------------------------------------------------------------------------------- 1 | File transmitted with SSL. -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/views/layouts/mailer.text.erb: -------------------------------------------------------------------------------- 1 | <%= yield %> 2 | -------------------------------------------------------------------------------- /vagrant/basic_ubuntu/basic_ubuntu.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "Ubuntu Started" 4 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_with_vars/playbooks/appconfig.j2: -------------------------------------------------------------------------------- 1 | api_endpoint = {{ api_endpoint }} 2 | -------------------------------------------------------------------------------- /aws/s3/s3_vpc_endpoint_terraform/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-west-2" 3 | } 4 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpdocumentor/reflection-docblock/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | vendor 3 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpspec/prophecy/.gitignore: -------------------------------------------------------------------------------- 1 | *.tgz 2 | *.phar 3 | bin 4 | vendor 5 | -------------------------------------------------------------------------------- /python/boto3/s3_bucket_without_ssl/file_transmitted_without_ssl.txt: -------------------------------------------------------------------------------- 1 | File transmitted without SSL. -------------------------------------------------------------------------------- /apache2/apache2_basic_install/apache2_basic_install.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | apt-get -y install apache2 3 | -------------------------------------------------------------------------------- /aws/s3/s3_vpc_endpoint_terraform/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet provides a configuration -------------------------------------------------------------------------------- /docker/docker_with_nginx_gzip/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM nginx 2 | COPY nginx.conf /etc/nginx/conf.d/gzip.conf 3 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /nodejs/hello_world/hello_world.js: -------------------------------------------------------------------------------- 1 | // prints Hello World to Console 2 | console.log("Hello World!"); 3 | -------------------------------------------------------------------------------- /nodejs_command/nodejs_mediaconvert_createjob/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | # Run 4 | node aws_api.js -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/JsonData/simpleObject.json: -------------------------------------------------------------------------------- 1 | {"Mascott":"Tux"} -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/symfony/yaml/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | composer.lock 3 | phpunit.xml 4 | -------------------------------------------------------------------------------- /ruby/basic_rails_asset_pipeline/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /ruby/yaml_load_with_begin_rescue/valid_yaml_file.yaml: -------------------------------------------------------------------------------- 1 | first_key: 'Giants' 2 | second_key: 'Dodgers' 3 | -------------------------------------------------------------------------------- /fluentbit/fluentbit_with_s3_output_config/fluentbit.env: -------------------------------------------------------------------------------- 1 | AWS_ACCESS_KEY_ID= 2 | AWS_SECRET_ACCESS_KEY= 3 | -------------------------------------------------------------------------------- /nodejs/node_jest_test/sum.js: -------------------------------------------------------------------------------- 1 | function sum(a, b) { 2 | return a + b; 3 | } 4 | module.exports = sum; 5 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/symfony/yaml/Tests/Fixtures/embededPhp.yml: -------------------------------------------------------------------------------- 1 | value: 2 | -------------------------------------------------------------------------------- /ruby/yaml_load_with_begin_rescue/invalid_yaml_file.yaml: -------------------------------------------------------------------------------- 1 | first_key: 'Giants' 2 | []second_key:'Dodgers' 3 | -------------------------------------------------------------------------------- /terraform/aws/terraform_module_aws_rds/variables.tf: -------------------------------------------------------------------------------- 1 | variable "db_password" { 2 | type = string 3 | } 4 | -------------------------------------------------------------------------------- /terraform/terraform_with_workspaces/variables.tf: -------------------------------------------------------------------------------- 1 | variable "environment" { 2 | type = "string" 3 | } 4 | -------------------------------------------------------------------------------- /fluentd/basic_fluentd_use_centos_ansible/ansible/playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | roles: 4 | - fluentd -------------------------------------------------------------------------------- /nodejs/node_wait_on_for_port/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "wait-on": "^6.0.0" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/app/helpers/application_helper.rb: -------------------------------------------------------------------------------- 1 | module ApplicationHelper 2 | end 3 | -------------------------------------------------------------------------------- /terraform/aws/terraform_target_group/versions.tf: -------------------------------------------------------------------------------- 1 | 2 | terraform { 3 | required_version = ">= 0.12" 4 | } 5 | -------------------------------------------------------------------------------- /tomcat/webapp_with_routing/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!bin/bash 2 | nginx -g 'daemon off;' 3 | -------------------------------------------------------------------------------- /dot/basic_dot_digraph/basic_dot_digraph.dot: -------------------------------------------------------------------------------- 1 | digraph basic_digraph { 2 | a -> b; 3 | b -> c; 4 | b -> d; 5 | } -------------------------------------------------------------------------------- /php/phpunit_simple_test/composer.json: -------------------------------------------------------------------------------- 1 | { 2 | "require": { 3 | "phpunit/phpunit": "^4.8" 4 | } 5 | } 6 | -------------------------------------------------------------------------------- /php/vagrant_php_server/apache_php.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | apt-get -y install apache2 4 | apt-get -y install php5 5 | -------------------------------------------------------------------------------- /terraform/aws/terraform_ecs_with_parameter_store/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 0.12" 3 | } 4 | -------------------------------------------------------------------------------- /terraform/terraform_aws_tags_with_local_variable/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = "~>0.11" 3 | } 4 | -------------------------------------------------------------------------------- /vagrant/basic_amazon_linux_2/shell_provision_script.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | echo "Amazon Linux 2 Started" 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 | -------------------------------------------------------------------------------- /gitlab/gitlab_runner_terraform/variables.tf: -------------------------------------------------------------------------------- 1 | variable "gitlab_runner_registration_token" { 2 | type = "string" 3 | } 4 | -------------------------------------------------------------------------------- /logstash/logstash_installed_via_ansible/ansible/playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | roles: 4 | - logstash_server -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-token-stream/tests/_fixture/issue19.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.colors.true.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vagrant/provisioner_salt/salt/salt-minion.conf: -------------------------------------------------------------------------------- 1 | # tell the salt-minion to look for local state files 2 | file_client: local 3 | -------------------------------------------------------------------------------- /aws/codedeploy/codedeploy_agent_install_ubuntu_1510/aws_credentials: -------------------------------------------------------------------------------- 1 | [default] 2 | aws_access_key_id = 3 | aws_secret_access_key = 4 | -------------------------------------------------------------------------------- /docker/docker_exit_with_shell_entrypoint/nginx_shell_wrapper_exec_bash/entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!bin/bash 2 | exec nginx -g 'daemon off;' 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /nodejs/node_ssh_tunnel/vars.sh: -------------------------------------------------------------------------------- 1 | export DST_HOST='' 2 | export PRIVATE_KEY='' 3 | export SSH_HOST='' 4 | export SSH_USERNAME='' 5 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/composer.phar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/php/phpunit_simple_test/composer.phar -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-text-template/.gitignore: -------------------------------------------------------------------------------- 1 | /composer.lock 2 | /composer.phar 3 | /.idea 4 | /vendor 5 | 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/CoveredFunction.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/mtdowling/jmespath.php/.gitignore: -------------------------------------------------------------------------------- 1 | vendor 2 | composer.lock 3 | phpunit.xml 4 | compiled 5 | artifacts/ 6 | -------------------------------------------------------------------------------- /python/reportlab/basic_report/hello.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/python/reportlab/basic_report/hello.pdf -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /terraform/aws/rds_with_readreplicas/variables.tf: -------------------------------------------------------------------------------- 1 | variable "read_replica_count" { 2 | type = number 3 | default = 1 4 | } 5 | -------------------------------------------------------------------------------- /ansible/ansible_playbook_for_loop/ansible/initial_playbook.yml: -------------------------------------------------------------------------------- 1 | --- 2 | - hosts: all 3 | roles: 4 | - sample_vhost_configuration 5 | -------------------------------------------------------------------------------- /nginx/ubuntu_nginx_php_env_variable/php_site/index.php: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /nodejs/basic_node_package/index.js: -------------------------------------------------------------------------------- 1 | exports.printMsg = function() { 2 | console.log("This is a message from the demo package"); 3 | } 4 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/doctrine/instantiator/.gitignore: -------------------------------------------------------------------------------- 1 | phpunit.xml 2 | composer.lock 3 | build 4 | vendor 5 | coverage.clover 6 | -------------------------------------------------------------------------------- /python/jinja2/jinja2_using_file_template/my_templates/city_info_template.txt: -------------------------------------------------------------------------------- 1 | The city {{city_name}} was founded in {{city_founding_date}}. -------------------------------------------------------------------------------- /terraform/terraform_cloudwatch_metric_alarm/vars.tf: -------------------------------------------------------------------------------- 1 | variable "dimension_key_one" { 2 | default = "Name" 3 | type = "string" 4 | } -------------------------------------------------------------------------------- /ansible/sample_playbook/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | The `sample_playbook.yml` file describes the different components of an Ansible Playbook. 3 | -------------------------------------------------------------------------------- /aws-security-viz/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | Runs the AWS Security Visualization tool available at https://github.com/anaynayak/aws-security-viz. -------------------------------------------------------------------------------- /aws/s3/s3_bucket_with_versioning/waffles.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/aws/s3/s3_bucket_with_versioning/waffles.jpg -------------------------------------------------------------------------------- /gatsby/src/pages/index.js: -------------------------------------------------------------------------------- 1 | import React from "react" 2 | 3 | export default function Home() { 4 | return
Hello world!
5 | } 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-code-coverage/tests/_files/CoveredFunction.php: -------------------------------------------------------------------------------- 1 | ' . file_get_contents('php://input')); 4 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.colors.invalid.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/sebastian/environment/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /vendor 3 | /composer.lock 4 | /composer.phar 5 | /phpunit.xml 6 | -------------------------------------------------------------------------------- /python/quality_standards/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This document seeks to provide quality standards for freelance scripting projects. 4 | -------------------------------------------------------------------------------- /ruby/ruby_on_rails_hello_world/helloworld/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "helloworld", 3 | "private": true, 4 | "dependencies": {} 5 | } 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /terraform/terraform_state_mv/mv_to_another_configuration/target_configuration/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-west-2" 3 | } 4 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst: -------------------------------------------------------------------------------- 1 | com/cloudavail/App.class 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/.gitattributes: -------------------------------------------------------------------------------- 1 | *.php diff=php 2 | composer.json merge=ours 3 | src/Runner/Version.php merge=ours 4 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/DummyException.php: -------------------------------------------------------------------------------- 1 | { 4 | expect(sum(1, 2)).toBe(3); 5 | }); 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-code-coverage/tests/_files/source_without_ignore.php: -------------------------------------------------------------------------------- 1 | 7.0" 8 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /terraform/aws/terraform_ecs/templates/ecs_cluster_node.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash - 2 | 3 | cat > /etc/ecs/ecs.config < 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /aws/codedeploy/basic_codedeploy_install/files/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

CodeDeploy is Working

6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_multitask/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grunt_argument", 3 | "version": "0.0.1", 4 | "devDependencies": { 5 | "grunt": "^0.4.4" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /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/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/EmptyTestCaseTest.php: -------------------------------------------------------------------------------- 1 | 2 | My FQDN Hostname is: <%= @fqdn %> 3 | My Variable is: <%= scope.lookupvar('my_variable') %> -------------------------------------------------------------------------------- /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/sphinx/basic_sphinx/conf.rst: -------------------------------------------------------------------------------- 1 | conf module 2 | =========== 3 | 4 | .. automodule:: conf 5 | :members: 6 | :undoc-members: 7 | :show-inheritance: 8 | -------------------------------------------------------------------------------- /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/app/models/application_record.rb: -------------------------------------------------------------------------------- 1 | class ApplicationRecord < ActiveRecord::Base 2 | self.abstract_class = true 3 | end 4 | -------------------------------------------------------------------------------- /serverless_framework/serverless_with_node_on_cron/.gitignore: -------------------------------------------------------------------------------- 1 | # package directories 2 | node_modules 3 | jspm_packages 4 | 5 | # Serverless directories 6 | .serverless -------------------------------------------------------------------------------- /ssh/ssh_ProxyCommand/Images/ssh Proxy without -t.png.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/ssh/ssh_ProxyCommand/Images/ssh Proxy without -t.png.png -------------------------------------------------------------------------------- /terraform/aws/terraform_ecs_service_task_and_elbv2/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-west-2" 3 | } 4 | 5 | data "aws_availability_zones" "available" {} 6 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /kubernetes/kubernetes_deploy/config/namespaces/dev.yaml: -------------------------------------------------------------------------------- 1 | { 2 | "kind": "Namespace", 3 | "apiVersion": "v1", 4 | "metadata": { 5 | "name": "dev" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /mysql/basic_docker_mysql_container_with_database/world.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/mysql/basic_docker_mysql_container_with_database/world.sql -------------------------------------------------------------------------------- /objective-c/hello-world.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/objective-c/hello-world.playground/Results.playgrounddata -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/684/Issue684Test.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/swift/functions/functions.playground/Results.playgrounddata -------------------------------------------------------------------------------- /terraform/terraform_with_environments/vpc_modules/README.md: -------------------------------------------------------------------------------- 1 | # Build VPC in us-west-2 and us-east-1, with public/private/NAT subnets across all available AZs 2 | 3 | 1. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /nodejs/node_asynchronous_options/1200px-Llama_lying_down.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/nodejs/node_asynchronous_options/1200px-Llama_lying_down.jpg -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/tests/_fixture/AnInterface.php: -------------------------------------------------------------------------------- 1 | /etc/ecs/ecs.config < 2 | 3 | 4 | 5 |

My First Heading

6 |

My first paragraph.

7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 -------------------------------------------------------------------------------- /packer/windows_with_nodejs_and_iis/iisstart.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World! 4 | 5 | 6 |

Hello World!

7 | 8 | 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/build/bin/phpab: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/php/phpunit_simple_test/vendor/phpunit/phpunit/build/bin/phpab -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/bootstrap1216.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /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/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!" -------------------------------------------------------------------------------- /swift/basic_class/basic_class.playground/Results.playgrounddata: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/swift/basic_class/basic_class.playground/Results.playgrounddata -------------------------------------------------------------------------------- /terraform/aws/terraform_ecs_multicontainer_task/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 <> /var/log/eb_crons_test_file.log 3 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-file-iterator/.gitignore: -------------------------------------------------------------------------------- 1 | build/api 2 | build/code-browser 3 | build/coverage 4 | build/logs 5 | build/pdepend 6 | cache.properties 7 | phpunit.xml 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/AnotherInterface.php: -------------------------------------------------------------------------------- 1 | /etc/ecs/ecs.config < 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/ConcreteTest.php: -------------------------------------------------------------------------------- 1 | 2 | type file 3 | path /var/log/td-agent/all_fluentd_events.out 4 | 5 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/classes/com/cloudavail/App.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/maven/maven_basic_project/artifact/target/classes/com/cloudavail/App.class -------------------------------------------------------------------------------- /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/node_asynchronous_options/2560px-Lama_glama_Laguna_Colorada_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/nodejs/node_asynchronous_options/2560px-Lama_glama_Laguna_Colorada_2.jpg -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-token-stream/tests/_fixture/issue30.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /terraform/terraform_mysql_user_provision/main.tf: -------------------------------------------------------------------------------- 1 | # Configure the MySQL provider 2 | provider "mysql" { 3 | endpoint = "127.0.0.1:3306" 4 | username = "root" 5 | password = "my_password" 6 | } 7 | -------------------------------------------------------------------------------- /vagrant/shell_provisioner_script_with_env_vars/shell_provisioner_script_with_env_vars.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash - 2 | 3 | cat > /var/tmp/output_env_vars.txt < 2 | 3 | Hello World! 4 | 5 | 6 | Hello World!

'; ?> 7 | 8 | 9 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/configuration.custom-printer.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /microsoft/windows_7/disable_windows_10_upgrade/disable_windows_10_upgrade.reg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/microsoft/windows_7/disable_windows_10_upgrade/disable_windows_10_upgrade.reg -------------------------------------------------------------------------------- /newrelic/newrelic_php_agent_install/ansible/files/index.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hello World! 4 | 5 | 6 | Hello World!

'; ?> 7 | 8 | 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-token-stream/tests/_fixture/classInScopedNamespace.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-token-stream/tests/_fixture/source2.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /swift/variable_in_string/variable_in_string.playground/timeline.xctimeline: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | } -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /maven/maven_basic_project/artifact/target/test-classes/com/cloudavail/AppTest.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/maven/maven_basic_project/artifact/target/test-classes/com/cloudavail/AppTest.class -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/tests/_fixture/ClassWithStaticMethod.php: -------------------------------------------------------------------------------- 1 | /var/tmp/variables.txt <doSomethingElse(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/NoArgTestCaseTest.php: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /terraform/aws/terraform_ecs_with_parameter_store/parameter_store.tf: -------------------------------------------------------------------------------- 1 | resource "aws_ssm_parameter" "database_host" { 2 | name = "/test/ubuntu/db_host" 3 | type = "String" 4 | value = "db01-test.cloudavail.net" 5 | } 6 | -------------------------------------------------------------------------------- /terraform/terraform_state_mv/mv_within_configuration/main.tf: -------------------------------------------------------------------------------- 1 | provider "aws" { 2 | region = "us-west-2" 3 | } 4 | 5 | resource "aws_s3_bucket" "cloudavail_test_bucket_new" { 6 | bucket = "cloudavail-test-bucket" 7 | } 8 | -------------------------------------------------------------------------------- /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/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/us-west-1.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ParameterKey": "AZsSupportingSubnets", 4 | "ParameterValue": "us-west-1b, us-west-1c, unsupported, unsupported" 5 | } 6 | ] 7 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /nodejs/node_asynchronous_options/test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

Test HTML

6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/ClassWithScalarTypeDeclarations.php: -------------------------------------------------------------------------------- 1 | fail(); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/Inheritance/InheritanceB.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /webpack/webpack_s3_publish/dist/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Getting Started 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/tests/_fixture/MockTestInterface.php: -------------------------------------------------------------------------------- 1 | 2 | The value of the operatingsystem fact was Darwin. 3 | <% else %> 4 | The value of the operatingsystem fact was not Darwin. 5 | <% end %> -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /swift/for_loops/for_loops.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/Struct.php: -------------------------------------------------------------------------------- 1 | var = $var; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/guzzlehttp/psr7/.gitignore: -------------------------------------------------------------------------------- 1 | phpunit.xml 2 | composer.phar 3 | composer.lock 4 | composer-test.lock 5 | vendor/ 6 | build/artifacts/ 7 | artifacts/ 8 | docs/_build 9 | docs/*.pyc 10 | .idea 11 | .DS_STORE 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /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-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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/TestTestError.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /swift/variable_in_string/variable_in_string.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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```. -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /javascript/return_uri/return_uri.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/autoload.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 |

CloudFront Redirect Testing

6 | 7 |

CloudFront Redirect All to Index.html Testing HTML File.

8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/783/OneTest.php: -------------------------------------------------------------------------------- 1 | markTestSkipped('Skipped test'); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/guzzlehttp/promises/src/functions_include.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /terraform/terraform_with_pagerduty/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | This directory creates a pagerduty user, service and service policy. 3 | 4 | You can retrieve your API Key by: 5 | - clicking on your Profile 6 | - then "User Settings" 7 | - then "Create API User Token" -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-code-coverage/.gitignore: -------------------------------------------------------------------------------- 1 | build/api 2 | build/code-browser 3 | build/coverage 4 | build/logs 5 | build/pdepend 6 | cache.properties 7 | phpunit.xml 8 | /vendor 9 | /composer.lock 10 | /composer.phar 11 | /.idea 12 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/src/Framework/MockObject/Generator/mocked_clone.tpl.dist: -------------------------------------------------------------------------------- 1 | public function __clone() 2 | { 3 | $this->__phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); 4 | } 5 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1265/Issue1265Test.php: -------------------------------------------------------------------------------- 1 | assertTrue(true); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/aws/aws-sdk-php/src/Ecs/Exception/EcsException.php: -------------------------------------------------------------------------------- 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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php: -------------------------------------------------------------------------------- 1 | assertTrue(PHPUNIT_1330); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/TestIncomplete.php: -------------------------------------------------------------------------------- 1 | markTestIncomplete('Incomplete test'); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/aws/aws-sdk-php/src/data/sqs/2012-11-05/paginators-1.json.php: -------------------------------------------------------------------------------- 1 | [ 'ListQueues' => [ 'result_key' => 'QueueUrls', ], ],]; 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /swift/BridgingHeader/BridgingHeader.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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/bridge_header/bridge_header.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /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/WasRun.php: -------------------------------------------------------------------------------- 1 | wasRun = true; 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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. -------------------------------------------------------------------------------- /swift/bridging_header/bridging_header.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | } -------------------------------------------------------------------------------- /php/php_string_explode/php_string_explode.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/IniTest.php: -------------------------------------------------------------------------------- 1 | assertEquals('application/x-test', ini_get('default_mimetype')); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/aws/aws-sdk-php/src/Sts/Exception/StsException.php: -------------------------------------------------------------------------------- 1 | /etc/timezone 6 | 7 | -------------------------------------------------------------------------------- /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_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` -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/OneTestCase.php: -------------------------------------------------------------------------------- 1 | __phpunit_invocationMocker = clone $this->__phpunit_getInvocationMocker(); 4 | parent::__clone(); 5 | } 6 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/ThrowExceptionTestCase.php: -------------------------------------------------------------------------------- 1 | [ 'DescribeTrails' => [ 'result_key' => 'trailList', ], ],]; 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vagrant/provisioner_salt/salt/global.sls: -------------------------------------------------------------------------------- 1 | 'colin': 2 | user.present: 3 | - fullname: Colin Johnson 4 | # password evaluates to 'test' 5 | - password: '$6$7LwW/91Q$bACFDLfcXBL9UHttvN4nJnAK/Dp7kDi8DTBdfr/5P5FH2.mm8kjj5FowOUnpbCWm0Hb281citS5pPO6VjWdmJ0' 6 | - shell: /bin/bash 7 | -------------------------------------------------------------------------------- /vagrant_aws_flow/docs/build/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | This document describes how to create a tarball for uploading to S3 and 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 | `ant -f build/build.xml tar` -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/CoverageNoneTest.php: -------------------------------------------------------------------------------- 1 | publicMethod(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/_files/NotPublicTestCase.php: -------------------------------------------------------------------------------- 1 | e 5 | raise unless e.message.include?('spring') 6 | end 7 | require_relative '../config/boot' 8 | require 'rake' 9 | Rake.application.run 10 | -------------------------------------------------------------------------------- /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/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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /swift/for_loops/for_loops.playground/playground.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/swift/for_loops/for_loops.playground/playground.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /swift/functions/functions.playground/playground.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/swift/functions/functions.playground/playground.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /swift/inheritance_basics/inheritance_basics.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /terraform/aws/terraform_elbv2_listener_rule_multiple_values/README.md: -------------------------------------------------------------------------------- 1 | # Overview 2 | 3 | This snippet creates a listener rule with multiple host-headers. 4 | 5 | # Resolution 6 | 7 | We were awaiting resolution of issue https://github.com/terraform-providers/terraform-provider-aws/issues/8126. 8 | -------------------------------------------------------------------------------- /vagrant/provisioner_salt/README.md: -------------------------------------------------------------------------------- 1 | # Objective: 2 | 3 | Create a vagrant instance and use a masterless salt as a provisioner. 4 | 5 | # Getting Started 6 | 7 | 1. Create a vagrant instance by running ```vagrant up``` - this will take between 15 (if you have to download an Ubuntu ISO) to 5 minutes -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /objective-c/HelloWorld/HelloWorld.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/objective-c/HelloWorld/HelloWorld.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /objective-c/SimpleMath/SimpleMath.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/objective-c/SimpleMath/SimpleMath.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1437/Issue1437Test.php: -------------------------------------------------------------------------------- 1 | assertTrue(false); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/797/bootstrap797.php: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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_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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-code-coverage/tests/_files/CoverageNoneTest.php: -------------------------------------------------------------------------------- 1 | publicMethod(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/1216/phpunit1216.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Issue1216Test.php 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/873/Issue873Test.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/functions/functions.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /swift/set_variable/set_variable.playground/playground.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/swift/set_variable/set_variable.playground/playground.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/sebastian/diff/tests/fixtures/patch.txt: -------------------------------------------------------------------------------- 1 | diff --git a/Foo.php b/Foo.php 2 | index abcdefg..abcdefh 100644 3 | --- a/Foo.php 4 | +++ b/Foo.php 5 | @@ -20,4 +20,5 @@ class Foo 6 | const ONE = 1; 7 | const TWO = 2; 8 | + const THREE = 3; 9 | const FOUR = 4; 10 | -------------------------------------------------------------------------------- /php/simple_composer/vendor/aws/aws-sdk-php/src/Kms/Exception/KmsException.php: -------------------------------------------------------------------------------- 1 | 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 | -------------------------------------------------------------------------------- /swift/Calculator/Calculator/Calculator.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/swift/Calculator/Calculator/Calculator.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /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/bridging_header/bridging_header.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cloudavail/snippets/HEAD/swift/bridging_header/bridging_header.xcodeproj/project.xcworkspace/xcuserdata/cjohnson.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /vagrant/dual_provisioner/Vagrantfile: -------------------------------------------------------------------------------- 1 | vagrantfile_api_version = "2" 2 | 3 | Vagrant.configure(vagrantfile_api_version) do |config| 4 | 5 | config.vm.box = 'ubuntu/wily64' 6 | config.vm.provision "shell", path: "./vagrant_only.sh" 7 | config.vm.provision "shell", path: "./shared.sh" 8 | 9 | end 10 | -------------------------------------------------------------------------------- /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/` -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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`. -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/php-token-stream/tests/_fixture/multipleNamespacesWithOneClassUsingNonBraceSyntax.php: -------------------------------------------------------------------------------- 1 | assertTrue($_ENV['configAvailableInBootstrap']); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit/tests/Regression/GitHub/322/phpunit322.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Test.php 4 | 5 | 6 | 7 | 8 | one 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /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/vendor/aws/aws-sdk-php/src/Emr/Exception/EmrException.php: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /gradle/gradle_basics/build.gradle: -------------------------------------------------------------------------------- 1 | // objective: to provide a basic script allowing a Gradle task to be executed 2 | // to run: 3 | // run the following: 4 | // gradle TaskOne 5 | // expected output: 6 | // Task One was Called 7 | task TaskOne { 8 | doLast { 9 | println 'Task One was Called!' 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /php/phpunit_simple_test/vendor/phpunit/phpunit-mock-objects/tests/_fixture/SomeClass.php: -------------------------------------------------------------------------------- 1 |