Skip to content

Instantly share code, notes, and snippets.

View dragol7's full-sized avatar

Dragoljub Bogicevic dragol7

View GitHub Profile
@dragol7
dragol7 / provision-loadbalancer.sh
Created September 3, 2017 10:57
Set up for nginx loadbalancer
#!/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 {
@dragol7
dragol7 / .php_cs.dist
Created May 11, 2017 09:05
.php_cs.dist file example
<?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,
@dragol7
dragol7 / circle.yml
Created May 2, 2017 15:48
circle.yml file example
deployment:
dockerhub:
branch: master
commands:
- $DOCKER_HUB_TRIGGER
machine:
php:
version: "7.0.11"
@dragol7
dragol7 / .travis.yml
Created May 1, 2017 20:49
.travis.yml file example
language: php
php:
- '5.6'
- '7.0'
- '7.1'
before_script: composer install
script: vendor/bin/phpunit
# notifications:
# webhooks: http://example.com
@dragol7
dragol7 / .bashrc
Last active April 30, 2018 12:33
.bashrc file example
# =============================================================== #
#
# By Dragoljub Bogicevic [d.bogicevic7@gmail.com]
#
# Last modified: Sun Apr 30 11:37:47 CET 2018
#
# 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.
#
@dragol7
dragol7 / .editorconfig
Last active May 11, 2017 11:05
.editorconfig file example
# top-most .editconfig file
root = true
[*.php]
# set default charset
charset = utf-8
# 4 space indentation
indent_style = space