Skip to content

Instantly share code, notes, and snippets.

View erikhansen's full-sized avatar

Erik Hansen erikhansen

View GitHub Profile
@erikhansen
erikhansen / readme.md
Last active September 11, 2017 19:14 — forked from GianlucaGuarini/post-merge
Git hook that gets triggered after any 'git pull' whenever one of the files specified has changed. Useful to update any web application dependency.

How to create a global git commit hook by Matt Venables

1 Enable git templates (This tells git to copy everything in ~/.git-templates to your per-project .git/ directory when you run git init):

git config --global init.templatedir '~/.git-templates'

2 Create a directory to hold the global hooks:

mkdir -p ~/.git-templates/hooks

@erikhansen
erikhansen / _responsive.less
Last active August 7, 2024 08:58
Magento 2 Responsive Media Queries
// /**
// * Copyright © 2015 Magento. All rights reserved.
// * See COPYING.txt for license details.
// */
//
// Responsive
// _____________________________________________
//
@erikhansen
erikhansen / magento1_enterprise_index_diagnostics.sql
Created February 18, 2016 14:46 — forked from mttjohnson/magento1_enterprise_index_diagnostics.sql
Magento 1.x Enterprise Partial Indexing Diagnostics Toolset
-- When products are added/removed from a category this table stores all the relation data
select * from catalog_category_product where product_id = '218';
-- The index that is used for presenting products in a category on the frontend
select * from catalog_category_product_index where product_id = '218';
-- The change log table used for Magento EE partial index functionality
select * from catalog_category_product_index_cl where product_id = '218';
-- The cron job that gets executed on each cron execution - check for errors
@erikhansen
erikhansen / web70_env.php
Last active December 28, 2017 22:38
dev-web70 Gist - The purpose of this Gist is to provide a template Magento 2 env.php file to use within the davidalger/devenv environment. See usage instructions below: https://gist.github.com/erikhansen/94db292fe3650d5991dc#gistcomment-1700442
<?php
return array (
'backend' =>
array (
'frontName' => 'backend',
),
'crypt' =>
array (
'key' => '<KEY>',
),
[xdebug]
xdebug.profiler_enable_trigger=on
xdebug.remote_autostart=off
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.idekey=ECLIPSE_XDEBUG
xdebug.collect_vars=on
xdebug.collect_params=4