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
| define([ | |
| 'jquery', | |
| 'jquery/ui', | |
| 'mage/validation' | |
| ], | |
| function ( | |
| $ | |
| ) { | |
| 'use strict'; |
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
| comand | grep -v "text" |
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
| diff -qr porto porto_child | grep 'differ' |
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 | |
| # get files without the extension | |
| files=$(find ./ -name "filename*.html" -execdir basename {} .html \;) | |
| for FILENAME in ${files} | |
| do | |
| #some-command-with-filename-as-param ${FILENAME}; | |
| done; |
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
| find {where} -name "{what-you-look-for}.{extension}" | wc -l | |
| # `find {where} -name "{what-you-look-for}.{extension}"` | |
| # looks for files by given name pattern | |
| # and `wc -l` counts the result |
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
| # if rename command no present | |
| # sudo apt-get install rename | |
| find -name '*.png' -type f -exec rename 's/word-to-replace-(.*\.png)/new-word-$1/' {} \; |
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 | |
| sudo apt-get update && | |
| sudo apt-get install vim && | |
| sudo apt-get install git && | |
| sudo apt-get install composer && | |
| sudo apt install zsh |
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
| # look what services run on the default 9000 port | |
| sudo lsof -i -n -P | grep 9000 | |
| # look what service run on that port and to stop it | |
| brew services list | |
| # stop the service | |
| brew services stop [servicename] |
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
| # command below looks for `checkout_index_index.xml` files that changes the layout | |
| grep -r -i --include \*checkout_index_index.xml "layout=" |
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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd"> | |
| <system> | |
| <section id="section-id"> | |
| <group id="group-id"> | |
| <field id="field-id" showInDefault="0" showInWebsite="0" showInStore="0" /> | |
| </group> | |
| </section> | |
| </system> |