One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
# | |
# (cd $(espanso path | grep Config | awk '{print $2}'); curl -o user/jira.yml https://gist.githubusercontent.com/yvoronoy/560419750e254747481d66edc8681d02/raw/4f466e9882db7b176a5a156c1c83f4ff73d64944/gistfile1.txt) | |
# | |
name: Jira | |
parent: default | |
matches: | |
- trigger: ":placeholder" | |
replace: "!https://via.placeholder.com/150!" | |
- trigger: ":epic" | |
replace: | |
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
agentPath= | |
appName= | |
license= | |
agentConfigPath= | |
appRoot= | |
phpPath=$(command -v php) |
#!/usr/bin/env bash | |
# Current size compared with maximum available size: | |
# ((query_cache_size-Qcache_free_memory)/query_cache_size)*100 | |
# Hit Ratio Among all queries | |
# Qcache_hits / (QCache_hits + Com_select) | |
export DB_NAME=$(grep [\']db[\'] -A 20 app/etc/env.php | grep dbname | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/['][,]//"); | |
export MYSQL_HOST=$(grep [\']db[\'] -A 20 app/etc/env.php | grep host | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/['][,]//"); | |
export DB_USER=$(grep [\']db[\'] -A 20 app/etc/env.php | grep username | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/['][,]//"); |
Run this command first to get proper connection | |
SUP_ES_HOST=localhost:9200 | |
SUP_ES_INDEX_NAME=magento2 | |
vendor/elasticsearch/elasticsearch/src/Elasticsearch/Connections/Connection.php | |
$curlCmd = sprintf('curl -X%s -H \'%s\' %s%s -d \'%s\'', | |
$method, | |
'Content-type: application/json', | |
$this->host, |
export DB_NAME=$(grep [\']db[\'] -A 20 app/etc/env.php | grep dbname | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/['][,]//"); | |
export MYSQL_HOST=$(grep [\']db[\'] -A 20 app/etc/env.php | grep host | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/['][,]//"); | |
export DB_USER=$(grep [\']db[\'] -A 20 app/etc/env.php | grep username | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/['][,]//"); | |
export MYSQL_PWD=$(grep [\']db[\'] -A 20 app/etc/env.php | grep password | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/[']$//" | sed "s/['][,]//"); | |
mysql -h $MYSQL_HOST -u $DB_USER --password=$MYSQL_PWD $DB_NAME -U | |
pager less -S; | |
#URLs | |
mysql -h $MYSQL_HOST -u $DB_USER --password=$MYSQL_PWD $DB_NAME -e "SELECT * FROM core_config_data WHERE path = 'web/unsecure/base_url' OR path = 'web/secure/base_url'" |
diff --git app/etc/di.xml app/etc/di.xml | |
index 69403de..b43d771 100755 | |
--- app/etc/di.xml | |
+++ app/etc/di.xml | |
@@ -93,7 +93,13 @@ | |
<preference for="Magento\Framework\Api\MetadataObjectInterface" type="Magento\Framework\Api\AttributeMetadata"/> | |
<preference for="Magento\Framework\Api\SearchCriteriaInterface" type="Magento\Framework\Api\SearchCriteria"/> | |
<preference for="Magento\Framework\App\Rss\UrlBuilderInterface" type="Magento\Framework\App\Rss\UrlBuilder"/> | |
- <preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\Quiet"/> | |
+ <preference for="Magento\Framework\DB\LoggerInterface" type="Magento\Framework\DB\Logger\File"/> |
#!/bin/bash | |
# CREATE CATEGORY REST API | |
TOKEN= | |
BASE_URL=$1 | |
echo $BASE_URL | |
TOKEN=$(curl -X POST "${BASE_URL}index.php/rest/V1/integration/admin/token" \ | |
-H "Content-Type:application/json" \ |
#!/usr/bin/env bash | |
function runCommand | |
{ | |
echo "${CMD}" | |
eval ${CMD}; | |
} | |
function getDb | |
{ | |
echo $(grep [\']db[\'] -A 20 app/etc/env.php | grep $1 | head -n1 | sed "s/.*[=][>][ ]*[']//" | sed "s/['][,]//"); | |
return 0; |
You can use tiny script m2dump it is doing the same thing as described below.
Estimate size of directories and exclude no needed.
du -sh ./* | sort -h