Skip to content

Instantly share code, notes, and snippets.

{
"_id" : ObjectId("4defd2713fce2e9bc35d09f0"),
"author" : "Bob",
"date" : ISODate("2011-06-08T19:49:48.809Z"),
"body" : "Is it hot in here?",
"votes" : 0,
"answers" : [
{
"author" : "evan",
"date" : ISODate("2011-06-08T19:48:54.388Z"),
@evandhoffman
evandhoffman / use_default_quota.ps1
Created May 27, 2011 13:35
Powershell to force set all user mailboxes to use the database quota defaults.
[PS] C:\Windows\system32>get-mailbox -filter { usedatabasequotadefaults -eq $false -AND recipientTypeDetails -eq 'usermailbox' } | set-mailbox -UseDatabaseQuotaDefaults $true
@evandhoffman
evandhoffman / parsebind.pl
Created May 26, 2011 22:00
Parses bind query logs to determine queries per second.
#!/usr/bin/perl
#use Date::Parse;
use Time::ParseDate;
my $line_num = 0;
my $first_line = 0;
my $oldest_record = 0;
my $line = '';
my $date = 0;