Skip to content

Instantly share code, notes, and snippets.

View jeslopcru's full-sized avatar
🏠
Working from home

Jesus Lopez de la Cruz jeslopcru

🏠
Working from home
View GitHub Profile
public function statement() {
$totalAmount = 0;
$frequentRenterPoints = 0;
$rentals = $this->_rentals;
$result = "Rental Record for " . $this->getName() . "\n";
foreach($rentals as $each) {
$thisAmount = 0;
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
@jeslopcru
jeslopcru / Makefile
Last active July 22, 2022 21:10
simple makefile for katas
.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)
@jeslopcru
jeslopcru / Dockerfile
Last active April 21, 2018 07:56
dockerfiles for katas
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');" && \
@jeslopcru
jeslopcru / .zshrc
Last active January 14, 2017 08:36
Install go in Mac using: https://golang.org/doc/install
# 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
@jeslopcru
jeslopcru / Commands need run
Last active December 4, 2016 08:54
Dockerfile for build "Varnish Tutorial and training material" https://github.com/varnish/Varnish-Book
## 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
@jeslopcru
jeslopcru / config.out
Last active August 29, 2015 14:06
libvmod-curl -> config-out
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. ##
@jeslopcru
jeslopcru / knife.rb
Last active January 4, 2016 12:38
knife configuration to use chef in windows
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"]