Skip to content

Instantly share code, notes, and snippets.

View markshust's full-sized avatar
🤓
Currently exploring building production apps with Claude Code & AI.

Mark Shust markshust

🤓
Currently exploring building production apps with Claude Code & AI.
View GitHub Profile
@adamzero1
adamzero1 / README.md
Last active June 29, 2024 11:41
Get more descriptive error when DOM validation fails in Magento

Get a more debugable error message when DOM validation fails in Magento.

Original Error Message

1 exception(s):
Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'arguments': This element is not expected.
Line: 1471
services:
app:
ports: !reset []
labels:
- "traefik.enable=true"
- "traefik.http.routers.magento-loc.tls=true"
- "traefik.http.routers.magento-loc.rule=Host(`magento.loc`)"
- "traefik.http.services.magento-loc.loadbalancer.server.port=8443"
- "traefik.http.services.magento-loc.loadbalancer.server.scheme=https"
networks:
@rhoerr
rhoerr / create_aggregated_eav_views.sql
Last active May 20, 2025 14:21
MySQL views to aggregate Magento 2 EAV data -- requires MySQL 5.7+ or equivalent
/**
* Create aggregated SQL views for default EAV entity types in Magento:
* - dev_category
* - dev_product
* - dev_customer
* - dev_address
*
* Each view has the primary entity table, plus associated EAV values (eav_int, eav_text, etc).
* This is meant as a development tool to quickly see or select scoped data for a given entity.
* Do not use these for any runtime code, and be careful about how many rows you fetch at once.
@snarktank
snarktank / README.md
Created July 26, 2025 09:31
Pre-commit Hook with Amp Oracle Review

Pre-commit Hook with Amp Oracle Review

A minimal Husky pre-commit hook with AI-powered code review via Amp's Oracle feature.

Features

  • 🔮 AI Code Review: Optional Oracle review via Amp before committing
  • 🧪 Test Validation: Runs all tests before allowing commit
  • Minimal & Fast: No unnecessary dependencies
  • 🌍 Universal: Works with any Node.js project