Skip to content

Instantly share code, notes, and snippets.

View webbyfox's full-sized avatar
🏠
/var/www

Rizwan webbyfox

🏠
/var/www
View GitHub Profile
import csv
from datetime import date
#filename = date.today().strftime("%d-%m-%Y")
filename = '22467279624.txt'
country_list = {
'GB': 'UK',
'DE': 'GERMANY',
@webbyfox
webbyfox / bootstrap.py
Created June 24, 2013 10:56
Plone 4.3 bootstrap.py file
##############################################################################
#
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
@webbyfox
webbyfox / GadgetinBox-sendEmails.php
Created November 15, 2012 20:43
Amazon Product reviews.
<?php
error_reporting(E_ERROR);
require_once "Mail.php";
$lines = file('Emails.txt');
echo "sending emails...<br><br>";
foreach ($lines as $line_num => $line) {
//echo $line;
@webbyfox
webbyfox / sendemail.php
Created November 5, 2012 20:43
Sending email via Gmail using Google SMTP server
<?php
error_reporting(E_ERROR);
require_once "Mail.php";
$lines = file('orders.txt');
echo "sending emails...";
foreach ($lines as $line_num => $line) {
$line_array = explode(" ", $line);