Skip to content

Instantly share code, notes, and snippets.

View Nolwennig's full-sized avatar
🐘
Focusing

Nolwennig Nolwennig

🐘
Focusing
View GitHub Profile
<!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 / 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 / docker-status.sh
Last active June 29, 2022 19:43
Docker ps: - run: 0 --all: 32 --lastest: CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
echo 'docker ps:';
echo '- run:' $((`docker ps | wc -l` -1));
echo '--all:' $((`docker ps -a | wc -l` -1));
echo '--lastest:' ;\docker ps -l;
@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    |                |
@Nolwennig
Nolwennig / tips.md
Last active December 11, 2018 08:59
Magento2 > adminhtml > product > view

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;

Test CheckBox

- [ ]

  • text

checked