Skip to content

Instantly share code, notes, and snippets.

View ProcessEight's full-sized avatar
💻
Working remotely

Simon Frost ProcessEight

💻
Working remotely
  • York
View GitHub Profile
@ProcessEight
ProcessEight / Xdebug3.md
Last active January 24, 2022 14:33
Xdebug 3 research

Xdebug 3 research

Support

Xdebug hooks into PHP's internals deeply in order to offer it's fetures of step debugging, tracing, profiling and others. So each PHP version has a matching Xdebug version.

The latest version of Xdebug, Xdebug 3, only supports PHP versions back to 7.2. However, that's a longer support period than even PHP itself provides.

See the compatibility table for more info: https://xdebug.org/docs/compat#supported-versions

@ProcessEight
ProcessEight / automated-refactoring.md
Last active May 3, 2024 20:34
Discussion of automated refactoring processes to bring legacy codebases up to date
@ProcessEight
ProcessEight / magento-debugging-cheatsheet-cron.md
Last active July 19, 2024 09:19
Cheatsheet for debugging cron-based issues in Magento 2

Magento Debugging Cheatsheet: Cron Edition

  • Verify the cron is installed properly in the crontab. Run php bin/magento cron:install to install the cron.
  • Verify it is installed for the web server user. Use crontab -l to list the crontab for the current user.
    • The command Magento runs is: /usr/bin/php /var/www/vhosts/magento-project/html/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /var/www/vhosts/magento-project/html/var/log/magento.cron.log
  • Verify that the line in crontab is not commented out (i.e. Does not start with #).
  • Verify the cron is running properly. Run php bin/magento cron:run to run the cron. This prompts Magento to generate new cron schedules in the cron_schedule table.
  • Verify other cron jobs are running
  • Check cron tables in db for hidden error messages
  • Check cron logs for error messages
@ProcessEight
ProcessEight / rabbitmq.md
Last active May 20, 2024 11:15
Research into RabbitMQ

RabbitMQ

Key concepts

AMQP: Advanced Message Queueing Protocol: A set of rules which govern how messages are exchanged between systems and processed.

Message: A piece of data which needs to be processed in some way

Queue: A buffer which temporarily holds messages. A queue processes messages one-by-one, in a FIFO order.