mysql -uroot -proot magento -e "here sql query" > category_tree.csv;
This file contains 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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> | |
p { | |
font-family:monospace; | |
text-align: center; | |
font-size: 60px; | |
margin-top: 0px; |
This file contains 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
..010...010 | |
.01011.01100 | |
0110111101110 | |
1100110010101 | |
.11100101101 | |
...1110111 | |
.....010 | |
......1 |
For fix :
- http://ftp.debian.org/debian jessie-backports/main amd64 Packages 404 Not Found [IP: 130.89.148.12 80]
On Debian 9 : comment jessie-backports in /etc/apt/sources.list.d/backports.list or in /etc/apt/sources.list
This file contains 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
<config> | |
<global> | |
<install> | |
<date>{{date}}</date> | |
</install> | |
<crypt> | |
<key>{{key}}</key> | |
</crypt> | |
<disable_local_modules>false</disable_local_modules> | |
<resources> |
This file contains 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
############### | |
# Problem: | |
# faire une mise en prod avec le travail et les fichiers de qqn d'autre | |
# On a : un dépôt git local, un dépôt git preprod, un accès ftp (ou sftp) en prod | |
################# | |
# résolution | |
# 1*/ trouver la dernière mise en prod sur srv prod | |
# 1.1*/ cnx ftp -> check last date | |
# 2*/ faire le diff (git whatchanged) sur la preprod (plus stable que local) entre %last_date_modify_prod% et %now% (ou autre date) |
This file contains 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 guid, post_title, post_content | |
FROM `posts` | |
WHERE post_type = 'post' | |
AND post_content LIKE '%href%'; |
Please run below sql code
SET @file = '/i/m/image.jpg';
START TRANSACTION;
DELETE FROM catalog_product_entity_media_gallery WHERE value = @file;
DELETE FROM catalog_product_entity_varchar WHERE value = @file;
COMMIT;
This file contains 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
echo 'Docker ps:';\ | |
echo '- run:' $((`docker ps | wc -l` -1));\ | |
echo '--all:' $((`docker ps -a | wc -l`));\ | |
echo '--lastest:' ;\ | |
docker ps -l; |
mysql> desc tax_calculation;
+-------------------------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------------+-------------+------+-----+---------+----------------+
| tax_calculation_id | int(11) | NO | PRI | NULL | auto_increment |
| tax_calculation_rate.tax_calculation_rate_id | int(11) | NO | MUL | NULL | |
| tax_calculation_rule.tax_calculation_rule_id | int(11) | NO | MUL | NULL | |
| tax_class.class_id (customer_tax_class_id) | smallint(6) | NO | MUL | NULL | |
| tax_class.class_id (product_tax_class_id) | smallint(6) | NO | MUL | NULL | |