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
install docker in Debian 11/WSL2 without Docker Desktop
# 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 July 14, 2023 12:12 — forked from XigenDominic/magento-2-custom-patch
Create magento 2 custom patch via composer
# 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