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
df -h | grep 'mysql\|Filesystem' |
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
SELECT table_schema "Data Base Name", | |
SUM( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB", | |
SUM( data_free )/ 1024 / 1024 "Free Space in MB" | |
FROM information_schema.TABLES | |
GROUP BY table_schema; |
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 ImaginationMedia\CaspianFrontend\ViewModel; | |
use Magento\Framework\Pricing\PriceCurrencyInterface; | |
use Magento\Framework\View\Element\Block\ArgumentInterface; | |
/** | |
* Class FormatPriceViewModel | |
*/ |
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/magento mod:st | grep SampleData | xargs -0 sh -c 'for name; do bin/magento mod:e $name; done' sh |
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 ./ -name "*.css" -exec sh -c 'mv "$1" "${1%.css}.txt"' _ {} \; |
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 config = await configureWebpack({ | |
[...] | |
devServer: { | |
stats: 'errors-warnings' | |
} | |
}); |
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 | |
COLOR_HIHGLIGHT='\033[0;33m' | |
COLOR_NC='\033[0m' | |
printf "${COLOR_HIHGLIGHT}Installing Node.js and npm globally.${COLOR_NC}\n" | |
sudo apt-get update | |
sudo apt-get install nodejs npm | |
printf "${COLOR_HIHGLIGHT}Making sure npm uses SSL.${COLOR_NC}\n" |
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
define([ | |
'jquery', | |
'matchMedia', | |
'mage/collapsible' | |
], function($, mediaCheck) { | |
'use strict'; | |
$.widget('collapsibleUntilBreakpoint', { | |
options: { |
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 | |
// Project's config.php file | |
return [ | |
'system'=> [ | |
'default' =>[ | |
'design' => [ | |
'theme' => [ | |
'theme_id' => 'frontend/vendor/theme-name', // theme name, as declared in registration.php | |
] | |
] |
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
# if Node.js not yet installed | |
sudo curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n | |
sudo bash n lts | |
# Now node and npm are available | |
sudo npm install -g n && | |
sudo n stable && | |
echo "Latest node was installed." && | |
node -v |