Skip to content

Instantly share code, notes, and snippets.

View aliuosio's full-sized avatar
🤝
Ready for new Magento 1&2 Freelance Projects

Osiozekhai Aliu aliuosio

🤝
Ready for new Magento 1&2 Freelance Projects
  • Hamburg, Germany
  • 09:57 (UTC -12:00)
View GitHub Profile
@aliuosio
aliuosio / git flow branching behaviour
Last active May 21, 2017 14:20
Summarized list of the key features of git flow branching
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)
@aliuosio
aliuosio / gist:ca07c13448e2472e40119a74ae1a662a
Created June 2, 2017 13:16 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
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
@aliuosio
aliuosio / gist:75bc1846c67773bfc36bb7a5013e6c57
Created September 17, 2017 22:36
Catalog reindex while setting memory and disabling Safe Mode for php-cli ignoring php.ini
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
@aliuosio
aliuosio / Useful Git Commnds
Last active March 9, 2018 17:02
Useful Git Commnds
// 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
@aliuosio
aliuosio / README.md
Created May 30, 2018 17:34
MysqlDump UTF-8

mysqldump -u bw_magento -p --default-character-set=utf8 bw_magento > bw_magento-local-28.05.2018.sql

@aliuosio
aliuosio / MySQL Query Logging
Last active July 12, 2018 10:52
MySQL Query Logging
# 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%';
@aliuosio
aliuosio / docker-debian.txt
Last active October 5, 2018 11:34
docker-debian
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
sudo apt-get install git-lfs
git lfs install
@aliuosio
aliuosio / magento-cache-clean
Created October 26, 2018 10:08
magento-cache-clean
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
@aliuosio
aliuosio / gist:03912ab06be27dd90a5f83259665b0e6
Last active October 31, 2018 19:55
Magento 2 Console Install with Sampledata
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 \
find . -type f -name "*.mkv" -exec sh -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \;