Complete Guide / Isseus / Common Problems: https://github.com/Homebrew/homebrew-php
# Install PHP with PHP-FPM and excluding snmp
brew install -v homebrew/php/php56 --with-fpm --without-snmp
| FROM php:5.6-apache | |
| # Install gd, iconv, mbstring, mcrypt, mysql, soap, sockets, zip, and zlib extensions | |
| # see example at https://hub.docker.com/_/php/ | |
| RUN apt-get update && apt-get install -y \ | |
| libbz2-dev \ | |
| libfreetype6-dev \ | |
| libgd-dev \ | |
| libjpeg62-turbo-dev \ | |
| libmcrypt-dev \ |
| #!/bin/sh | |
| # chmod a+x development.sh | |
| # General functionality | |
| brew install git | |
| brew install openssl | |
| brew install node | |
| brew install npm | |
| brew install yarn | |
| brew install bat |
| #!/bin/sh | |
| # chmod a+x software.sh | |
| # Install Brew | |
| /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| brew tap homebrew/core | |
| brew tap homebrew/cask | |
| brew tap homebrew/cask-drivers |
| # EditorConfig is awesome: http://EditorConfig.org | |
| # top-most EditorConfig file | |
| root = true | |
| # All PHP files MUST use the Unix LF (linefeed) line ending. | |
| # Code MUST use an indent of 4 spaces, and MUST NOT use tabs for indenting. | |
| # All PHP files MUST end with a single blank line. | |
| # There MUST NOT be trailing whitespace at the end of non-blank lines. | |
| [*] |
| From d48811b478c59299eacce45c49f2d3bb25291151 Mon Sep 17 00:00:00 2001 | |
| From: Bas Mostert <bas@iweb.co.uk> | |
| Date: Thu, 13 Oct 2016 13:30:37 +0100 | |
| Subject: [PATCH] Fixed 1.9.3 search | |
| --- | |
| .../Mage/CatalogSearch/Model/Resource/Fulltext.php | 56 +++++++++++----------- | |
| .../Model/Resource/Fulltext/Collection.php | 3 +- | |
| 2 files changed, 30 insertions(+), 29 deletions(-) |
| # Backup | |
| docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
| # Restore | |
| cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
| <?php | |
| require_once 'abstract.php'; | |
| /** | |
| * Magento Dataflow Shell Script | |
| * | |
| * This file should be save in the shell directory of Magento | |
| * Basic usage samples: | |
| * php dataflow.php | |
| * php dataflow.php list |
| [mysqld] | |
| skip-innodb | |
| default-storage-engine=myisam | |
| default-tmp-storage-engine=myisam | |
| query_cache_size=0 | |
| max_connections=10 | |
| key_buffer_size=8 | |
| thread_cache_size=0 | |
| host_cache_size=0 | |
| thread_stack=131072 |
Complete Guide / Isseus / Common Problems: https://github.com/Homebrew/homebrew-php
# Install PHP with PHP-FPM and excluding snmp
brew install -v homebrew/php/php56 --with-fpm --without-snmp
| <?php | |
| $ftp = new League\Flysystem\Filesystem(new League\Flysystem\Adapter\Ftp($settings)); | |
| $local = new League\Flysystem\Filesystem(new League\Flysystem\Adapter\Local($path)); | |
| $local->write($destination, $ftp->read($source)); |