pecl channel-update pecl.php.net
pecl clear-cache
pecl install xdebug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modified version of https://github.com/megmage/chrome-export-passwords | |
// | |
// This script allows you to dump all of the passwords stored in your Chrome | |
// profile. I tested it with Chrome 56.0.2906.0 dev (64-bit) on Arch Linux and | |
// it worked quite well. | |
// | |
// Usage: | |
// | |
// - Navigate to chrome://settings-frame/passwords | |
// - Copy this code into a snippet in Chrome |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
DBUSER="root"; | |
DBPASS=""; | |
DBHOST="localhost"; | |
DB_OLD=mydatabase | |
DB_NEW=clone_mydatabase | |
DBCONN="--host=${DBHOST} --user=${DBUSER} --password=${DBPASS}"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Delete all cached images older than 365 days | |
find ~/public/media/catalog/product/cache/* -type f -atime +365 -exec rm {} \; | |
# Remove product images that are not present in the database | |
magerun media:images:removeorphans |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM sensson/magento2 | |
COPY src/cron /etc/cron.d/magento2 | |
COPY src/ /var/www/html/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.7" | |
services: | |
service1: | |
volumes: | |
- your-app-mutagen-service1:/var/app:nocopy | |
service2: | |
volumes: | |
- your-app-mutagen-service2:/var/app:nocopy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" | |
colors="true" | |
bootstrap="./framework/bootstrap.php" | |
> | |
<testsuites> | |
<testsuite name="Memory Usage Tests"> | |
<directory>../../../app/code/*/*/Test/Integration</directory> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
'db-host' => '172.21.0.1', | |
'db-user' => 'root', | |
'db-password' => 'root', | |
'db-name' => 'magento_integration_tests', | |
'db-prefix' => '', | |
'backend-frontname' => 'backend', | |
'admin-user' => \Magento\TestFramework\Bootstrap::ADMIN_NAME, | |
'admin-password' => \Magento\TestFramework\Bootstrap::ADMIN_PASSWORD, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Helper for determining system memory usage | |
* | |
* Uses OS tools to provide accurate information about factual memory consumption. | |
* The PHP standard functions may return incorrect information because the process itself may have leaks. | |
* | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ |