Skip to content

Instantly share code, notes, and snippets.

View aliuosio's full-sized avatar
🤝
Ready for new Magento 1&2 Freelance Projects

Osiozekhai Aliu aliuosio

🤝
Ready for new Magento 1&2 Freelance Projects
  • Hamburg, Germany
  • 14:13 (UTC -12:00)
View GitHub Profile
@aliuosio
aliuosio / docker-image-create.gist
Created September 14, 2021 13:02
docker run with volume name and workdir
docker run -it \
-w=/root/docker_test_volume \
--name=svg_to_ascii \
-v=$HOME/projects/docker_test_volume/:/root/docker_test_volume \
alpine \
sh
@aliuosio
aliuosio / all-repos-fetch.gist
Last active September 3, 2021 11:27
loop all subfolders and update the sources
ls | parallel git -C {} fetch -p -a && git pull
@aliuosio
aliuosio / collect-phrases
Created January 5, 2021 09:56
Collect Phrases needed to translate to other language versions
bin/magento i18n:collect-phrases -m > phrases.csv
@aliuosio
aliuosio / Memory.php
Created June 1, 2020 17:38
Alpine Overide Memory.php
<?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.
*/
@aliuosio
aliuosio / install-config-mysql.php
Last active May 28, 2020 07:03
Magento 2 Integration Test DB Connect
<?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,
@aliuosio
aliuosio / phpunit.xml
Last active May 28, 2020 07:03
Magento 2 Integration Test Config
<?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>
find . -type f -name "*.mkv" -exec sh -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \;
@aliuosio
aliuosio / docker-with-volume
Last active August 17, 2019 13:14
jump into alpine container with volume mount
docker run -it --name <name> -v $(pwd):/home alpine sh
@aliuosio
aliuosio / magento-cache-clean
Created October 26, 2018 10:08
magento-cache-clean
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
@aliuosio
aliuosio / docker-debian.txt
Last active October 5, 2018 11:34
docker-debian
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install