Skip to content

Instantly share code, notes, and snippets.

View VIVEKLUCKY249's full-sized avatar

VS VIVEKLUCKY249

View GitHub Profile
function getURLParameter(sParam){
var sPageURL = window.location.search.substring(1);
var sURLVariables = sPageURL.split('&');
for (var i = 0; i < sURLVariables.length; i++) {
var sParameterName = sURLVariables[i].split('=');
if (sParameterName[0] == sParam){
return sParameterName[1];
}
}
}
@VIVEKLUCKY249
VIVEKLUCKY249 / additional-methods.js
Created February 13, 2016 18:54 — forked from maxxscho/additional-methods.js
RegEx for decimal numbers with 'commas' or 'dots'
/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:(\.|,)\d+)?$/
@VIVEKLUCKY249
VIVEKLUCKY249 / prestashop_dir_permissions.sh
Last active October 19, 2015 17:55 — forked from alexsegura/gist:9650651
Prestashop 1.6 folder permissions
chmod a+w -R config/
chmod a+w -R cache/
chmod a+w -R log/
chmod a+w -R img/
chmod a+w -R mails/
chmod a+w -R modules/
chmod a+w -R themes/default-bootstrap/lang/
chmod a+w -R themes/default-bootstrap/pdf/lang/
chmod a+w -R themes/default-bootstrap/cache/
chmod a+w -R translations/
@VIVEKLUCKY249
VIVEKLUCKY249 / mage-cache.sh
Last active August 29, 2015 14:26 — forked from seangreen/mage-cache.sh
Shell Script to Enable, Disable and/or Clean the Magento Cache
#!/bin/bash
# VARIABLES
CONFIG_FILE="./app/etc/local.xml"
# USAGE
function usage()
{
cat <<EOF
Usage: $0 [OPTIONS]