Skip to content

Instantly share code, notes, and snippets.

View innovaweb-dev's full-sized avatar

INNOVAWEB innovaweb-dev

View GitHub Profile
@innovaweb-dev
innovaweb-dev / demo.php
Last active September 19, 2017 15:08
It's possible of use a setter with a find. I will like replace content of field 'aboutMe' if it's empty.
object(Cake\ORM\Entity) {
'user_id' => (int) 1,
'username' => 'demo100',
'avatar' => false,
'password' => '1',
'email' => '1',
'token' => null,
'created' => null,
'modified' => null,
@innovaweb-dev
innovaweb-dev / Dockerfile
Created May 22, 2018 10:53 — forked from Tazeg/Dockerfile
Dockerfile for a dev web server with PHP/Apache
#-----------------------------------------------------------------------
# To create the docker image :
# cd <this file directory>
# docker build -t apache-php-dev .
#
# Start image :
# docker run -d -p 80:80 -v /home/user/public_html:/var/www/html apache-php-dev
#
# Open browser :
# http://localhost

1. Clone your fork:

git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git

2. Add remote from original repository in your forked repository:

cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream