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
docker run -it \ | |
-w=/root/docker_test_volume \ | |
--name=svg_to_ascii \ | |
-v=$HOME/projects/docker_test_volume/:/root/docker_test_volume \ | |
alpine \ | |
sh |
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
ls | parallel git -C {} fetch -p -a && git pull |
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/magento i18n:collect-phrases -m > phrases.csv |
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. | |
*/ |
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
<?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
find . -type f -name "*.mkv" -exec sh -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \; |
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
docker run -it --name <name> -v $(pwd):/home alpine sh |
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
composer require --dev mage2tv/magento-cache-clean | |
Cache Watch | |
vendor/bin/cache-clean.js --watch | |
Cache Clean Single | |
vendor/bin/cache-clean.js config full_page | |
Cache Help | |
vendor/bin/cache-clean.js --help |
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
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
sudo apt-get install git-lfs | |
git lfs install |
NewerOlder