Initial commit.

master
Icedream 2017-03-15 11:34:29 +01:00
commit 46f8c3784a
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
3 changed files with 14 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# useful-snippets
Just a collection of useful code snippets.

View File

@ -0,0 +1,9 @@
-- Enable developer mode in D3 module connector which disables usage of TMP
UPDATE d3_cfg_mod
SET `OXVALUE` = TO_BASE64(IF(`OXVALUE` = '' OR `OXVALUE` = 'N%3B',
'O%3A8%3A%22stdClass%22%3A1%3A%7Bs%3A29%3A%22d3_cfg_mod__blClrTmp_notmpuse%22%3Bs%3A1%3A%221%22%3B%7D',
REPLACE(FROM_BASE64(`OXVALUE`),
'%22d3_cfg_mod__blClrTmp_notmpuse%22%3Bs%3A1%3A%220',
'%22d3_cfg_mod__blClrTmp_notmpuse%22%3Bs%3A1%3A%221')
))
WHERE `OXMODID` = 'd3modcfg_lib';

View File

@ -0,0 +1,3 @@
-- Disable production mode in all shops for local testing
UPDATE oxshops
SET `OXPRODUCTIVE` = '0';