$ curl -fsSL https://raw.github.com/tcnksm/docker-alias/master/zshrc >> ~/.bashrc && source ~/.bashrc
# ------------------------------------
#!/usr/bin/env sh | |
case "$XDEBUG_ENABLED" in | |
'') | |
XDEBUG_ENABLED=0;; | |
0|1) | |
;; | |
*) | |
>&2 printf 'value for XDEBUG_ENABLED is not allowed. Set it to 0 to' | |
>&2 printf ' disable or 1 to enable xdebug.\n' |
--- docker-compose.yml (date 1539952509000) | |
+++ docker-compose.yml (date 1539952509000) | |
@@ -6,7 +6,10 @@ | |
services: | |
slim: | |
- image: php:7-alpine | |
+ build: | |
+ context: docker/php | |
+ dockerfile: Dockerfile |
FROM php:7-alpine | |
RUN set -xe \ | |
&& apk add --no-cache --virtual .build-deps \ | |
$PHPIZE_DEPS \ | |
&& pecl install xdebug \ | |
&& docker-php-ext-enable --ini-name 90-xdebug.ini xdebug |
#!/bin/sh | |
# | |
# Run the hook command. | |
# Note: this will be replaced by the real command during copy. | |
# | |
CONTAINER="php" | |
ROOT_DIR="/var/www/app" | |
GIT_USER=$(git config user.name) | |
GIT_EMAIL=$(git config user.email) |
Remove osxfuse if installed via homebrew: | |
> brew uninstall osxfuse | |
Install osxfuse binary and choose to install the MacFUSE compatibility layer: | |
http://sourceforge.net/projects/osxfuse/files/latest/download?source=files | |
Reboot (optional but recommended by osxfuse) | |
Install ntfs-3g via homebrew: | |
> brew update && brew install ntfs-3g |
# Add git branch if its present to PS1 | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
if [ "$color_prompt" = yes ]; then | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[01;31m\]$(parse_git_branch)\[\033[00m\]\$ ' | |
else | |
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w$(parse_git_branch)\$ ' | |
fi | |
unset color_prompt force_color_prompt |
#!/bin/bash | |
# Configuration de base: datestamp e.g. YYYYMMDD | |
DATE=$(date +"%Y%m%d") | |
# Dossier où sauvegarder les backups (créez le d'abord!) | |
BACKUP_DIR="/backup/mysql" |
<?php | |
namespace AppBundle\Menu; | |
use Knp\Menu\FactoryInterface; | |
class Builder | |
{ | |
/** | |
* @var FactoryInterface |