This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require_once 'app/Mage.php'; umask(0); Mage::app('default'); | |
setlocale(LC_MONETARY, 'en_US'); | |
$customers = Mage::getModel('customer/customer')->getCollection(); | |
$count = 0; | |
foreach ($customers as $customer) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Add "alias tadd='python /path/to/agile.py'" to your | |
# .bashrc or .bash_profile. I put my agile.py in dropbox | |
# so I have access to it on every computer. | |
"""Agile Task Adder""" | |
__author__ = '[email protected] (Mark Sanborn)' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sample usage: "checksites.py eriwen.com nixtutor.com ..." | |
import pickle, os, sys, logging | |
from httplib import HTTPConnection | |
from smtplib import SMTP | |
def email_alert(alert,subject='You have an alert'): | |
fromaddr = "[email protected]" | |
toaddrs = "[email protected]" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pickle, pprint, time, os | |
import httplib | |
import smtplib | |
def emailAlert(alert,subject='You have an alert'): | |
fromaddr = "[email protected]" | |
toaddrs = "[email protected]" | |
# Add the From: and To: headers at the start! |
NewerOlder