This should work for Debian or Debian-deriviants (e.g., Ubuntu)
Install transmission-daemon
sudo apt-get install transmission-daemon
package main | |
import ( | |
"context" | |
"fmt" | |
"net/url" | |
"os" | |
"github.com/hekmon/transmissionrpc/v3" | |
) |
#!/bin/bash | |
create_db="CREATE DATABASE $1 CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;" | |
create_user="GRANT ALL PRIVILEGES ON $1.* TO '$1'@'localhost' IDENTIFIED BY '$1';" | |
flush="FLUSH PRIVILEGES;" | |
mysql -u root -p -e "${create_db}${create_user}${flush}" | |
mkdir $1.local | |
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition $1.local |
#!/bin/bash | |
# https://mirasvit.com/blog/common-issues-and-few-hacks-with-magento-2-full-page-cache.html | |
cd app/design/frontend/ && grep --recursive -l 'cacheable="false"' * && cd ../../..; | |
cd app/code && grep --recursive -l 'cacheable="false"' * && cd ../..; | |
cd vendor && grep --recursive -l 'cacheable="false"' * && cd ..; |
<?php | |
/** | |
* vendor/magento/module-sales/Model/ResourceModel/Report/Order/Collection.php | |
* Copyright © Magento, Inc. All rights reserved. | |
* See COPYING.txt for license details. | |
*/ | |
namespace Magento\Sales\Model\ResourceModel\Report\Order; | |
/** | |
* Report order collection |
Step 1: | |
File to changed should be added to the git | |
git add -f vendor/dotmailer/dotmailer-magento2-extension/Api/Data/CouponAttributeInterface.php | |
Step 2: | |
Then make the changes to the core file | |
Step 3: | |
After making the changes run | |
git diff vendor/dotmailer/dotmailer-magento2-extension/Api/Data/CouponAttributeInterface.php > m2-hotfixes/webapi-fix.patch |
# | |
# Config file for sSMTP sendmail | |
# | |
# The person who gets all mail for userids < 1000 | |
# Make this empty to disable rewriting. | |
root=gmailemail | |
# The place where the mail goes. The actual machine name is required no | |
# MX records are consulted. Commonly mailhosts are named mail.domain.com | |
mailhub=smtp.gmail.com:587 |