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
| #!/usr/bin/env bash | |
| # config | |
| UBUNTU_VERSION=$(lsb_release -cs) | |
| DOCKER_COMPOSE_VERSION="1.13.0" | |
| # update and install some required packages | |
| apt-get update && apt-get upgrade -y && apt-get install -y apt-transport-https ca-certificates curl software-properties-common | |
| # add Docker's official GPG key |
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 | |
| # config | |
| dbhost='********' | |
| dbuser='********' | |
| dbpass='********' | |
| dbname='********' | |
| webroot='/var/www/html' | |
| s3bucket='********' | |
| webhook='https://hooks.slack.com/services/*********/*********/************************' |
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 | |
| # post message to Slack (see: https://api.slack.com/incoming-webhooks) | |
| slack () { | |
| webhook='https://hooks.slack.com/services/*********/*********/************************' | |
| if [ -z "${1}" ]; then | |
| code=0 | |
| fi | |
| curl -X POST --data-urlencode "payload={\"text\": \"\`\`\`${message}\`\`\`\"}" "${webhook}" | |
| exit ${code} |
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
| # Example NGINX Server Block to rewrite all domains to a single valid domain | |
| # | |
| # Note: Requires an additional NGINX Server Block for the valid domain | |
| # | |
| # Author: Trevor Smith <djtrevorsmith@gmail.com> | |
| # http://teej.ca | |
| # | |
| # Software: PHP 5.5.9 | |
| # NGINX 1.4.6 | |
| # Phalcon 1.3.4 |
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
| # Example NGINX PHP Phalcon Server Block | |
| # | |
| # Author: Trevor Smith <djtrevorsmith@gmail.com> | |
| # http://teej.ca | |
| # | |
| # Software: PHP 5.5.9 | |
| # NGINX 1.4.6 | |
| # Phalcon 1.3.4 | |
| server { | |
| listen 80; |