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
| <?php | |
| $database = 'dabase_name'; | |
| $username = 'user_name'; | |
| $password = 'user_password'; | |
| $hostname = 'database_host_name_or_ip'; | |
| $link = mysqli_connect("$hostname", "$username", "$password"); | |
| if (!$link) { |
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
| # GOOGLE CLOUD PROVIDER | |
| provider "google" { | |
| credentials = "${file("account.json")}" | |
| project = "${var.project_name}" | |
| region = "${var.project_region}" | |
| zone = "${var.project_zone}" | |
| } | |
| # FIREWALL WEB SERVER PORTS | |
| resource "google_compute_firewall" "web-server" { |
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
| "use strict"; | |
| const nodemailer = require("nodemailer"); | |
| // async..await is not allowed in global scope, must use a wrapper | |
| async function main(){ | |
| // Generate test SMTP service account from ethereal.email | |
| // Only needed if you don't have a real mail account for testing | |
| let testAccount = await nodemailer.createTestAccount(); |
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
| debug = false | |
| logLevel = "ERROR" | |
| defaultEntryPoints = ["http", "https"] | |
| [traefikLog] | |
| format = "json" | |
| [accessLog] | |
| format = "json" |
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
| ; Start a new pool named 'www'. | |
| ; the variable $pool can be used in any directive and will be replaced by the | |
| ; pool name ('www' here) | |
| [www] | |
| ; Per pool prefix | |
| ; It only applies on the following directives: | |
| ; - 'access.log' | |
| ; - 'slowlog' | |
| ; - 'listen' (unixsocket) |
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
| user www-data; | |
| worker_processes auto; | |
| error_log /dev/stdout info; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 2048; | |
| } |
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/bash | |
| ##--- By Daniel Ascencio <[email protected]> ---## | |
| COMPOSE_VERSION=$1 # 1.24.1 | |
| SYSTEM_USER=$2 | |
| PACKAGES="apt-transport-https ca-certificates curl gnupg-agent software-properties-common" | |
| DOCKER_GPG="https://download.docker.com/linux/ubuntu/gpg" | |
| DOCKER_URL="https://download.docker.com/linux/ubuntu" |