The scripts below require nothing but itself.
- No module installation
- No FTP access
- No third party integration
- No plans
- Only CMS > Blocks/Widgets
/** | |
* Credit Card Installments to Product Page | |
* | |
* Author: | |
* Rafael Patro <[email protected]> | |
* | |
* Intallation: | |
* Configure the variables ccording to your credit card plan. | |
* maxInstallments (integer) Maximum number of installments the cc plan accept | |
* minPlotValue (number) Minimum installment value |
var soap = require('soap'); | |
var fs = require('fs'); | |
var app = require('express')(); | |
var privateKey = fs.readFileSync('/etc/apache2/ssl.crt/mydomain.key'); | |
var certificate = fs.readFileSync('/etc/apache2/ssl.crt/87g4d56efa87af4.crt'); | |
var chainFile = fs.readFileSync('/etc/apache2/ssl.crt/gd_bundle-g2-g1.crt'); | |
var credentials = {key: privateKey, cert: certificate, chain: chainFile}; | |
var https = require('https').Server(credentials, app); |
/** | |
* Address Auto Fill based on Postcode | |
* | |
* Author: | |
* Rafael Patro <[email protected]> | |
* | |
* Intallation: | |
* Add a CMS Static Block applying the entire script below. | |
* Add a Widget to pages with address forms. | |
* |
/* | |
* DOMParser HTML extension | |
* 2012-09-04 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ | |
/*! @source https://gist.github.com/1129031 */ |
/** | |
* Add XHR compatibility to Magento action buttoms | |
* | |
* Author: | |
* Rafael Patro <[email protected]> | |
* | |
* Requirements: | |
* DOMParser HTML fixes | |
* jQuery Growl library | |
* |
// http://bit.ly/qDefer | |
$(function(){$('script[type="text/javascript/defer"]').each(function(){$(this).clone().attr('type','').insertAfter(this)})}); |
#!/bin/bash | |
URL='domain.com' | |
wget --quiet http://$URL/sitemap.xml --no-cache --output-document - | egrep -o "http://$URL[^<]+" | while read line; do | |
time curl -A 'Cache Warmer' -s -L $line > /dev/null 2>&1 | |
echo $line | |
done |
## How to install mcrypt in php7.2 | |
## | |
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/ | |
## | |
# | |
# Check version php and pecl | |
# | |
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php |