Skip to content

Instantly share code, notes, and snippets.

@schmengler
schmengler / bookmarklets.md
Created July 9, 2015 12:45
Magento Admin Bookmarklets

Select all attributes to "Skip" in product export

javascript:$$('input[name="skip_attr[]"]').each(function(el) {el.checked=true;});
@schmengler
schmengler / Request.php
Created June 20, 2015 09:41
Example: Use the Builder pattern to build immutable objects (usage see below in example.php)
<?php
namespace Example\Http;
use Psr\Http\Message\UriInterface;
use Psr\Http\Message\StreamInterface;
use Symfony\Component\HttpFoundation\HeaderBag;
/**
* Immutable request object
*/
@schmengler
schmengler / PATCH_SUPEE-5994_EE_1.14.1.0_v1-2015-05-14-05-05-02-without-downloader.sh
Created May 15, 2015 09:11
Magento Security Patch SUPEE-5994 (Magento CE 1.6 - 1.9 / EE 1.11 - 1.14) WITHOUT DOWNLOADER PATCHES
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""