Skip to content

Instantly share code, notes, and snippets.

{
"AAPL": {
"price": "500.99"
}
}
{
"AAPL": {
"price": "500.99"
}
}
@steve-ross
steve-ross / modman-install
Last active August 29, 2015 14:05
testing modman installer fix
#!/usr/bin/env bash
if [ ! -d "$HOME/bin" ] ; then
mkdir $HOME/bin
if [ -f $HOME/.profile ]; then
tty -s && . $HOME/.profile
if [[ ":$PATH:" != *":$HOME/bin:"* ]]; then
echo -e '\nPATH="$HOME/bin:$PATH"' >> $HOME/.profile
<div class="row">
<div class="col1">
<img src="">
<h5></h5>
<p></p>
<p>
<a href="">View</a><span class="divider">|</span><a href="">Download</a>
</p>
</div>
<div class="col2">
module.exports = function(grunt) {
var target = grunt.option('target') || 'dev';
var watch_tasks = ['concat:js'];
if(target != 'dev') watch_tasks.push('uglify:js');
grunt.registerTask('watch', [ 'watch' ]);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
<?php
define('__CURRENTDIR__', dirname(dirname(__FILE__)));
define('__MAGE__', str_replace('/code/local/GaugeInteractive/EbayMipIntegration', '/Mage.php', __CURRENTDIR__));
require_once(__MAGE__);
Mage::app('default');
Mage::register('isSecureArea', 1);
@steve-ross
steve-ross / signup.js
Created April 14, 2014 13:58
signup form changes
$j(document).ready(function () {
// enable strict mode
'use strict';
// hide the site newsletter modal
$j('.signup-form').hide();
$j('.footer .last a').attr('onclick', ''); // remove the newsletter click event
$j('.discount-modal').remove();
var pathArray = window.location.href.split('/');
var host = pathArray[2];
@steve-ross
steve-ross / tar_mage_directory.sh
Last active December 24, 2019 10:48
Magento Tar Directory Script
#!/bin/bash
echo "////////////////////////// MAGENTO TAR ////////////////////////////"
date
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
excludefilename="$DIR/exclude_files.txt"
day=$(date +%A)
path=$1
@steve-ross
steve-ross / mysql_dump_mage.sh
Created April 3, 2014 16:50
Mysql Dump Magento DB script
#!/bin/bash
echo "////////////////////////// START ////////////////////////////"
date
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
day=$(date +%A)
user=$2
host=$1
database=$3
@steve-ross
steve-ross / gist:9957350
Last active August 29, 2015 13:58
helpers
$j(document).ready(function () {
// enable strict mode
'use strict';
// hide the site newsletter modal
$j('.signup-form').hide();
var check_url = 'http://' + host + '/skin/frontend/enterprise/rebeccaminkoff/inc/sanity-check.php';
var save_url = 'http://' + host + '/skin/frontend/enterprise/rebeccaminkoff/inc/store-address.php';
function get_newsletter_signup_data(){