Skip to content

Instantly share code, notes, and snippets.

View ProcessEight's full-sized avatar
💻
Working remotely

Simon Frost ProcessEight

💻
Working remotely
View GitHub Profile
@ProcessEight
ProcessEight / Migrating your code from M1 to M2.md
Last active November 21, 2016 17:18
Notes for presentation on migrating your code from M1 to M2

Magento 1 to Magento 2 Code Migration

Theory

What are the big code changes in M2?

  • Different directory structure
  • Namespaces
  • Dependency Injection
  • Domain-specific config XML files
@ProcessEight
ProcessEight / magento1x-composer.md
Last active September 3, 2019 14:18
Setup Magento 1x using composer

Setup Magento 1x using composer

Step-by-step, from scratch

  • Create the webroot (e.g. /var/www/html/new-magento-project/htdocs/)
  • Run composer init in the webroot:
{
    "name": "projecteight/magento",
 "description": "Magento Community Edition for local dev”
@ProcessEight
ProcessEight / Asciinema.md
Last active May 24, 2017 01:44
Asciinema
# (On Mac OSX) Start recording with your login shell. 
# This ensures any aliases you've setup in .bash_profile are still available
cd ~/PhpStormProjects/asciinema/
python3 -m asciinema rec terminal.log -c "/bin/bash -l" -w5
@ProcessEight
ProcessEight / Generating Call Graph with Xdebug, dot and graphviz.md
Last active February 15, 2023 22:47
Generating Call Graph with Xdebug, dot and graphviz.md
@ProcessEight
ProcessEight / Magento.md
Last active April 4, 2022 13:22
Magento 1 Cheatsheet: Common Magento 1 tasks

Magento Cheatsheet (For Magento 1)

Database operations

Download Sonassi database helper

wget sys.sonassi.com/mage-dbdump.sh && chmod +x ./mage-dbdump.sh

Download Magerun

@ProcessEight
ProcessEight / Testing in Magento 2.md
Last active July 9, 2024 13:50
M2: Notes on setting up PHPUnit and writing/troubleshooting tests in Magento 2
@ProcessEight
ProcessEight / Composer cheatsheet.md
Last active December 19, 2022 02:50
Composer cheatsheet: Common Composer tasks