Skip to content

Instantly share code, notes, and snippets.

View marcatos's full-sized avatar
💪

Simone Marcato marcatos

💪
View GitHub Profile
# ----------------------------------------------------------------------
# | Cross-origin images |
# ----------------------------------------------------------------------
# Send the CORS header for images when browsers request it.
#
# https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_enabled_image
# https://blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
@marcatos
marcatos / blur.css
Created March 16, 2016 14:50
class for a blurry effect
.blur {
-webkit-filter: blur(5px);
-moz-filter: blur(5px);
-o-filter: blur(5px);
filter: url('data:image/svg+xml;utf8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"><filter id="blur"><feGaussianBlur in="SourceGraphic" stdDeviation="5" /></filter></svg>#blur');
-moz-transition: all 300ms ease;
-o-transition: all 300ms ease;
-webkit-transition: all 300ms ease;
transition: all 300ms ease;
-webkit-transform: translateZ(0);
SELECT
"Est_Handler_Magento_CoreConfigData" AS handler,
scope AS param1,
scope_id AS param2,
path AS param3,
"" AS groups,
IFNULL(`value`, '') AS `default`,
'' AS devbox,
'' AS deploy,
'' AS latest,
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/var/www/magento2/pub"
ServerName magento2.loc
ServerAlias www.magento2.loc
ErrorLog "/var/log/apache2/magento2.error.log"
CustomLog "/var/log/apache2/magento2.access.log" common
<Directory "/var/www/magento2/pub">
Order allow,deny
Options Indexes FollowSymLinks Includes ExecCGI
https://www.instagram.com/oauth/authorize?client_id=[CLIENT_ID]&redirect_uri=[REDIRECT_URI]&scope=basic+likes+comments+relationships+public_content&response_type=token
SELECT
"Zettr\\Handler\\Magento\\CoreConfigData" AS handler,
scope AS param1,
scope_id AS param2,
path AS param3,
"" AS groups,
IFNULL(`value`, '') AS `default`,
'' AS devbox,
'' AS deploy,
'' AS latest,
@marcatos
marcatos / Install MEQP coding standards
Created March 19, 2018 13:54
Download and install Extension Quality Program tool
#!/usr/bin/env bash
cd ~
composer create-project --repository=https://repo.magento.com magento/marketplace-eqp magento-coding-standard
cd magento-coding-standard
vendor/bin/phpcs --config-set intalled_paths ~/magento-coding-standards/