Skip to content

Instantly share code, notes, and snippets.

View mtbottens's full-sized avatar

Michael Bottens mtbottens

View GitHub Profile
INSERT INTO
catalog_product_website (website_id, product_id)
SELECT
sw.website_id,
cpw.product_id
FROM
store_website sw
JOIN (
SELECT
cpwd.product_id
@mtbottens
mtbottens / notreallyimportant.sh
Last active February 27, 2024 11:38
Easily update, import and sanitize magento2 cloud databases
function m2-update-database() {
# USAGE
# m2-update-database 'Magento Cloud Project Title' 'http://project.dev/'
# $1 = Project Title
# $2 = Local URL
# Get the project ID by the project title
PROJECT_ID=$(magento-cloud project:list --title=$1 --pipe)
GIT_BRANCH_NAME=$(git branch | grep \* | cut -d ' ' -f2)
var clearObstacles = function() {
Runner.instance_.horizon.obstacles = [];
window.setTimeout(clearObstacles, 2);
}
Runner.instance_.currentSpeed = 5000;
clearObstacles();