Skip to content

Instantly share code, notes, and snippets.

View lfolco's full-sized avatar

Laura Folco lfolco

View GitHub Profile
@navinpeiris
navinpeiris / statusline.sh
Created April 20, 2026 11:42
Navin's Claude Code Status Line
#!/usr/bin/env bash
#
# Navin's custom Claude Code statusline. Inspired by claude-hud and many others.
#
# Put this script at `~/.claude/statusline.sh` and add the following to your
# `~/.claude/settings.json`:
#
# ```json
# "statusLine": {
@rhoerr
rhoerr / README.md
Last active December 2, 2025 19:20
MySQL views to aggregate Magento 2 EAV data -- requires MySQL 5.7+ or equivalent

Important

This EAV debugger tool has been repackaged and released as a proper Magento module now.

Please install it using composer. https://github.com/mage-os-lab/module-eav-debug-views

Install with:

composer require --dev mage-os/module-eav-debug-views
bin/magento setup:upgrade
@michielgerritsen
michielgerritsen / instructions.md
Last active October 4, 2025 03:42
Find old Luma code so you can convert it to Hyvä Alpine.js code

Introduction

The goal of this script is to help you migrate you old Magento Luma code to Hyvä compliant code. Luma used to rely on Require.js to manage it's javascript components. Hyvä relies on Alpine.js for this. For a lot of modules there are already compatibility modules available. Custom code you have to convert yourself.

Usage

There are several ways to use this code:

  • Using Tampermonkey (Chrome) or Greasemonkey (Firefox). If you have that installed just click on "Raw" by the requirejs-finder.user.js file.
  • (Temporary) By injecting it into Magento's head. Open the admin and navigate to Content -> Design -> Click your theme -> HTML -> Head -> Add `` and place the code above between the two script tags.
@peterjaap
peterjaap / mage-os-migration.sh
Last active December 10, 2024 14:57
Mage OS migration shell script - you can use this if you want to move from Magento community edition to MageOS. This updates your composer.json file and your local patches.
#!/bin/bash
# Path to the composer.json file
COMPOSER_FILE="composer.json"
TEMP_FILE="composer_temp.json"
# Checkout the composer.json file to avoid unwanted changes
git checkout "$COMPOSER_FILE"
# Create a new file to hold updated content
@domeglic
domeglic / jquery-ui-magepack-anon-define-fix.patch
Created August 23, 2022 08:38
Magento 2.4.4 magepack jquery ui requirejs bugfix
Fix jquery-ui effects anonymous define error when using magepack. See https://github.com/magesuite/magepack/issues/140 for more.
@package magento/magento2-base
diff --git a/lib/web/jquery/ui-modules/effects/effect-blind.js b/lib/web/jquery/ui-modules/effects/effect-blind.js
index 3b65a4f..513a89b 100644
--- a/lib/web/jquery/ui-modules/effects/effect-blind.js
+++ b/lib/web/jquery/ui-modules/effects/effect-blind.js
@@ -19,7 +19,7 @@
if ( typeof define === "function" && define.amd ) {
@ProxiBlue
ProxiBlue / gist:ad1bc6db0f74e4494f92f94d04423b4b
Last active January 26, 2022 22:06
cypress random test from sitemap.xml that old site and new site match data
Add the following to plugins/index.js
module.exports = (on, config) => {
on('task', {
log (message) {
console.log(message)
return null
}
})
}
@piotrekkaminski
piotrekkaminski / MPERF-10565.diff
Created April 8, 2019 18:04
MPERF-10565.diff - logging to a file that does not exist issue
diff --git a/app/Mage.php b/app/Mage.php
index 0e650eebb4f..9c18e222689 100644
--- a/app/Mage.php
+++ b/app/Mage.php
@@ -798,9 +798,9 @@ public static function log($message, $level = null, $file = '', $forceLog = fals
',',
(string) self::getConfig()->getNode('dev/log/allowedFileExtensions', Mage_Core_Model_Store::DEFAULT_CODE)
);
- $logValidator = new Zend_Validate_File_Extension($_allowedFileExtensions);
$logDir = self::getBaseDir('var') . DS . 'log';
@scottsb
scottsb / m2-cache-cheat-sheet.md
Last active February 22, 2024 14:56
Magento 2 Cache Cheat Sheet

Magento 2 Cache Cheat Sheet

This page lists what caches or directories you will need to clear to apply various types of changes. It is consolidated and adapted from the complete official documentation on directories and caches.

💁 If your development environment supports it, you are better off using Vinai's automatic cache cleaner. As of this writing, the primary reason why it might not work is if your code is hosted on a NFS share (common with Vagrant).

@navarr
navarr / bashrc
Created November 7, 2017 16:45
Magento Helper Functions
# Clear & regenerate CSS
refreshcss() {
find /var/www/Magento/pub/static/frontend -name "*.css" -type f -delete
find /var/www/Magento/pub/static/_cache -name "*.css" -type f -delete
find /var/www/Magento/var/view_preprocessed -name "*.less" -type f -delete
find /var/www/Magento/var/view_preprocessed -name "*.css" -type f -delete
/var/www/Magento/bin/magento setup:static-content:deploy -t SDBullion/twentyseventeen --no-html-minify
/var/www/Magento/bin/magento cache:flush full_page
date
}

Exporting your 2FA tokens from Authy to transfer them into another 2FA application

IMPORTANT - Update regarding deprecation of Authy desktop apps

Past August 2024, Authy stopped supported the desktop version of their apps:
See Authy is shutting down its desktop app | The 2FA app Authy will only be available on Android and iOS starting in August for details.

And indeed, after a while, Authy changed something in their backend which now prevents the old desktop app from logging in. If you are already logged in, then you are in luck, and you can follow the instructions below to export your tokens.

If you are not logged in anymore, but can find a backup of the necessary files, then restore those files, and re-install Authy 2.2.3 following the instructions below, and it should work as expected.