Skip to content

Instantly share code, notes, and snippets.

View Nolwennig's full-sized avatar
🐘
Focusing

Nolwennig Nolwennig

🐘
Focusing
View GitHub Profile
@Nolwennig
Nolwennig / Magento simpleCategoryTree.md
Last active December 8, 2020 13:30
Magento-{1.{7-9}|2} simpleCategoryTree sql request > .csv

Magento simpleCategoryTree.csv

command from cli

mysql -uroot -proot magento -e "here sql query" > category_tree.csv; 

sql query

<!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;
@Nolwennig
Nolwennig / heart_acsii.txt
Created June 9, 2020 15:59
heart ascii (stolen from google images)
..010...010
.01011.01100
0110111101110
1100110010101
.11100101101
...1110111
.....010
......1
@Nolwennig
Nolwennig / readme.md
Last active May 26, 2020 04:30
Debian 9 : Quick Fix jessie-backports/main 404 Not Found

For fix :

On Debian 9 : comment jessie-backports in /etc/apt/sources.list.d/backports.list or in /etc/apt/sources.list

@Nolwennig
Nolwennig / local-xml-template.xml
Last active July 29, 2019 14:43
Magento 1.9.2.1 app/etc/local.xml.template
<config>
<global>
<install>
<date>{{date}}</date>
</install>
<crypt>
<key>{{key}}</key>
</crypt>
<disable_local_modules>false</disable_local_modules>
<resources>
@Nolwennig
Nolwennig / mise_en_prod_ftp.notice.txt
Last active March 1, 2019 16:38
mise en prod ftp
###############
# 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)
@Nolwennig
Nolwennig / wp_post_href.sql
Last active February 27, 2019 01:12
Wordpress - find external links
SELECT guid, post_title, post_content
FROM `posts`
WHERE post_type = 'post'
AND post_content LIKE '%href%';
@Nolwennig
Nolwennig / readme.sql.md
Created January 22, 2019 15:14
Cannot gather stats! Warning!stat(): stat failed for pub/media/catalog/product/i/m/image.jpg
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    |                |