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
public function statement() { | |
$totalAmount = 0; | |
$frequentRenterPoints = 0; | |
$rentals = $this->_rentals; | |
$result = "Rental Record for " . $this->getName() . "\n"; | |
foreach($rentals as $each) { | |
$thisAmount = 0; |
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
http://www.agiratech.com/agile-project-workflow-involving-github/ | |
https://twitter.com/alejandropgarci/status/948947544528351238 (trunk based) | |
https://mrdevops.io/if-you-still-insist-on-feature-branching-you-are-hurting-your-business-and-our-profession-32e1109d4594 | |
https://mrdevops.io/trunk-based-development-8376fe577c11 | |
https://twitter.com/borillo/status/949322212904980480 | |
https://hackernoon.com/how-to-get-continuous-integration-right-77bda4bc0d1f | |
http://www.javacodegeeks.com/2015/11/git-branching | |
https://gist.github.com/jbenet/ee6c9ac48068889b0912 | |
http://dymitruk.com/blog/2012/02/05/branch-per-feature/ | |
http://www.nomachetejuggling.com/2017/04/09/a-different-branching-strategy |
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
.PHONY: help | |
help: ## Print this help. | |
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' | |
build: ## Build a dockerimage | |
docker build -t my-php . | |
install: ## install dependencies with "composer install" | |
docker run --rm -it -v $(shell pwd):/opt/project my-php composer install | |
composer: ## run a composer command with an argument arg | |
docker run --rm -it -v $(shell pwd):/opt/project my-php composer $(arg) |
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
FROM phpstorm/php-71-cli-xdebug | |
MAINTAINER Jesus Lopez <jeslopcru@gmail.com> | |
# Composer and dependencies | |
RUN apt-get update && \ | |
apt-get install git unzip -y | |
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ | |
php composer-setup.php && \ | |
php -r "unlink('composer-setup.php');" && \ |
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
# Set variables in .zshrc file | |
# don't forget to change your path correctly! | |
export GOPATH=$HOME/golang | |
export GOROOT=/usr/local/opt/go/libexec | |
export PATH=$PATH:$GOPATH/bin | |
export PATH=$PATH:$GOROOT/bin | |
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
## You need clone the repository | |
$ git clone https://github.com/varnish/Varnish-Book | |
$ cd Varnish-Book | |
## copy the Dockerfile in the directory | |
wget https://gist.githubusercontent.com/jeslopcru/27348339a4e8fdd2551f2ee9b0bd1ef7/raw/8af8149b6c467a2840d0c868e317c8d34849a461/Dockerfile | |
## Create a directory for build the book | |
$ mkdir build |
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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by libvmod-curl configure 0.2, which was | |
generated by GNU Autoconf 2.68. Invocation command line was | |
$ ./configure VARNISHRC=/home/jesuslc/programas/Varnish-Cache | |
## --------- ## | |
## Platform. ## |
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
current_dir = File.dirname(__FILE__) | |
log_level :debug | |
log_location $stdout | |
node_name "jesuslc-admin" | |
client_key "#{File.dirname(current_dir)}/jesuslc-admin.pem" | |
chef_server_url "http://localhost:4000" | |
cache_type 'Memory' | |
cache_options( :path => "#{ENV['HOME']}/.chef/checksums" ) | |
cookbook_path ["#{current_dir}/../cookbooks","#{current_dir}/../site-cookbooks"] |