Skip to content

Instantly share code, notes, and snippets.

@hnsr
hnsr / magento-framework-fix-cart-graphql-error-category.patch
Created October 27, 2023 13:36
Patch: fix inactive/non-existent cart handling by re-adding GraphQL error category extension
Fix inactive/non-existent cart handling by re-adding GraphQL error category extension
@package magento/framework
Index: GraphQl/Exception/GraphQlNoSuchEntityException.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/GraphQl/Exception/GraphQlNoSuchEntityException.php b/GraphQl/Exception/GraphQlNoSuchEntityException.php
@hnsr
hnsr / 0_reuse_code.js
Created August 9, 2016 07:29
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
#!/bin/sh
# Run this script with: wget -O - https://gist.github.com/hnsr/c6511f61683245a6faaa6be202dc6fc0/raw | sh
echo "Script for checking VP_Webforms exploits (run this from the magento root)"
echo "\n\nChecking for presence of webforms..."
find . -iname *VladimirPopov_WebForms.xml
echo "\n\nChecking for admin login mailer hack..."
grep -Ri "\"Admin From \"" app/
echo "\n\nDumping configured paypal credentials..."
./n98-magerun.phar db:query -- "SELECT value FROM core_config_data WHERE path = 'paypal/general/business_account';"