Skip to content

Instantly share code, notes, and snippets.

##################################################
#
##################################################
param(
[Parameter(Mandatory = $true)][String]$subscriptionId,
[Parameter(Mandatory = $true)][String]$storageAccountName,
[Parameter(Mandatory = $true)][String]$affinityGroupName,
[Parameter(Mandatory = $true)][String]$imageName = 'MSFT__Windows-Server-2012-Datacenter-201208.01-en.us-30GB.vhd',
[Parameter(Mandatory = $true)][String]$adminPassword,
# Server and Project configs.
$CollectionUrl = "https://[TEAM FOUNDATION SERVER]/[PROJECT COLLECTION]"
$projects = ("[PROJECT 1]", "PROJECT 2")
# Work Item Locations
$baseLocation = Split-Path -parent $PSCommandPath
$witdLocation = $baseLocation + "\Core.Process\WorkItem Tracking\TypeDefinitions"
# Admin Import Command
$WitAdmin = "${env:ProgramFiles(x86)}\Microsoft Visual Studio 12.0\Common7\IDE\witadmin.exe"
@leniency
leniency / Package.proj
Created April 19, 2014 19:54
MsBuild proj file to create a Nuget package. Uses msbuildtask library for git stuff. This assumes your git tags are in the form of #.# (ie, 1.2) for versioning.
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Package">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
<Configuration Condition="$(Configuration) == ''">Release</Configuration>
<Platform Condition="$(Platform) == ''">AnyCPU</Platform>
<BuildDir>bin\$(Configuration)\</BuildDir>
<OutputPath>bin\$(Configuration)\</OutputPath>
<ProjectName Condition="$(ProjectName) == ''"></ProjectName>
<ProjectFile>$(ProjectName).csproj</ProjectFile>
@leniency
leniency / core.ts
Created April 17, 2014 22:59
This creates a global point for KendoUI notifications. Call as core.notify.success('yay!');
/// <reference path="typings/jquery/jquery.d.ts" />
/// <reference path="typings/kendo.all.d.ts" />
interface JQuery {
kendoNotification(options: any): JQuery;
}
module core {
/**
/* Copyright (c) 2010 Marcus Westin
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in