Skip to content

Instantly share code, notes, and snippets.

View yyevgenii's full-sized avatar

Yevgenii Yevtushenko yyevgenii

View GitHub Profile
@tshabatyn
tshabatyn / CODE_AND_DB_DUMP.MD
Last active October 5, 2022 05:33
Making Code and DB dump

Code dump

tar cf - ./ --exclude=pub/media/catalog/* --exclude=pub/media/* --exclude=pub/media/backup/* --exclude=pub/media/import/* --exclude=pub/media/tmp/* --exclude=pub/static/* --exclude=var/* --exclude=private --exclude=tests | gzip > /tmp/`date +%s`.code.tar.gz

After execution you will be able to find dump in the directory /tmp

ls -laht /tmp/*.code.tar.gz

Your dump will be shown at the top of the listed dumps.

@yvoronoy
yvoronoy / COMPOSER_AUTH env
Created June 12, 2016 10:04
How to set COMPOSER_AUTH env
#Travis CI
export COMPOSER_AUTH='{"http-basic":{"repo.magento.com": {"username": "public-key", "password": "secret-key"}}}'
@eyecatchup
eyecatchup / hosts
Last active April 24, 2025 12:43
Disable Skype ads: 1.) Add hosts to your hosts file 2.) Flush DNS resolver cache (ipconfig /flushdns)
# Block Skype ads
127.0.0.1 *.msads.net
127.0.0.1 *.msecn.net
127.0.0.1 *.rad.msn.com
127.0.0.1 a.ads2.msads.net
127.0.0.1 ac3.msn.com
127.0.0.1 ad.doubleclick.net
127.0.0.1 adnexus.net
127.0.0.1 adnxs.com
127.0.0.1 ads1.msn.com