Skip to content

Instantly share code, notes, and snippets.

View garyconstable's full-sized avatar
🏠
Working from home

Gary Constable garyconstable

🏠
Working from home
View GitHub Profile

ps aux | grep php

@garyconstable
garyconstable / readme.md
Created March 29, 2019 18:51
docker.for.mac.localhost

docker.for.mac.localhost

@garyconstable
garyconstable / readme.md
Created January 15, 2019 23:23
Magento 2 - product sql
SELECT e.entity_id AS 'id',
       v1.value AS 'name',
       e.sku,
       d1.value AS 'price',
       t1.value AS 'short_description',
       t2.value AS 'description',
       v2.value AS 'image',
       v3.value AS 'thumbnail',
       mg.value AS 'media_gallery',
@garyconstable
garyconstable / Readme.MD
Created January 14, 2019 10:17
Magento 2 - Add custom Category Image
https://webkul.com/blog/add-custom-image-attribute-category-magento-2/
@garyconstable
garyconstable / README.MD
Created January 9, 2019 08:45
Varnish Commands
service varnish restart
@garyconstable
garyconstable / readme.md
Created January 3, 2019 12:21
Save DB command Line
mysqldump -u root -p************ production_3>production_3_rob_now1.sql
@garyconstable
garyconstable / StockMismatchOnly.php
Created January 2, 2019 11:46
Magento - Configurable Product Checks
<html>
<head>
<title>Configurable product checks - only error items</title>
<style>
table {margin:25px 0px;}
td {padding:10px 5px;}
.green {color:green;}
.red {color:red;}
</style>
</head>
@garyconstable
garyconstable / README.MD
Created January 2, 2019 09:51
HTACCESS - But not for localhost

Enable HTTPS but not for the localhost.

RewriteCond %{HTTP_HOST} !violet.loc
RewriteCond %{HTTPS}  !=on 
RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] 
@garyconstable
garyconstable / readme.md
Created December 30, 2018 22:20
Pi Config Command
sudo raspi-config
@garyconstable
garyconstable / readme.md
Created December 30, 2018 22:14
Pi Scan for Wifi Networks
sudo iwlist wlan0 scan