Skip to content

Instantly share code, notes, and snippets.

🐘
Focusing

Nolwennig Nolwennig

🐘
Focusing
Block or report user

Report or block Nolwennig

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Nolwennig
Nolwennig / readme.md
Last active May 26, 2020
Debian 9 : Quick Fix jessie-backports/main 404 Not Found
View readme.md

For fix :

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

@Nolwennig
Nolwennig / wp_post_href.sql
Last active Feb 27, 2019
Wordpress - find external links
View wp_post_href.sql
SELECT guid, post_title, post_content
FROM `posts`
WHERE post_type = 'post'
AND post_content LIKE '%href%';
@Nolwennig
Nolwennig / docker-status.sh
Created Feb 16, 2019
Docker ps: - run: 0 --all: 32 --lastest: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
View docker-status.sh
echo 'Docker ps:';echo '- run:' $((`docker ps | wc -l` -1));echo '--all:' $((`docker ps -a | wc -l`));echo '--lastest:' ;\docker ps -l;
@Nolwennig
Nolwennig / readme.sql.md
Created Jan 22, 2019
Cannot gather stats! Warning!stat(): stat failed for pub/media/catalog/product/i/m/image.jpg
View readme.sql.md
View docker_ps.alias.sh
echo 'Docker ps:';\
echo '- run:' $((`docker ps | wc -l` -1));\
echo '--all:' $((`docker ps -a | wc -l`));\
echo '--lastest:' ;\
docker ps -l;
View magento2_tax.sql.md
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    |                |
@Nolwennig
Nolwennig / tips.md
Last active Dec 11, 2018
Magento2 > adminhtml > product > view
View tips.md

Cannot gather stats! Warning!stat(): stat failed for /var/www/html/magento2/pub/media/catalog/product/i/m/image.jpg

Please run below sql code

SET @file = '/i/m/image.jpg';
START TRANSACTION;
DELETE FROM catalog_product_entity_media_gallery WHERE value = @file;
View test-checkbox.md

Test CheckBox

- [ ]

  • text

checked

@Nolwennig
Nolwennig / mysql_splitdump.sh
Created May 23, 2018 — forked from jasny/mysql_splitdump.sh
Split MySQL dump SQL file into one file per table or extract a single table
View mysql_splitdump.sh
#!/bin/bash
####
# Split MySQL dump SQL file into one file per table
# based on http://blog.tty.nl/2011/12/28/splitting-a-database-dump
####
if [ $# -lt 1 ] ; then
echo "USAGE $0 DUMP_FILE [TABLE]"
exit
View html5-structure.html
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Titre de la page</title>
<link rel="stylesheet" href="style.css">
<script src="script.js"></script>
</head>
<body>
...
You can’t perform that action at this time.