Skip to content

Instantly share code, notes, and snippets.

@chris-at-github
chris-at-github / Registieren
Created December 3, 2013 07:44
Namespaces
composer dump-autoload
@chris-at-github
chris-at-github / Doppelte Einträge finden
Created November 11, 2013 10:50
Doppelte Einträge finden
SELECT COUNT(*) AS COUNT, SPALTE
FROM TABELLE
GROUP BY SPALTE
HAVING COUNT(*) > 1
@chris-at-github
chris-at-github / Inline If
Created November 5, 2013 15:03
Inline If
{f:if(condition: '{salutation} == 1', then: 'Herr....', else: 'Frau...')}
// Push
scp -P26 DATEI.EXT BENUTZER@localhost:
// Get
scp -P26 BENUTZER@localhost:DATEI .
@chris-at-github
chris-at-github / Attribut Vererbung
Created September 4, 2013 11:53
Vererbung der Artikeleigenschaften auf die Varianten
UPDATE oxarticles AS c
LEFT JOIN oxarticles AS p
ON p.oxid = c.oxparentid
SET
c.oxweight = p.oxweight,
c.oxlength = p.oxlength,
c.oxheight = p.oxheight
oxLang::getInstance()->translateString('OX_LANG_KEY');
@chris-at-github
chris-at-github / Watch
Created August 8, 2013 12:04
Sass Console
sass --watch ./Sass:./Styles
sass --watch ./sass:./css
@chris-at-github
chris-at-github / Admin Tools
Created August 5, 2013 06:53
Module in Admintools freischalten
// /typo3/mod/tools/conf.php
$MCONF['access']='admin'; -> $MCONF['access']='group,user';
// typo3/sysext/EXTENSION/mod/conf.php
$MCONF['access']='admin'; -> $MCONF['access']='group,user';
@chris-at-github
chris-at-github / loadArticle
Created August 2, 2013 12:05
Oxid Artikelverwaltung
$oArticle = oxNew('oxarticle');
$oArticle->load(oxConfig::getParameter('id'));
@chris-at-github
chris-at-github / getParameter
Created August 2, 2013 12:02
Parameter auslesen
oxConfig::getParameter('id');