mysqldump -u bw_magento -p --default-character-set=utf8 bw_magento > bw_magento-local-28.05.2018.sql
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
Feature branches | |
- based on develop by default | |
(base can be changed through second parameter) | |
- merged into develop | |
- tag is not set | |
- local branch is deleted | |
Bugfix branches | |
- based on develop | |
(base can be changed through second parameter) |
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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
composer create-project --repository-url=https://repo.magento.com/ magento/project-community-edition . | |
find var vendor pub/static pub/media app/etc -type d -exec chmod u+w {} \; | |
find var vendor pub/static pub/media app/etc -type f -exec chmod u+w {} \; | |
chmod u+x bin/magento; | |
bin/magento setup:install \ | |
--db-host=database \ | |
--db-name=magento2 \ | |
--db-user=app \ | |
--db-password=app \ |
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 -dmemory_limit=6144M -dsafe_mode=Off /usr/local/Cellar/n98-magerun/1.98.0/libexec/n98-magerun-1.98.0.phar index:reindex:all |
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
// Save Git Password for one year | |
git config --global credential.helper 'cache --timeout=31536000'; | |
// Ignore chmod | |
git config core.fileMode false; | |
// Set Username Global | |
git config --global user.name "Your Name" | |
// Set User Email |
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
# log MySQl Queries | |
# in file /etc/mysql/my.cnf | |
general_log = 1 | |
log_output = table | |
-- Get Insert Statements | |
SELECT argument FROM general_log WHERE command_type = 'Query' AND argument LIKE '%UPDATE%' OR argument LIKE '%INSERT%'; |
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
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
sudo apt-get install git-lfs | |
git lfs install |
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
composer require --dev mage2tv/magento-cache-clean | |
Cache Watch | |
vendor/bin/cache-clean.js --watch | |
Cache Clean Single | |
vendor/bin/cache-clean.js config full_page | |
Cache Help | |
vendor/bin/cache-clean.js --help |
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
docker run -it --name <name> -v $(pwd):/home alpine sh |
OlderNewer