Skip to content

Instantly share code, notes, and snippets.

View albertsun's full-sized avatar

Albert Sun albertsun

View GitHub Profile
'use strict';
var crypto = require('crypto');
var debug = require('debug')('withings');
var request = require('request');
var _ = require('lodash');
var EMAIL = process.env.EMAIL;
var PASSWORD = process.env.PASSWORD;
# ruby imap.rb > mail.csv
require 'net/imap'
username = ''
password = ''
imap = Net::IMAP.new('imap.gmail.com','993',true)
imap.login(username, password)
# imap.list("", "*").map{|i| i.name}
@onyxfish
onyxfish / fabfile.py
Created February 9, 2010 23:05
Chicago Tribune News Applications fabric deployment script
from fabric.api import *
"""
Base configuration
"""
env.project_name = '$(project)'
env.database_password = '$(db_password)'
env.site_media_prefix = "site_media"
env.admin_media_prefix = "admin_media"
env.newsapps_media_prefix = "na_media"