Skip to content

Instantly share code, notes, and snippets.

I'm making some good Web Marketing Projects

Simone Bussoni simbus82

I'm making some good Web Marketing Projects
View GitHub Profile
dvlop / gist:fca36213ad6237891609e1e038a3bbc1
Last active May 9, 2022 — forked from allthingsdem/gist:63b3223a7d14ac1f2457
My long list of bad bots to block in htaccess, ready to copy and paste!
View gist:fca36213ad6237891609e1e038a3bbc1
# Start Bad Bot Prevention
<IfModule mod_setenvif.c>
# SetEnvIfNoCase User-Agent ^$ bad_bot
SetEnvIfNoCase User-Agent "^12soso.*" bad_bot
SetEnvIfNoCase User-Agent "^192.comAgent.*" bad_bot
SetEnvIfNoCase User-Agent "^1Noonbot.*" bad_bot
SetEnvIfNoCase User-Agent "^1on1searchBot.*" bad_bot
SetEnvIfNoCase User-Agent "^3D_SEARCH.*" bad_bot
SetEnvIfNoCase User-Agent "^3DE_SEARCH2.*" bad_bot
SetEnvIfNoCase User-Agent "^3GSE.*" bad_bot
CannonballSkippy / test.html
Created May 17, 2017
Basic markup test content for typography
View test.html
<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>
View LUKA-MCE20151203-salesrule-hotfix.patch
diff --git a/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php b/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php
index c07e179..e3ba1e6 100644
--- a/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php
+++ b/magento/app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php
@@ -111,6 +111,12 @@
// $aggregatorArr = explode('/', $this->getAggregator());
// $this->setValue((int)$aggregatorArr[0])->setAggregator($aggregatorArr[1]);
+ // The parent class is passing children of configurable items to this method again
+ // this is causing an infinite recursion if we let it pass
pinscript / getIP.js
Created Aug 25, 2015
Google Spreadsheet function to lookup IP for a hostname
View getIP.js
function getIP(host) {
var url = "" + host;
var json = UrlFetchApp.fetch(url);
var data = JSON.parse(json);
return data["ip"];
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
petskratt / robots.txt
Last active Mar 22, 2021
Magento robots.txt
View robots.txt
# robots.txt for Magento 1.9.x / v1.6 2018-08-19 / Peeter Marvet
# (original version from 2015, edited in 2017 to add filter query parameter disallow samples + some wildcards,
# edited in 2018 to add query params blocking to Yandex as named User-agent does not read *)
# based on:
# comment and clone at
# Keep in mind that by standard robots.txt should NOT contain empty lines, except between UA blocks!
simbus82 / .htaccess
Last active Apr 9, 2019
.htaccess to use in Joomla root
View .htaccess
# @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
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
jarvys /
Last active Sep 18, 2020
run multiple redis instances on the same server for centos
  • create a new redis .conf file
$ cp /etc/redis.conf /etc/redis-xxx.conf
  • edit /etc/redis-xxx.conf, illustrated as below
rickbenetti / head.phtml
Last active Dec 13, 2017
Add header rich snippets to your Magento Store
View head.phtml
* Copyright (c) 2013 Studio Boz
* @project_name Studio Boz
* @copyright Copyright (c) 2013 Studio Boz (
* @author Rick Benetti <>
thorstenfriesen / gist:5574702
Created May 14, 2013
Workaround to unbind the event listeners for the agreement checkboxes
View gist:5574702
$$('.checkout-agreements p.agree').each(function(item){
var agreementsBlock = $(item);
if(agreementsBlock != undefined) {
agreementsBlock.replace('<p class="agree">' + agreementsBlock.innerHTML + '</p>');