Skip to content

Instantly share code, notes, and snippets.

View eugenepyvovarov's full-sized avatar
:octocat:

Eugene Pyvovarov eugenepyvovarov

:octocat:
View GitHub Profile
<?php
set_time_limit(0);
require '../../common/wlGenerator.php';
include_once '../../common/triggermail.php';
require 'SnapFish.php';
include_once 'snapfish_order_completed.php';
/**
* WLHandler class
* Work list handler for Snapfish
* This work list generator will create a work list
<?php
set_time_limit(0);
require '../../common/wlGenerator.php';
include_once '../../common/triggermail.php';
require 'SnapFish.php';
include_once 'snapfish_order_completed.php';
/**
* WLHandler class
* Work list handler for Snapfish
* This work list generator will create a work list
<?php
set_time_limit(0);
require '../../common/wlGenerator.php';
include_once '../../common/triggermail.php';
require 'SnapFish.php';
include_once 'snapfish_order_completed.php';
/**
* WLHandler class
* Work list handler for Snapfish
* This work list generator will create a work list
@eugenepyvovarov
eugenepyvovarov / gist:185748
Created September 12, 2009 07:34
to run script you need first to create lock folder in the same place
#!/usr/bin/env php
<?php
declare(ticks=1);
// setup signal handlers
pcntl_signal(SIGTERM, "sig_handler");
pcntl_signal(SIGHUP, "sig_handler");
$children = array();
@eugenepyvovarov
eugenepyvovarov / gist:158410
Created July 29, 2009 21:39 — forked from howiworkdaily/gist:106077
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10
======================================================
Setting up Django using Apache/mod_wsgi on Ubuntu 8.10
======================================================
This article will cover setting up Django using Apache/mod_wsgi on Ubuntu
8.10. The article is targeted at a production environment, but keep in mind
this is a more generalized environment. You may have different requirements,
but this article should at least provide the stepping stones.
The article will use distribution packages where nesscary. As of 8.10 the
@eugenepyvovarov
eugenepyvovarov / fabric script
Created July 29, 2009 21:39 — forked from anonymous/gist:156623
This fabric file makes setting up and deploying a django application easier
"""
This fabric file makes setting up and deploying a django application much
easier, but it does make a few assumptions. Namely that you're using Git,
Apache and mod_wsgi and your using Debian or Ubuntu. Also you should have
Django installed on your local machine and SSH installed on both the local
machine and any servers you want to deploy to.
_note that I've used the name project_name throughout this example. Replace
this with whatever your project is called._