download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
sudo -i | |
# Make sure the prerequisites are installed. | |
apt-get -y install autoconf automake curl build-essential libxslt1-dev re2c libxml2-dev | |
# Install PHP 5 dependencies. | |
apt-get -y build-dep php5 | |
# Download phpbrew | |
cd /usr/bin | |
curl -O https://raw.github.com/c9s/phpbrew/master/phpbrew | |
# Make phpbrew executable. | |
chmod +x phpbrew |
; | |
; Netatalk 3.x configuration file | |
; http://netatalk.sourceforge.net/3.0/htmldocs/afp.conf.5.html | |
; | |
[Global] | |
; Global server settings | |
vol preset = default_for_all_vol | |
log file = /var/log/netatalk.log | |
uam list = uams_dhx.so,uams_dhx2.so |
<?php | |
/** | |
* @link http://stackoverflow.com/questions/13865149/speeding-up-xml-schema-validations-of-a-batch-of-xml-files-against-the-same-xml | |
*/ | |
$mapping = [ | |
'http://www.w3.org/2002/08/xhtml/xhtml1-transitional.xsd' => 'schema/xhtml1-transitional.xsd', | |
'http://www.w3.org/2001/xml.xsd' => 'schema/xml.xsd', | |
]; |
[fredemmott@devbig076 ~/fbcode/hphp/test] ./run slow/autoload/trait.php | |
Running 1 tests in 1 threads (0 in serial) | |
All tests passed. | |
| | | | |
)_) )_) )_) | |
)___))___))___)\ | |
)____)____)_____)\ | |
_____|____|____|____\\__ | |
---------\ SHIP IT /--------- |
{ | |
"blocks":{ | |
"sales_order_grid":110, | |
"sales_order_view":67, | |
"html_head":55, | |
"comment":51, | |
"catalog_product_grid":38, | |
"product_view":34, | |
"onepage":32, | |
"onepage_payment_methods":30, |
download and install Solr from http://lucene.apache.org/solr/.
you can access Solr admin from your browser: http://localhost:8983/solr/
use the port number used in installation.
# Installation: | |
# Copy to ~/.config/fish/completions/magento.fish | |
# Open new or restart existing shell session | |
# Commands based on Magento 2.0.0-rc and the command | |
# bin/magento --raw --no-ansi list | |
# It is a static list since you probably do not have the magento shell script | |
# in your path. | |
complete -f -c magento -a --help; | |
complete -f -c magento -a -h; |
composer config repositories.alger/phpworld-talk2 vcs [email protected]:davidalger/phpworld-talk2.git | |
composer require alger/module-skeleton:dev-master | |
bin/magento setup:upgrade -q && bin/magento cache:flush -q | |
# OR | |
git clone [email protected]:davidalger/phpworld-talk2.git app/code/Alger/Skeleton | |
bin/magento module:enable Alger_Skeleton | |
bin/magento setup:upgrade -q && bin/magento cache:flush -q |
<?php | |
/** | |
* Enable sql profiling for each page. | |
* | |
* Put code to index file in two parts | |
*/ | |
// place it BEFORE application run | |
$profiler = \Magento\Framework\App\ObjectManager::getInstance() | |
->get('Magento\Framework\App\ResourceConnection') |