Skip to content

Instantly share code, notes, and snippets.

View teiling88's full-sized avatar

Thomas Eiling teiling88

View GitHub Profile
<?php
/**
* Bootstrap for ${NAME}
* @version
* @author TE [email protected]
*/
class Shopware_Plugins_${namespace}_Bestit${name}_Bootstrap extends Shopware_Components_Plugin_Bootstrap
{
/**
* Install plugin method
SET foreign_key_checks = 0;
TRUNCATE s_article_configurator_dependencies;
TRUNCATE s_article_configurator_groups;
TRUNCATE s_article_configurator_option_relations;
TRUNCATE s_article_configurator_options;
TRUNCATE s_article_configurator_price_surcharges;
TRUNCATE s_article_configurator_set_group_relations;
TRUNCATE s_article_configurator_set_option_relations;
TRUNCATE s_article_configurator_sets;
TRUNCATE s_article_configurator_template_prices;
@teiling88
teiling88 / chmod_sw5
Last active November 4, 2015 09:43
chmod for sw5
chmod 777 logs/
chmod 777 config.php
chmod 777 cache/
chmod 777 web/cache/
chmod 777 files/documents/
chmod 777 files/downloads/
chmod 777 recovery/
chmod 777 engine/Shopware/Plugins/Community/
chmod 777 engine/Shopware/Plugins/Community/Frontend
chmod 777 engine/Shopware/Plugins/Community/Core
RewriteRule ^media\/(.*) http://www.shopurl.de/media/$1 [R=301,L]
@teiling88
teiling88 / update.sql
Created July 29, 2015 13:47
change thumbnails after sw 5 update
UPDATE s_media_album_settings SET thumbnail_size='200x200;600x600;1280x1280' WHERE albumID='-1' OR albumID='-11';
UPDATE s_media_album_settings SET thumbnail_size='800x800;1280x1280;1920x1920' WHERE albumID='-2' OR albumID='-3';
/backend/Seo/seoSupplier/offset/0/limit/250/shopId/1
/backend/Seo/seoEmotion/offset/0/limit/250/shopId/1
/backend/Seo/seoArticle/offset/0/limit/250/shopId/1
/backend/Seo/seoBlog/offset/0/limit/250/shopId/1
/backend/Seo/seoCategory/offset/0/limit/250/shopId/1
/backend/Seo/seoStatic/offset/0/limit/250/shopId/1
git rebase -i HEAD~2 (squash) letzten 2 Commits
git rebase -i master alle Commits die im aktuellen Branch mehr enthalten sind als im master
git rebase --continue (nach gelösten Konflikten weiter machen)
git rebase --abort (rebase abrechen)
git push --force-with-lease http://movingfast.io/articles/git-force-pushing/
git pull --rebase origin develop (rebasing)
git branch -d bugfix/fix (lokalen branch löschen)
INSERT IGNORE s_core_snippets
SELECT null, src.namespace, 16, 107, src.name, src.value, src.created, src.updated, 1
FROM s_core_snippets src WHERE src.shopID=1 AND src.localeID = 108
find $DIR -name $ENDUNG -exec echo rm -rv {} \;
// @codingStandardsIgnoreStart
// @codingStandardsIgnoreEnd