Skip to content

Instantly share code, notes, and snippets.

@DominicWatts
DominicWatts / docker-wsl2-setup.sh
Created January 14, 2023 18:30 — forked from Athou/docker-wsl2-setup.sh
Docker : install docker in Debian 11/WSL2 without Docker Desktop #docker
# 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
@DominicWatts
DominicWatts / magento-2-custom-patch-via-composer
Last active September 12, 2024 13:31 — forked from XigenDominic/magento-2-custom-patch
Cli : Create magento 2 custom patch via composer #CLI
# 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