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 / .htaccess
Last active April 9, 2019 12:44
.htaccess to use in Joomla root
##
# @package Joomla
# @copyright Copyright (C) 2005 - 2018 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##
##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
@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 / gist:2f2d65cdbb6fd03ab6fd99446786fb28
Last active November 13, 2018 16:14
Useful linux command
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
sudo /etc/init.d/redis_6379 restart
find . -name "*.jpa" -type f -print0 | du -c --files0-from=- | awk 'END{print $1}'
@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 / 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 / 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: