By Thomas Darr (@trdarr), with love.
“How has no one yet written a tutorial for deploying Hubot on @digitalocean? cc @beyroutey”
— Miles Grimshaw (@milesgrimshaw), 10 Dec 2013
<?xml version="1.0"?> | |
<config> | |
<modules> | |
<Demac_Childsku> | |
<active>true</active> | |
<codePool>local</codePool> | |
</Demac_Childsku> | |
</modules> | |
</config> |
input { | |
file { | |
type => "magento-exception" | |
path => "/path/to/magento/www/var/log/exception.log" | |
codec => multiline { | |
pattern => "^%{TIMESTAMP_ISO8601}" | |
negate => true | |
what => previous | |
} | |
} |
By Thomas Darr (@trdarr), with love.
“How has no one yet written a tutorial for deploying Hubot on @digitalocean? cc @beyroutey”
— Miles Grimshaw (@milesgrimshaw), 10 Dec 2013
var express = require('express'); | |
var cp = require('child_process'); | |
var app = express.createServer(); | |
var chrome_count = 0; | |
app.get('/', function(req, res){ | |
startChrome(chrome_count++,9222,function chromeStared(err,id,chrome){ | |
res.send('Chrome '+id+' Started\r\n'); |
require 'httparty' | |
require 'nokogiri' | |
USERNAME = "email-used@in-registration.com" | |
PASSWORD = "your-password-here" | |
COOKIE_FILE = 'cookies.txt' # by example | |
class ElixirsipsDownloader | |
FEED_URL = "https://elixirsips.dpdcart.com/feed" | |
LOGIN_URL = "http://elixirsips.dpdcart.com/subscriber/content" |
<?php | |
/** | |
* Simple Magento integration test PHPUnit bootstrap | |
*/ | |
chdir(__DIR__ . '/../..'); | |
$mageFile = 'htdocs/app/Mage.php'; | |
umask(0); |
var CreditCard = { | |
CARDS: { | |
Visa: /^4[0-9]{12}(?:[0-9]{3})?$/, | |
MasterCard: /^5[1-5][0-9]{14}$/, | |
DinersClub: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/, | |
Amex: /^3[47][0-9]{13}$/, | |
Discover: /^6(?:011|5[0-9]{2})[0-9]{12}$/ | |
}, | |
TEST_NUMBERS: $w('378282246310005 371449635398431 378734493671000 '+ | |
'30569309025904 38520000023237 6011111111111117 '+ |
delimiter ;; | |
drop procedure if exists build_catalog;; | |
create procedure build_catalog(IN categories INT, IN products INT) | |
begin | |
SET @category_count = 1; | |
SET @CATNAMEPREFIX = "Category "; | |
SET @CATURLKEYPREFIX = "cat-"; | |
SET @CATURLPATHPREFIX = "catpath-"; | |
SET @ROOTCATEGORY = 2; | |
SET @INCLUDEINMENU = 1; |