This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Microsoft.ApplicationServer.Http; | |
using System.ServiceModel; | |
using System.Net.Http; | |
using System.ServiceModel.Web; | |
using System.Net.Http.Headers; | |
using WebApiContrib.Formatters.JsonNet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace YourWebApp.Controllers | |
{ | |
using System; | |
using System.Text; | |
using System.Web.Mvc; | |
using System.Web.Routing; | |
using System.Web.Security; | |
using Microsoft.IdentityModel.Protocols.WSFederation; | |
using Microsoft.IdentityModel.Web; | |
using System.Net; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## usage | |
## Download gmail-backup from www.gmail-backup.com and put it under "tools" folder relative to the script | |
## The idea is to download emails in small batches to avoid network issues and make a re-start easier. It also helps to avoid huge folders | |
## INPUT: the storage folder, amount of days to make the cut, start date, end date, credentials | |
## EXAMPLE: | |
## new-backup "d:\mail" 30 (get-date -year 2004 -month 01 -day 01) (get-date -y 2006 -month 01 -day 01) "youremail" "yourpwd" | |
function log($msg) { | |
$msg = (get-date).ToString("yyyyMMdd hh:mm:ss") + " $msg" | |
add-content log.txt $msg |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Southworks.WindowsAzure | |
{ | |
using System; | |
using System.Web.Caching; | |
/// <summary> | |
/// Represents a cache dependency that uses Windows Azure queues to detect if an item in cache has changed | |
/// </summary> | |
/// <remarks>Sending a message a certain queue (specified using the <see cref="CloudQueueCacheDependencyMonitor" />) will invalidate the cache item </remarks> | |
/// <example> |
NewerOlder