- Install Docker Desktop.
- Open a Terminal (Windows / Mac / Linux) and maximise it to the full size of your screen.
-
$ docker run --rm -it bcbcarl/hollywood
- To exit: Try mashing
Ctrl-D
andCtrl-C
. If you get to a terminal you can typeexit
to close the container.If this fails, just quit your terminal. 😁
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
SECURITY & VALIDATION CHANGES: | |
1. app/code/Magento/Customer/Controller/Account/EditPost.php | |
- Removed file attribute deletion functionality for security | |
2. app/code/Magento/Config/Plugin/Model/Config/Backend/LocalePlugin.php | |
- Added new plugin to validate currency code values | |
3. app/code/Magento/Directory/Model/Config/Backend/WeightUnit.php | |
- Added new backend model to validate weight unit values |
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
Built on Docker with php:8.3.2-fpm-bullseye as a base image | |
Prerequisites installed: libmagickwand-dev, libmagickwand-6.q16-6 | |
FYI: Same dependencies work properly on PHP 8.2.10 | |
----- | |
326.0 downloading imagick-3.7.0.tgz ... | |
326.0 Starting to download imagick-3.7.0.tgz (360,138 bytes) | |
326.0 .........................................................................done: 360,138 bytes |
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
# magento 2 disable unused modules | |
bin/magento module:disable Vertex_AddressValidation | |
bin/magento module:disable Vertex_AddressValidationApi | |
bin/magento module:disable Vertex_Tax | |
bin/magento module:disable Temando_ShippingRemover | |
bin/magento module:disable Dotdigitalgroup_Chat | |
bin/magento module:disable Dotdigitalgroup_Email |
You only need Docker installed. Add to ~/.zshrc
, or ~/.bashrc
, or whatever you're using;
lh() {
mkdir -p lighthouse && \
docker run --rm -it -v "$PWD":/usr/src -w /usr/src markhobson/node-chrome /bin/bash -c "npm i -g lighthouse && lighthouse --enable-error-reporting --chrome-flags=\"--headless --no-sandbox\" $1 --output html --output-path ./lighthouse/index.html" && \
open lighthouse/index.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
# user ID = 99 (if the ID is longer, adapat the s:2 part to the length | |
select FROM_UNIXTIME(session_expires), FROM_BASE64(session_data) as sd | |
from session | |
having sd like "%customer_id"";s:2:""99""%" | |
order by session_expires desc; |
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 | |
declare(strict_types=1); | |
namespace Vendor\Module\Service; | |
use Magento\Framework\App\Area as AppArea; | |
use Magento\Framework\App\State as AppState; | |
use Magento\Framework\DataObject; | |
use Magento\Framework\Exception\NoSuchEntityException; |
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
#!/usr/bin/env bash | |
# USAGE: mysqlOptimizeForImports <- before importing | |
# mysqlDefaultSettings <- to go back to normal | |
# Based on https://dba.stackexchange.com/questions/83125/mysql-any-way-to-import-a-huge-32-gb-sql-dump-faster/83385#83385 | |
mysqlStateFile="$HOME/mysql.optimized.for.exports" | |
mysqlConfigLocation="/etc/mysql/my.cnf" # <-- change to the correct for your system, should be for global mysql settings |
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
#!/usr/bin/env bash | |
folderName=${PWD##*/} | |
magentoUser="MAGENTO_PUBLIC_KEY" | |
magentoPassword="MAGENTO_SECRET_KEY" | |
n98-magerun2.phar install --dbHost="localhost" --dbUser="root" --dbPass="root" --dbName="${folderName}" --installationFolder="magento-folder" --installSampleData=yes --baseUrl="http://${folderName}.test/" | |
mv magento-folder/* . |
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
sudo dnf install ruby ruby-devel redhat-rpm-config gcc gcc-c++ | |
sudo gem install json | |
sudo gem install jekyll bundler | |
sudo gem update --system | |
//Na pasta onde se encontra seus arquivos jekyll | |
bundle install | |
bundle update |
NewerOlder