I hereby claim:
- I am theramiyer on github.
- I am ramiyer (https://keybase.io/ramiyer) on keybase.
- I have a public key ASBCIQSZ0F2g_AMd-1IUAnHWH-W_50RJCNAI0Ha1Oz1GnQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Jekyll is, no doubt, one of the best blog-aware static site generators available out there. While hosting the Jekyll site on GitHub Pages seems to be a very common practice, there are situations where we need the code source-controlled privately. GitHub charges for private repositories. BitBucket is the next go-to choice.
If the code is stored on BitBucket, GitHub pages may not be a possible hosting option, which brings us to Amazon Web Services. This gist is about having the code on BitBucket, having Wercker build the site and deploy it to AWS S3, and then having CloudFront deliver the site.
Here's a gist of how this is done:
build
and deploy
, which, of course, builds the site using Jekyll (on a R#region Initial variable declaration | |
$Uri = "https://www.microsoft.com/security/portal/definitions/whatsnew.aspx" | |
$ScepVersionInventoryPath = "C:\Users\Ram\Downloads\SCEP Version History.csv" | |
#endregion | |
Clear-Host | |
# Function to convert UTC time to local time. | |
Function Get-LocalTime($UtcTime) | |
{ | |
$TimeZone = [System.TimeZoneInfo]::FindSystemTimeZoneById('Central Standard Time') | |
$LocalTime = [System.TimeZoneInfo]::ConvertTimeFromUtc($UtcTime, $TimeZone) |
$Date = Get-Date -UFormat %Y%m%d | |
$FileName = "TotalItemSizeReport" + $Date + ".csv" | |
$DbList = (Get-MailboxDatabase | select Name -ExpandProperty Name | Sort-Object) #Query a list of all databases and sort it. | |
$SizeTable = @{} #Define an empty hash table. | |
foreach ($Db In $DbList) | |
{ | |
$TotalItemSize = (Get-MailboxStatistics -Database HQMB1DB1 | ForEach-Object {$_.TotalItemSize.Value.ToBytes()} | Measure-Object -Sum).Sum/1GB | |
$SizeTable.Add($DB,$TotalItemSize) #Add content to the hash table. | |
} | |
$SizeTable.GetEnumerator() | Sort-Object -Property Name | Export-Csv "\\Server\Path\$FileName" |