Skip to content

Instantly share code, notes, and snippets.

@mageconsult
mageconsult / change-dropdown-attribute-to-multiselect.sql
Last active October 27, 2020 14:48 — forked from dinhkhanh/change-dropdown-attribute-to-multiselect.sql
Magento change dropdown attribute to multiselect
-- ONLY VALID SINCE MAGENTO 1.9.3.x
-- First, update the attribute input type to multiselect
UPDATE eav_attribute SET
entity_type_id = 4,
attribute_model = NULL,
backend_model = 'eav/entity_attribute_backend_array',
backend_type = 'text',
backend_table = NULL,
frontend_model = NULL,
@mageconsult
mageconsult / filter
Last active May 22, 2018 10:56 — forked from dspreitz/filter
JENACUP2018_CLUB
ID,CALL,CN,TYPE,HANDICAP
06DDA453,D-1980,G1,DG-100 G,99.10
06DDAD29,D-8318,8C,ASW 19B,99.70
06DDF108,D-3144,BC,LS4-b,102.20
XXXXXX,D-5175,Ci,Standard Cirrus,100.00
06DDFB0A,D-8711,GM,LS 4,102.50
XXXXXX,D-3910,IE,LS 4,102.20
06DD8727,D-6640,JF,ASW19,99.70
06DDA57A,D-5965,LV,ASW19b,100.00
06DDED11,D-7696,RH,LS4a,102.50
@mageconsult
mageconsult / install-ioncube
Last active May 7, 2018 14:28 — forked from Schrank/install-ioncube
Install ioncube in puphpet
# Put this file into puphpet/files/exec-once/install-ioncube so it only executed once
# it loads ioncube, unzips it, move and add it to php.ini
echo "Loading ioncube"
wget http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
echo "Unzipping ioncube"
tar xvfz ioncube_loaders_lin_x86-64.tar.gz
echo "Move ioncube to usr/local"
sudo mv ioncube /usr/local
echo "Add ioncube to php.ini"
@mageconsult
mageconsult / git-alias
Last active August 29, 2015 14:17 — forked from renepenner/git-alias
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
# test pull-request