Skip to content

Instantly share code, notes, and snippets.

View RickR2H's full-sized avatar

Rick Spaan RickR2H

View GitHub Profile
@RickR2H
RickR2H / image.php
Created November 17, 2022 23:03 — forked from proweb/image.php
Joomla 3 thumbnails function
/**
* Method to create thumbnails from the current image and save them to disk. It allows creation by resizing
* or croppping the original image.
*
* @param mixed $thumbSizes string or array of strings. Example: $thumbSizes = array('150x75','250x150');
* @param integer $creationMethod 1-3 resize $scaleMethod | 4 create croppping
* @param string $thumbsFolder destination thumbs folder. null generates a thumbs folder in the image folder
*
* @return array
*
@n9iels
n9iels / migrate-urls.php
Last active April 2, 2019 11:17
CLI script to recreate all urls in articles on a Joomla! website and create redirects for the old urls.
<?php
/**
* @package Joomla.Cli
*
* @copyright Copyright (C) 2018 Niels van der Veer. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
/**
* This is a CRON script which should be called from the command-line, not the
@joielechong
joielechong / hosts
Last active February 2, 2022 23:29 — forked from eyecatchup/hosts
Disable Skype ads: 1.) Add hosts to your hosts file 2.) Flush DNS resolver cache (ipconfig /flushdns)
# On Windows 7, 8, 10 Hosts file is in c:\windows\system32\drivers\etc\hosts
#
# Block Skype ads
127.0.0.1 secure-sin.adnxs.com # On skype 7.*
127.0.0.1 *.adnxs.com # On skype 7.*
127.0.0.1 logi10.xiti.com # On skype 7.*
127.0.0.1 *.everesttech.net # On skype 7.*
127.0.0.1 pixel.everesttech.net # On skype 7.*
127.0.0.1 d.adroll.com # On skype 7.*
@pe7er
pe7er / hikashop-EU-vat-rates-2015
Last active January 23, 2019 14:28
EU country VAT rates + tax zones for Hikashop (webshop for Joomla)
/*! European Union country VAT rates + tax zones for Hikashop (webshop for Joomla)
by Peter Martin
Company: http://www.db8.nl
Twitter: @pe7er
Currently, before January 1st 2015, VAT on e-services (like telecommunications, radio & television
broadcasting and electronic services) to consumers (and businesses without VAT number) within the EU,
is charged based on the location (EU country) of the seller.
Starting on January 1st 2015, the VAT on e-services must be calculated based on the end customer’s
@asiviero
asiviero / skew.css
Created July 22, 2014 21:56
Skewing Bootstrap buttons with a little help from jQuery
/* Skew the button */
.btn {
transform: rotate(15deg);
-ms-transform: rotate(15deg); /* IE 9 */
-webkit-transform: rotate(15deg); /* Opera, Chrome, and Safari */
}
/* Skew back its contents */
.btn .to-skew {
transform: rotate(-15deg);
-ms-transform: rotate(-15deg); /* IE 9 */