Skip to content

Instantly share code, notes, and snippets.

View orenmazor's full-sized avatar

Oren Mazor orenmazor

  • AgileBits (1Password)
  • Toronto, ON, Canada
View GitHub Profile
@orenmazor
orenmazor / node_getclicky.js
Created October 18, 2011 17:16
talking to getclicky from node
var http = require('http');
var querystring = require('querystring');
function getclick(remoteaddr,href,title,ref,ua)
{
var site_id = '';
var sitekey_admin = '';
var params = {"site_id": site_id,
"sitekey_admin":sitekey_admin,
"ip_address":remoteaddr,
@orenmazor
orenmazor / popclientdump.py
Created August 8, 2011 18:38
lightweight gmail downloader
# quick hack to download a bunch of gmail emails for testing. this is the easiest way to do this the hardway.
from poplib import POP3_SSL, error_proto
from sys import argv
from time import time
from argparse import ArgumentParser
def gmaildump(username, password, quantity):
gmail = POP3_SSL("pop.gmail.com", 995)
# gmail.set_debuglevel(5)