Skip to content

Instantly share code, notes, and snippets.

View krisdante's full-sized avatar

Krzysztof Daniel krisdante

View GitHub Profile
#!/usr/bin/env bash
#
# Common library parts and setup sensible envirionment
# on magento cloud deployment env
#
[[ "${BASH_VERSINFO[0]}" -lt 4 ]] && echo "FATAL: bash >= 4 required" >&2 && exit 199
if [ -z "${LIB_MGS_COMMON_INCLUDED}" ];then
LIB_MGS_COMMON_INCLUDED=1
(function() {
var body=document.getElementsByTagName('body').item(0);
var goLeft = 1;
var ih = body.innerHTML;
ih = '<img src="https://s-media-cache-ak0.pinimg.com/originals/7a/3d/8d/7a3d8d337b1e0f257ba2eb75a6bf355e.gif" class="ux-hen" style="visibility: hidden">' + ih;
body.innerHTML = ih;
var kura = document.getElementsByClassName('ux-hen').item(0);
kura.style.position='fixed';
kura.style.width='100px';
kura.style.bottom='20px';
@krisdante
krisdante / gist:1b88f516f1ec717e1e7b
Created January 20, 2015 14:25
Error during site import
"An exception occurred while executing 'INSERT INTO typo3_typo3cr_domain_model_nodedata (Persistence_Object_Identifier, identifier, nodeType, workspace, sortingIndex, version, removed, hidden, hiddenInIndex, path, pathHash, parentPath, parentPathHash, dimensionsHash, dimensionValues, properties, accessRoles) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params ["50c56c84-5f45-425f-5dd5-3ad1db4fc722", "b0dd6dc0-804e-f9c9-b83a-7dc209f83ac6", "TYPO3.Neos:ContentCollection", "live", "500", "3", false, false, false, "\/sites\/footer", "396804f914b8824b2372983744f2fe23", "\/sites", "dbd87ae51cbf5240fea77283585e69d5", "d751713988987e9331980363e24189ce", "a:0:{}", "a:0:{}", "a:0:{}"]:
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '396804f914b8824b2372983744f2fe23-live-d751713988987e9331980363e2' for key 'UNIQ_60A956B92DBEC7578D94001992F8FB01'".