Skip to content

Instantly share code, notes, and snippets.

@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];
<?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);
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'),
<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">
@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
{
"AAPL": {
"price": "500.99"
}
}
{
"AAPL": {
"price": "500.99"
}
}
@steve-ross
steve-ross / test-queue.js
Last active August 29, 2015 14:06
ticker with queue
var fs = require('fs');
var async = require('async');
function updateJson(ticker, value, cb) {
async.waterfall([
function(next){
fs.readFile('stocktest.json', next);
},
@steve-ross
steve-ross / turpentine_esi.xml
Created October 6, 2014 19:22
turpentine_esi for Magento 1.9 Demo Store
<?xml version="1.0"?>
<!--
Nexcess.net Turpentine Extension for Magento
Copyright (C) 2012 Nexcess.net L.L.C.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

Adding SFTP-only user to Ubuntu Server

To add a SFTP-only user, you'll need to make sure your SSH config settings are correct, add a new user/group and set permissions for your new user. For step-by-step directions, see below. Omit sudo if you're logged in as root.

Directions

  1. Edit /etc/ssh/sshd_config and make sure to add the following at the end of the file:

     Match group filetransfer
    

ChrootDirectory %h