Skip to content

Instantly share code, notes, and snippets.

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

Rizwan webbyfox

🏠
/var/www
View GitHub Profile
@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);
@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 / 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
import csv
from datetime import date
#filename = date.today().strftime("%d-%m-%Y")
filename = '22467279624.txt'
country_list = {
'GB': 'UK',
'DE': 'GERMANY',
import csv
import calendar
from datetime import datetime
current = datetime.now()
filename = str(current.strftime('%m%Y')) + str('.csv')
Environment:
Request Method: GET
Request URL: http://localhost:8000/matrimonial/~imageupload/
Django Version: 1.10.5
Python Version: 3.6.0
Installed Applications:
('django.contrib.auth',
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from django.conf.urls import url
from . import views
urlpatterns = [
url(
regex=r'^$',
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.conf import settings
from django.conf.urls import include, url
from django.conf.urls.static import static
from django.contrib import admin
from django.views.generic import TemplateView
from django.views import defaults as default_views
@webbyfox
webbyfox / aspnet-mvc.gitignore
Created October 11, 2017 19:47 — forked from indyfromoz/aspnet-mvc.gitignore
.Gitignore for ASP.NET MVC
###################
# compiled source #
###################
*.com
*.class
*.dll
*.exe
*.pdb
*.dll.config
*.cache
@webbyfox
webbyfox / gist:3b50aa85a8eeccc86e696efbad39f318
Last active January 1, 2018 21:10 — forked from ankitnetwork18/gist:4509792
mysql: dump of indian cities and states
-- Postgres SQL Dump
-- version 2.11.6
-- http://www.phpmyadmin.net
--
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `stgwordpress`
--