This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git log --shortstat --pretty="%cE" | sed 's/\(.*\)@.*/\1/' | grep -v "^$" | awk 'BEGIN { line=""; } !/^ / { if (line=="" || !match(line, $0)) {line = $0 "," line }} /^ / { print line " # " $0; line=""}' | sort | sed -E 's/# //;s/ files? changed,//;s/([0-9]+) ([0-9]+ deletion)/\1 0 insertions\(+\), \2/;s/\(\+\)$/\(\+\), 0 deletions\(-\)/;s/insertions?\(\+\), //;s/ deletions?\(-\)//' | awk 'BEGIN {name=""; files=0; insertions=0; deletions=0;} {if ($1 != name && name != "") { print name ": " files " files changed, " insertions " insertions(+), " deletions " deletions(-), " insertions-deletions " net"; files=0; insertions=0; deletions=0; name=$1; } name=$1; files+=$2; insertions+=$3; deletions+=$4} END {print name ": " files " files changed, " insertions " insertions(+), " deletions " deletions(-), " insertions-deletions " net";}' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why do I need frontend testing? | |
There are untold number of subtle | |
errors that can occur on the frontend. | |
Minor CSS changes that throw things off | |
Changes to JS files that break things | |
Aggregates changing when not necessary | |
Performance regressions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_filter.c> | |
AddOutputFilterByType DEFLATE "application/atom+xml" \ | |
"application/javascript" \ | |
"application/json" \ | |
"application/ld+json" \ | |
"application/manifest+json" \ | |
"application/rdf+xml" \ | |
"application/rss+xml" \ | |
"application/schema+json" \ | |
"application/vnd.geo+json" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
return [ | |
// database settings | |
'db' => [ | |
'host' => 'localhost', | |
'port' => '3306', | |
'username' => 'shopware', | |
'password' => 'shopware', | |
'dbname' => 'shopware' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# user to create | |
ARRAY=( | |
"emtii" | |
) | |
# iterate users | |
for (( i = 0; i < ${#ARRAY[@]}; ++i )); do | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Description | |
==================================================================================================================== | |
We basically need 2 steps to completely remove articles, categories & suppliers from this shopware version: | |
1. truncate mysql tables | |
2. use sw cli command to remove left images from filesystem | |
1. truncate | |
==================================================================================================================== | |
SET foreign_key_checks = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. create file "requestpattern.txt" with the following content: | |
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
----------\n | |
time_total: %{time_total}\n |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. truncate | |
==================================================================================================================== | |
SET foreign_key_checks = 0; | |
TRUNCATE `s_user`; | |
TRUNCATE `s_user_attributes`; | |
TRUNCATE `s_user_billingaddress`; | |
TRUNCATE `s_user_billingaddress_attributes`; | |
TRUNCATE `s_user_debit`; | |
TRUNCATE `s_user_shippingaddress`; | |
TRUNCATE `s_user_shippingaddress_attributes`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. truncate | |
==================================================================================================================== | |
SET foreign_key_checks = 0; | |
TRUNCATE `s_order`; | |
TRUNCATE `s_order_attributes`; | |
TRUNCATE `s_order_basket`; | |
TRUNCATE `s_order_basket_attributes`; | |
TRUNCATE `s_order_basket_saved`; | |
TRUNCATE `s_order_basket_saved_items`; | |
TRUNCATE `s_order_billingaddress`; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**Setup** | |
1. cd into your ~/Workspace | |
2. git clone [email protected]:spryker/devvm.git spryker-devvm-suite | |
3. cd ./spryker-devvm-suite && git checkout tags/2.0.0 | |
4. VM_PROJECT=suite SPRYKER_REPOSITORY="[email protected]:spryker-shop/suite.git" vagrant up | |
6. ./project on host machine contains suite files now, mounted to /data/shop/development/current in vagrant box | |
7. vagrant ssh | |
8. composer global require hirak/prestissimo | |
9. ulimit -n 65535 |
OlderNewer