Skip to content

Instantly share code, notes, and snippets.

View alceanicu's full-sized avatar
🌍
(ʘ‿ʘ)╯

Nicolae Alcea alceanicu

🌍
(ʘ‿ʘ)╯
View GitHub Profile
@alceanicu
alceanicu / README.md
Created October 31, 2018 20:37 — forked from chadrien/README.md
Debug PHP in Docker with PHPStorm and Xdebug

Debug your PHP in Docker with Intellij/PHPStorm and Xdebug

  1. For your local dev, create a Dockerfile that is based on your production image and simply install xdebug into it. Exemple:
FROM php:5

RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
<?php
trait TArrayHelper
{
/**
* @param array $array
* @return array
*/
public function sortArrayByStringLengthAsc(array $array)
@alceanicu
alceanicu / initGit.sh
Last active July 4, 2017 13:00
Basic git comands
# START BRANCH LOCAL
git checkout master
# actualizare branch master local de pe serverul de git
git pull origin master
# creeare branch cu numele tichetului
git checkout -b \# ICHET_ID
# WORK ON
git add .
git commit -m "Mesaj commit"