This file contains 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
# =============================================================== # | |
# | |
# By Dragoljub Bogicevic [dragoljub-bogicevic@devtechgroup.com] | |
# | |
# Last modified: Sun Apr 23 21:46:47 CET 2017 | |
# | |
# This file is normally read by interactive shells only. | |
# Here is the place to define your aliases, functions and | |
# other interactive features like your prompt. | |
# |
This file contains 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
# top-most .editconfig file | |
root = true | |
[*.php] | |
# set default charset | |
charset = utf-8 | |
# 4 space indentation | |
indent_style = space |
This file contains 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
language: php | |
php: | |
- '5.6' | |
- '7.0' | |
- '7.1' | |
before_script: composer install | |
script: vendor/bin/phpunit | |
# notifications: | |
# webhooks: http://example.com |
This file contains 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
deployment: | |
dockerhub: | |
branch: master | |
commands: | |
- $DOCKER_HUB_TRIGGER | |
machine: | |
php: | |
version: "7.0.11" |
This file contains 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 | |
return PhpCsFixer\Config::create() | |
->setRules([ | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true], | |
'blank_line_after_namespace' => true, | |
'braces' => true, | |
'class_definition' => true, | |
'elseif' => true, | |
'encoding' => true, |
This file contains 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 | |
echo 'Starting Provision: loadbalancer' | |
sudo apt-get update | |
sudo apt-get install -y nginx | |
sudo service nginx stop | |
sudo rm -rf /etc/nginx/sites-available/default | |
sudo rm -rf /etc/nginx/sites-enabled/default | |
sudo touch /etc/nginx/sites-enabled/default | |
echo "upstream backend { |
This file contains 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 | |
echo "Starting Provision: web server $1" | |
sudo apt-get update | |
sudo apt-get install -y nginx | |
sudo service nginx stop | |
sudo mkdir -p /var/www/html | |
sudo touch /var/www/html/index.html |
This file contains 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 : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure("2") do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
This file contains 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 | |
echo 'Starting Provision: reverse proxy' | |
sudo apt-get update | |
sudo apt-get install -y nginx | |
sudo service nginx stop | |
sudo mkdir -p /var/www/html | |
sudo touch /var/www/html/index.html | |
echo '<html><body><a href="http://proxy.dev/app1">APP1</a><br><br> |
This file contains 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] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
OlderNewer