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
| mysqldump -h db -umagento -pmagento magento catalog_category_entity catalog_category_entity_datetime catalog_category_entity_decimal catalog_category_entity_int catalog_category_entity_text catalog_category_entity_varchar catalog_category_product catalog_category_product_cl catalog_category_product_index catalog_category_product_index_replica catalog_category_product_index_store1 catalog_category_product_index_store1_replica catalog_category_product_index_store2 catalog_category_product_index_store2_replica catalog_category_product_index_store7 catalog_category_product_index_store7_replica catalog_category_product_index_tmp catalog_compare_item catalog_eav_attribute catalog_product_attribute_cl catalog_product_bundle_option catalog_product_bundle_option_value catalog_product_bundle_price_index catalog_product_bundle_selection catalog_product_bundle_selection_price catalog_product_bundle_stock_index catalog_product_category_cl catalog_product_entity catalog_product_entity_datetime catalog_product_entity_decima |
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
| # Add to your ~/.bash_profile file and start a new terminal session | |
| alias ff="npx @google-cloud/functions-framework --target=${PWD##*/}" | |
| # Run by going to your google cloud function directory: | |
| cd ~/Sites/myGoogleFunction | |
| # then run: | |
| ff |
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) First you need to generate download token. Login to your account on magento.com and generate it in Account Settings->Downloads Access Token | |
| 2) You will need your MAGEID as well. It is shown at the top-left in your account page. | |
| 3) curl -k https://MAGEID:[email protected]/products/downloads/info/help | |
| 4) Profit! |
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
| const colors = require('./tailwind.theme1.colors') | |
| module.exports = { | |
| ... | |
| theme: { | |
| colors, | |
| ... |
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 | |
| namespace App\Http\Middleware; | |
| use Closure; | |
| use Illuminate\Http\Request; | |
| class Subdomain | |
| { | |
| /** |
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 | |
| bin/restart | |
| echo "Restoring database from backup..." | |
| bin/clinotty mysql -h db -u root -pmagento magento < backups/latest.sql | |
| rsync -av username@hostname:/var/www/html/pub/media/wysiwyg/ src/pub/media/wysiwyg/ | |
| rsync -av username@hostname:/var/www/html/pub/media/ src/pub/media/ --exclude=import --exclude=tmp --exclude=cache --exclude=captcha | |
| bin/composer install | |
| bin/patch |
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 | |
| echo "Restoring database from backup..." | |
| ssh user@staging mysql -h127.0.0.1 -uusername -ppassword -f dbname < backups/latest.sql | |
| # sync images from prod > local | |
| rsync -av user@production:/var/www/html/pub/media/wysiwyg/ src/pub/media/wysiwyg/ | |
| rsync -av user@production:/var/www/html/pub/media/ src/pub/media/ --exclude=import --exclude=tmp --exclude=cache --exclude=captcha | |
| # sync images from local > stage | |
| rsync -av src/pub/media/wysiwyg/ user@staging:/var/www/html/pub/media/wysiwyg/ |
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
| tell application "Google Chrome" | |
| tell window 1 | |
| tell active tab | |
| delay 7 | |
| set str to execute javascript "if (!document.querySelector('#notifications-bar button')) document.querySelector('span.lc-switch.lc-switch--compact.addition > input').click();" | |
| delay 3 | |
| tell application "System Events" to keystroke "w" using command down | |
| end tell | |
| end tell | |
| end tell |
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
| # Add the following records to your DNS config | |
| ## Mac: /etc/hosts | |
| ## Windows: C:\Windows\System32\drivers\etc\hosts | |
| 104.18.23.110 admin-stg.notion.so | |
| 104.18.23.110 aif.notion.so | |
| 104.18.23.110 analytics-iframe.notion.so | |
| 104.18.23.110 analytics.pgncs.notion.so | |
| 104.18.23.110 api.notion.so | |
| 104.18.23.110 api.pgncs.notion.so | |
| 104.18.23.110 dev.notion.so |
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 | |
| set -o xtrace |