This file contains 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
# install docker in Debian 11/WSL2 | |
# uses systemd-genie since docker requires systemd but it's not available for WSL | |
# this is an alternative to Docker Desktop | |
# prerequisites | |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
sudo apt-get install ca-certificates curl wget gnupg lsb-release apt-transport-https | |
# systemd-genie requires dotnet runtime, add Microsoft repo |
This file contains 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
{ | |
// The plugin looks for a .jsbeautifyrc file in the same directory as the | |
// source file you're prettifying (or any directory above if it doesn't exist, | |
// or in your home folder if everything else fails) and uses those options | |
// along the default ones. | |
// Details: https://github.com/victorporof/Sublime-HTMLPrettify#using-your-own-jsbeautifyrc-options | |
// Documentation: https://github.com/einars/js-beautify/ | |
"html": { | |
"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg", "dust"], |
This file contains 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
# Patcher | |
composer require cweagans/composer-patches | |
git add -f ./vendor/magento/module-catalog/Model/ResourceModel/Product.php | |
# Edit file in vendor e.g. ./vendor/magento/module-catalog/Model/ResourceModel/Product.php | |
mkdir ./patches | |
mkdir ./patches/composer |
This file contains 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
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb | |
sudo dpkg -i gitkraken-amd64.deb |
This file contains 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
# default version in APT repo | |
sudo apt show php -a | |
# currently 7.3 2021 | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt install php | |
sudo apt install software-properties-common | |
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add - | |
echo "deb https://packages.sury.org/php/ stretch main" | sudo tee /etc/apt/sources.list.d/php.list |
This file contains 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
INSERT INTO core_config_data (`scope`,scope_id,`path`,value) | |
VALUES ('default',0,'smtp/configuration_option/host','mailhog'); | |
INSERT INTO core_config_data (`scope`,scope_id,`path`,value) | |
VALUES ('default',0,'smtp/configuration_option/port','1025'); | |
INSERT INTO core_config_data (`scope`,scope_id,`path`,value) | |
VALUES ('default',0,'smtp/configuration_option/authentication','plain'); | |
INSERT INTO core_config_data (`scope`,scope_id,`path`) | |
VALUES ('default',0,'smtp/configuration_option/protocol'); | |
INSERT INTO core_config_data (`scope`,scope_id,`path`,value) |
This file contains 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 app:config:dump | |
app/etc/config.php | |
[...] | |
'Vertex_Tax' => 1, | |
'Vertex_AddressValidation' => 1, | |
'Ves_All' => 1, | |
'Ves_PageBuilder' => 1, |
NewerOlder