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
[user] | |
name = Pavan Kumar Sunkara | |
email = [email protected] | |
[core] | |
editor = vim | |
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
excludesfile = ~/.gitignore | |
[sendemail] | |
smtpencryption = tls | |
smtpserver = smtp.gmail.com |
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
// vendor/magento/module-catalog/Model/ResourceModel/Category.php | |
protected function doReplace($urls) | |
{ | |
foreach ($this->createFilterDataBasedOnUrls($urls) as $type => $urlData) { | |
$urlData[UrlRewrite::ENTITY_TYPE] = $type; | |
$this->deleteByData($urlData); | |
} | |
$data = []; | |
$storeId_requestPaths = []; | |
foreach ($urls as $url) { |
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
sudo rm -rf /usr/local/bin/pstorm | |
rm -rf ~/.PhpStorm* | |
rm -rf ~/.java/.userPrefs/jetbrains/* |
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 | |
# Destiny folder where backups are stored | |
DEST=/tmp/bacula/server01 | |
CURRDATE=$(date +"%F") | |
# Hostname where MySQL is running | |
HOSTNAME="srv-mysql" | |
# User name to make backup | |
USER="root" |
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 | |
require_once 'app/Mage.php'; | |
umask(0); | |
// set store view | |
$store_view_filter = isset($_REQUEST['store_view']) ? $_REQUEST['store_view'] : false; | |
// set export type | |
$export_to = isset($_REQUEST['export_to']) ? $_REQUEST['export_to'] : false; |
OlderNewer