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.
#!/bin/bash | |
# --------------------------------------------------------- | |
# Customizable Settings | |
# --------------------------------------------------------- | |
MOUNT_POINT="${CASE_SAFE_MOUNT_POINT:-${HOME}/casesafe}" | |
VOLUME_PATH="${CASE_SAFE_VOLUME_PATH:-${HOME}/.casesafe.dmg.sparseimage}" | |
VOLUME_NAME="${CASE_SAFE_VOLUME_NAME:-casesafe}" | |
VOLUME_SIZE="${CASE_SAFE_VOLUME_SIZE:-60g}" |
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.
Reformat Jira ticket export to include comments in the ticket description and to update attachment URLs to include an authorization key.
Jira provides the ability to import from CSV two different ways:
These are possible steps to reset a csync2 cluster that has been seriously fubared. This is an apocalyptic approach and should only be used when more surgical fixes (like correcting an individual conflict) aren't workable.
PayPal uses various prefixes to distinguish different types of unique IDs in their APIs, but these are not currently documented in a single place. This Gist seeks to bring that information together into a single place. If there is something missing, please reach out through one of the channels on my GitHub profile since GitHub doesn't send notifications on Gist comments.
<?xml version="1.0"?> | |
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd"> | |
<type name="Magento\Framework\App\Request\HttpMethodMap"> | |
<arguments> | |
<argument name="map" xsi:type="array"> | |
<item name="OPTIONS" xsi:type="string">\Magento\Framework\App\Action\HttpOptionsActionInterface</item> | |
<item name="GET" xsi:type="string">\Magento\Framework\App\Action\HttpGetActionInterface</item> | |
<item name="HEAD" xsi:type="string">\Magento\Framework\App\Action\HttpGetActionInterface</item> | |
<item name="POST" xsi:type="string">\Magento\Framework\App\Action\HttpPostActionInterface</item> | |
<item name="PUT" xsi:type="string">\Magento\Framework\App\Action\HttpPutActionInterface</item> |
#!/usb/bin/env bash | |
# Update as needed: | |
# * Status page URL for php-fpm if not at http://127.0.0.1/status | |
# * Host header of website if required to match correct pool | |
# Columns (as of PHP 7.1): | |
# * pid | |
# * state | |
# * start time |
The WooCommerce Authorize.net DPM plugin (v.1.8.0) has a bug in the SHA2 response calculation, causing the following error to appear to customers when they enter invalid credit card information (as well as an email to the merchant admin email):
An error occurred while trying to report this transaction to the merchant. An e-mail has been sent to the merchant informing them of the error. The following is the result of the attempt to charge your credit card.
As a quick fix, open the file class-wc-authorize-net-relay-response-handler.php
and search for this bit of code:
! empty( $data[ $hash_field ] )
And replace with this:
#!/bin/bash | |
# Settings | |
SUFFIX=alt | |
MAGERUNCMD=magerun | |
# Sanity Checks | |
type $MAGERUNCMD >/dev/null 2>&1 || { | |
echo "ERROR: This script requires the command '$MAGERUNCMD' to be executable in the current path." | |
exit |
Identify a tool for generating a living component/pattern library that can be integrated alongside a pre-existing code base. Ideally should be able to generate static HTML as part of a Grunt/Gulp job.