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
| https://magento.stackexchange.com/questions/159815/how-to-show-default-payment-method-as-checked-at-checkout-page-in-magento-2 |
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
| https://magento.stackexchange.com/questions/148170/magento-2-store-switcher-error-in-section-config-js-uncaught-typeerror-cannot |
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
| mongodump -v --archive --uri="mongodb://localhost:27017/DB_NAME" | mongorestore -v --archive -d DB_NAME --nsFrom DB_NAME.* --nsTo DB_NAME.* --uri="mongodb://DEST_IP:27017/DB_NAME" |
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
| db.getCollectionNames().forEach(function(collection) { | |
| indexes = db[collection].getIndexes(); | |
| indexes.forEach(function (c) { | |
| opt = ''; | |
| ixkey = JSON.stringify(c.key, null, 1).replace(/(\r\n|\n|\r)/gm,""); | |
| ns = c.ns.substr(c.ns.indexOf(".") + 1, c.ns.length); | |
| for (var key in c) { | |
| if (key != 'key' && key != 'ns' && key != 'v') { | |
| if (opt != '') { opt+= ','} | |
| if (c.hasOwnProperty(key)) { |
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
| Original: https://www.webfoobar.com/node/38 | |
| Pagespeed Nginx configuration | |
| Create Pagespeed global configuration: | |
| mkdir -p /etc/nginx/apps/pagespeed | |
| vi /etc/nginx/apps/pagespeed/core.conf |
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 . -type f -name "*.jpg" -size +1000k -exec mogrify -resize 1024x1024\> -strip -resample 80 {} \; |
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\Libraries\Queue; | |
| use Illuminate\Events\Dispatcher; | |
| use Illuminate\Queue\DatabaseQueue; | |
| use Illuminate\Support\Str; | |
| use Laravel\Horizon\Events\JobDeleted; | |
| use Laravel\Horizon\Events\JobPushed; | |
| use Laravel\Horizon\Events\JobReleased; |
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 | |
| /** | |
| * Classes source autoload | |
| */ | |
| class Varien_Autoload | |
| { | |
| /** @var \Composer\Autoload\ClassLoader */ | |
| private static $autoloader; | |
| /** @var self */ |
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 db_name | mysql -h 'other_hostname' db_name |
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 /var/www/ -name \*.php | xargs grep -l "ALREADY_RUN_1bc29b36f342a82aaf6658785356718" | xargs rm |
NewerOlder