Skip to content

Instantly share code, notes, and snippets.

View jayachandraoggy's full-sized avatar
🏠
Working remotely

Jaya Chandra jayachandraoggy

🏠
Working remotely
View GitHub Profile
@jayachandraoggy
jayachandraoggy / transmission-daemon-quickstart.md
Created June 26, 2024 17:50 — forked from eriknomitch/transmission-daemon-quickstart.md
Transmission Daemon (transmission-daemon) Quickstart

Transmission Daemon (transmission-daemon) Quickstart

This should work for Debian or Debian-deriviants (e.g., Ubuntu)

Quickstart

Install transmission-daemon

sudo apt-get install transmission-daemon
#!/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 ..;