I hereby claim:
- I am madd0 on github.
- I am madd0 (https://keybase.io/madd0) on keybase.
- I have a public key ASAxL9uKy0Yywt-vSKzucHFvIn7MlzA6UprY6zBEj5fFDgo
To claim this, I am signing this object:
let Start=startofday(ago(2d)); | |
let Stop=startofday(ago(1d)); | |
requests | |
| where timestamp >= Start and timestamp < Stop | |
| summarize Count=count() by bin(timestamp, 1h) | |
| union ( | |
range x from 1 to 1 step 1 | |
| mv-expand timestamp=range(Start, Stop, 1h) to typeof(datetime) | |
| extend Count = 0 | |
) |
$BaseDir = "C:\sources" | |
Function go { | |
[CmdletBinding()] | |
param () | |
DynamicParam { | |
# Set the dynamic parameters' name | |
$ParameterName = 'Repo' | |
# Create the dictionary |
I hereby claim:
To claim this, I am signing this object:
<Project | |
xmlns="http://schemas.microsoft.com/developer/msbuild/2003" | |
ToolsVersion="4.0" | |
DefaultTargets="Demo" > | |
<Target Name="Demo"> | |
<PropertyGroup> | |
<CurrentDate>$([System.DateTime]::Now.ToString(yyyyMMdd-mmss))</CurrentDate> | |
</PropertyGroup> |
<?xml version="1.0" encoding="utf-8"?> | |
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet"> | |
<CodeSnippet Format="1.0.0"> | |
<Header> | |
<SnippetTypes> | |
<SnippetType>Expansion</SnippetType> | |
</SnippetTypes> | |
<Title>filehead</Title> | |
<Author>Mauricio Díaz Orlich</Author> | |
<Description> |
 | |
{ | |
var transactionOptions = new TransactionOptions(); | |
transactionOptions.IsolationLevel = IsolationLevel.ReadCommitted; | |
transactionOptions.Timeout = TransactionManager.MaximumTimeout; | |
return new TransactionScope(TransactionScopeOption.Required, transactionOptions); | |
} | |
} |
// From http://msdn.microsoft.com/library/ms244737.aspx | |
public class Resource : IDisposable | |
{ | |
private IntPtr nativeResource = Marhsal.AllocHGlobal(100); | |
private AnotherResource managedResource = new AnotherResource(); | |
// Dispose() calls Dispose(true) | |
public void Dispose() | |
{ |
C:\>diskpart | |
Microsoft DiskPart version 6.1.7601 | |
Copyright (C) 1999-2008 Microsoft Corporation. | |
On computer: XXXXXX | |
DISKPART> create vdisk file=C:\VHDs\Win8CP.vhd type=expandable maximum=60000 | |
100 percent completed |
namespace Madd0.Azure | |
{ | |
using System; | |
using System.Configuration; | |
using System.Globalization; | |
using Microsoft.WindowsAzure.ServiceRuntime; | |
/// <summary> | |
/// Provides access to configuration files for applications that can be used on the cloud and on premise. | |
/// </summary> |