General purpose instances are the most basic type of instances. They provide a balance of compute, memory, and networking resources, and can be used for a variety of workloads. Since you are requiring higher read and write capacity, storage optimized instances should be selected instead.
All posts by Pramod T P
Cross-Origin Resource Sharing
Cross-Origin Resource Sharing (CORS) is a mechanism that uses additional HTTP headers to tell browsers to give a web application running at one origin, access to selected resources from a different origin. A web application executes a cross-origin HTTP request when it requests a resource that has a different origin (domain, protocol, or port) from its own.
number of files in a folder linux
find . | wc -l
PHP Fatal error: Uncaught Error: Cannot instantiate interface Magento\Store\Api\StoreRepositoryInterface
rm -rf pub/static/adminhtml/* pub/static/frontend/* var/cache/* var/page_cache/* var/view_preprocessed/* generated/*
href go to div
<div id="jump">jump to point</div>
create temporary alias linux
$ alias wr=”cd /var/www/html”
mysql CSV import
LOAD DATA LOCAL INFILE '/root/Desktop/tablename.csv' INTO TABLE TABLE-NAME ;
magento 2 enterprise admin showing blank page
This is Magento bug. Wrong paths to Windows are generated. The fixed fix is
Magento 2.3.0 – 2.3.3
#/vendor/magento/framework/View/Element/Template/File/Validator.php:140
the string
if (0 === strpos($realPath, $directory)) {
return true;
}
to replace
$realDirectory = $this->fileDriver->getRealPath($directory);
if ($realDirectory && 0 === strpos($realPath, $realDirectory)) {
return true;
}
Formatting external drive CentOS
df -h
fdisk /dev/sdb
mkfs.vfat /dev/sdb1
Or if you want to format for ext3:
mkfs.ext3 /dev/sdb1
Size of a Directory
The du command displays the amount of file space used by the specified files or directories. If the specified path is a directory, du summarizes disk usage of each subdirectory in that directory. If no path is specified, du reports the disk usage of the current working directory .
sudo du -sh /var