This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 443 ssl; | |
| access_log /var/log/nginx/access.log main; | |
| # Use a generic placeholder, not your real domain | |
| server_name example.com; | |
| # Replace with your real certificate paths (kept generic for sharing) | |
| ssl_certificate /etc/ssl/certs/fullchain.pem; | |
| ssl_certificate_key /etc/ssl/private/privkey.pem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AWS::ACM::Certificate | |
| AWS::ApiGateway::RestApi | |
| AWS::ApiGateway::Stage | |
| AWS::ApiGatewayV2::Api | |
| AWS::ApiGatewayV2::Stage | |
| AWS::AutoScaling::AutoScalingGroup | |
| AWS::AutoScaling::LaunchConfiguration | |
| AWS::AutoScaling::ScalingPolicy | |
| AWS::AutoScaling::ScheduledAction | |
| AWS::CloudFormation::Stack |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ##AWS::ApiGateway::Method Dependency | |
| AWS::ACMPCA::Certificate | |
| AWS::ACMPCA::Certificate Validity | |
| AWS::ACMPCA::CertificateAuthority | |
| AWS::ACMPCA::CertificateAuthority CrlConfiguration | |
| AWS::ACMPCA::CertificateAuthority RevocationConfiguration | |
| AWS::ACMPCA::CertificateAuthority Subject | |
| AWS::ACMPCA::CertificateAuthorityActivation | |
| AWS::AccessAnalyzer::Analyzer | |
| AWS::AccessAnalyzer::Analyzer ArchiveRule |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| policies: | |
| - name: ec2-tag-policy | |
| resource: aws.ec2 | |
| filters: | |
| - or: | |
| - "tag:Project": absent | |
| - "tag:Team": absent |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: node_exporter | |
| # Required-Start: $remote_fs | |
| # Required-Stop: $remote_fs | |
| # Should-Start: $all | |
| # Should-Stop: $all | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # remove previous installed package | |
| sudo apt-get remove --purge ansible | |
| # install pip | |
| wget https://bootstrap.pypa.io/get-pip.py && python get-pip.py --user | |
| # install ansible | |
| pip install ansible==2.5.0 --user | |
| # update PATH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sudo curl -L https://toolbelt.treasuredata.com/sh/install-ubuntu-xenial-td-agent2.sh | sh config | |
| sudo /usr/sbin/td-agent-gem install fluent-plugin-kv-parser | |
| (edit config file, do backup first) | |
| sudo cp /etc/td-agent/td-agent.conf /etc/td-agent/td-agent.conf.backup | |
| echo " | |
| <source> | |
| @type tcp | |
| tag kv_log # required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # MongoDB backup script | |
| # This script is licensed under GNU GPL version 2.0 or above | |
| # It makes a folder under BACKUP folder and compress it into .tar.gz.file | |
| # Using another script we will remove older backups later | |
| # --------------------------------------------------------------------- | |
| ### System Setup ### | |
| BACKUP="" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
| VAGRANTFILE_API_VERSION = "2" | |
| cluster = { | |
| "node1" => { :ip => "192.168.33.50", :cpus => 1, :mem => 1024 }, | |
| "node2" => { :ip => "192.168.33.51", :cpus => 1, :mem => 1024 }, | |
| "node3" => { :ip => "192.168.33.52", :cpus => 1, :mem => 1024 }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| backend default { | |
| .host = ""; | |
| .port = "80"; | |
| .connect_timeout = 300s; | |
| .first_byte_timeout = 600s; | |
| .between_bytes_timeout = 300s; | |
| .max_connections = 512; | |
| } | |
| acl purge { |
NewerOlder