Skip to content

Instantly share code, notes, and snippets.

View simbus82's full-sized avatar
I'm making some good Web Marketing Projects

Simone Bussoni simbus82

I'm making some good Web Marketing Projects
View GitHub Profile
@simbus82
simbus82 / .htaccess
Created July 19, 2019 16:59
.htaccess for cookie-less image domain
AddDefaultCharset UTF-8
ServerSignature Off
Options -Indexes
FileETag none
<IfModule mod_headers.c>
Header unset ETag
Header unset Cookie
Header unset Set-Cookie
</IfModule>
@simbus82
simbus82 / robots.txt
Created January 14, 2019 14:17
Good Robots.txt for Joomla 3.x
# If the Joomla site is installed within a folder
# eg www.example.com/joomla/ then the robots.txt file
# MUST be moved to the site root
# eg www.example.com/robots.txt
# AND the joomla folder name MUST be prefixed to all of the
# paths.
# eg the Disallow rule for the /administrator/ folder MUST
# be changed to read
# Disallow: /joomla/administrator/
#
@simbus82
simbus82 / test.html
Last active July 6, 2018 09:07 — forked from CannonballSkippy/test.html
Basic markup test content for typography
<h1>Testing display of HTML elements</h1>
<h2>This is 2nd level heading</h2>
<p>This is a test paragraph.</p>
<h3>This is 3rd level heading</h3>
<p>This is a test paragraph.</p>
<h4>This is 4th level heading</h4>
<p>This is a test paragraph.</p>
<h5>This is 5th level heading</h5>
<p>This is a test paragraph.</p>
@simbus82
simbus82 / robots.txt
Last active May 23, 2018 13:28 — forked from petskratt/robots.txt
Magento 1.9.x - robots.txt
# robots.txt for Magento 1.9.x / v0.1 2018-05-23 / Simone Bussoni / inspired by Peeter Marvet
# # based on:
# https://gist.github.com/petskratt/016c9dbf159a81b9d6aa
# http://inchoo.net/ecommerce/ultimate-magento-robots-txt-file-examples/
# http://www.byte.nl/blog/magento-robots-txt/
# https://astrio.net/blog/optimize-robots-txt-for-magento/
#
# comment and clone at https://gist.github.com/petskratt/016c9dbf159a81b9d6aa
# Keep in mind that by standard robots.txt should NOT contain empty lines, except between UA blocks!
#
@simbus82
simbus82 / Filter.php
Created April 27, 2018 07:55
Roksprocket K2 Tag
If you look at line 29 in /components/com_roksprocket/lib/RokSprocket/Provider/K2/Filter.php you should see the following:
$this->query->select('CONCAT_WS(",", t.id) AS tag_ids, CONCAT_WS(",", t.name) AS tag_names');
If you change this line to the following
$this->query->select('CONCAT_WS(",", t.id) AS tag_ids, CONCAT_WS(",", t.name) AS tags');
@simbus82
simbus82 / local.xml
Created April 10, 2018 15:40
REDIS local.xml magento
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
@simbus82
simbus82 / gist:a49ff537b1cda1fe9f87b0df17574c59
Created April 10, 2018 15:39
local.xml magento 1.9.3.x originale
<?xml version="1.0"?>
<!--
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
@simbus82
simbus82 / jimage_resize.php
Last active May 7, 2018 15:32
Codice per resize immagini Joomla con Jimage + salvataggio in cache
<?php
if (!is_dir(JPATH_SITE .'/cache/Qcache/')) {
mkdir(JPATH_SITE .'/cache/Qcache/', 0755, true);
}
$imgPath = JPATH_SITE . '/cache/Qcache/' . basename($immagineURL);
$imgURL = '/cache/Qcache/' . basename($immagineURL);
if (!file_exists($imgPath)) {
// Create our image object
@simbus82
simbus82 / local.xml
Created September 25, 2017 15:24
REL Prev Next Magento
<?xml version="1.0"?>
<layout version="0.1.0">
<!-- add rel="prev" and rel="next" for Google SEO -->
<catalog_category_default>
<reference name="head">
<block type="page/html_pager" name="relprev.next" as="rel_prev_next" template="page/html/rel_prev_next.phtml"/>
</reference>
</catalog_category_default>