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 | |
| # | |
| # Script to backup Magento2 Codebase + Database | |
| # | |
| # @author Raj KB <magepsycho@gmail.com> | |
| # @website http://www.magepsycho.com | |
| # @version 0.1.0 | |
| # UnComment it if bash is lower than 4.x version |
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
| // Instructions | |
| // 1. Go to Chrome -> Bookmarks -> Bookmarks Manager | |
| // 2. Right-click Bookmarks Bar -> "Add Page ..." | |
| // 3. Enter "Go To Line" for Name | |
| // 4. Copy/paste the code below into URL (From-and-including "javascript:" to "void 0;" | |
| // | |
| // Now on any "view-source:..." page in Chrome, click the Bookmarks -> Go To Line menu | |
| // item to scroll to and highlight the line of your choice | |
| // ----- |
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
| #!/usr/bin/env bash | |
| #styles | |
| VP_NONE='\033[00m' | |
| VP_RED='\033[01;31m' | |
| VP_GREEN='\033[01;32m' | |
| VP_YELLOW='\033[01;33m' | |
| VP_PURPLE='\033[01;35m' | |
| VP_CYAN='\033[01;36m' | |
| VP_WHITE='\033[01;37m' |
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
| # Metadata | |
| /.buildpath | |
| /.cache | |
| /.metadata | |
| /.project | |
| /.settings | |
| atlassian* | |
| /nbproject | |
| /sitemap | |
| /.idea |
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 | |
| /** | |
| * | |
| * @author Raj KB<magepsycho@gmail.com> | |
| * @website http://www.magepsycho.com | |
| * @extension MassImporterPro: Pricing - http://www.magepsycho.com/mass-importer-pro-price-importer-regular-special-tier-group.html | |
| */ | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); |
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 | |
| ip addr show eno1 | grep -oPi 'inet \K[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' |
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 | |
| /** | |
| * @author Frank Clark | |
| */ | |
| namespace Vendor\Namspace\Model\Subscription\Order; | |
| use Vendor\Namspace\Model\ResourceModel\Subscriptions\CollectionFactory; | |
| use Vendor\Namspace\Api\SubscriptionsOrdersRepositoryInterface; | |
| use Vendor\Namspace\Model\SubscriptionsOrdersFactory; | |
| use Vendor\Namspace\Model\Subscriptions; |
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
| $('.summer').summernote({ | |
| height: "200px", | |
| callbacks: { | |
| onImageUpload: function(files) { | |
| url = $(this).data('upload'); //path is defined as data attribute for textarea | |
| sendFile(files[0], url, $(this)); | |
| } | |
| } | |
| }); |
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 | |
| ini_set('display_errors', 1); | |
| ini_set('display_startup_errors', 1); | |
| error_reporting(E_ALL); | |
| //echo "hello world"; | |
| try { | |
| require __DIR__ . '/app/bootstrap.php'; |
NewerOlder