This file contains 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
Login-AzureRmAccount | |
$OutFilePath = "D:\sql-databases.csv" | |
ForEach ($resourceGroup in Get-AzureRmResourceGroup) | |
{ | |
ForEach ($sqlServer in Get-AzureRMSqlServer -ResourceGroupName $resourceGroup.ResourceGroupName) | |
{ | |
ForEach($sqlDatabase in Get-AzureRMSqlDatabase -ServerName $sqlServer.ServerName -ResourceGroupName $resourceGroup.ResourceGroupName) |
This file contains 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
pageViews | |
| where timestamp >= ago(7d) | |
| summarize(count(client_Browser)) by client_Browser | |
| render piechart |
This file contains 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
// Top 25 Server Exceptions | |
exceptions | |
| where timestamp >= ago(4h) and client_Type == "PC" | |
| summarize count(problemId) by problemId, client_Type, method | |
| order by count_problemId | |
| take 25 |
This file contains 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
availabilityResults | |
| where timestamp >= ago(30d) | |
| summarize AvailabilityPercentage=(sum(todouble(success)) / count(success)) * 100, Failures=count(success)-sum(todouble(success)), TotalTests=count(success) by TestName=name | |
| order by Failures asc |
This file contains 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
@( Get-Project -All | | |
? { $_.ProjectName } | | |
% { Get-Package -ProjectName $_.ProjectName } ) | | |
Sort -Unique | | |
% { $pkg = $_ ; Try { (New-Object System.Net.WebClient).DownloadFile($pkg.LicenseUrl, 'c:\dev\licenses\' + $pkg.Id + ".txt") } Catch [system.exception] { Write-Host "Could not download license for $pkg" } } |
This file contains 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
# Remove the /all if you receive any errors | |
& dism /online /get-features | more | |
& dism /online /enable-feature /FeatureName:IIS-CertProvider /all | |
& dism /online /enable-feature /FeatureName:IIS-WindowsAuthentication /all | |
& dism /online /enable-feature /FeatureName:IIS-ClientCertificateMappingAuthentication /all | |
& dism /online /enable-feature /FeatureName:IIS-StaticContent /all | |
& dism /online /enable-feature /FeatureName:IIS-DefaultDocument /all | |
& dism /online /enable-feature /FeatureName:IIS-WebSockets /all |
This file contains 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
// | |
// TipCalculatorTests.m | |
// TipCalculatorTests | |
// | |
// Created by Brandon Linton on 1/25/14. | |
// Copyright (c) 2014 Brandon. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> |
This file contains 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.ComponentModel; | |
using System.Runtime.CompilerServices; | |
using System.Threading; | |
namespace WoodChipper.Models | |
{ | |
public class LogLevelStats : INotifyPropertyChanged | |
{ | |
public virtual int DebugLines |
This file contains 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
<html> | |
<head> | |
</head> | |
<body> | |
<a href="#">Click me, bro</a> | |
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.min.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('a').click(function(){ |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>@ViewBag.Title</title> | |
<link href="@Url.Content("~/Content/css/bootstrap.css")" rel="stylesheet" type="text/css" /> | |
<link href="@Url.Content("~/Content/css/bootstrap-responsive.css")" rel="stylesheet" type="text/css" /> | |
<script src="@Url.Content("~/Scripts/jquery-1.7.1.min.js")" type="text/javascript"></script> | |
<script src="@Url.Content("~/Scripts/bootstrap.js")" type="text/javascript"></script> | |
<script src="@Url.Content("~/Scripts/modernizr-1.7.min.js")" type="text/javascript"></script> |
NewerOlder