Skip to content

Instantly share code, notes, and snippets.

View nnieslan's full-sized avatar
🕳️
how am I not myself?

Nick Nieslanik nnieslan

🕳️
how am I not myself?
  • Plume
  • Denver, CO
View GitHub Profile
@nnieslan
nnieslan / build-functions.ps1
Created July 22, 2014 20:33
Example Dynamic PowerShell MSBuild invocation
<#
.SYNOPSIS
Displays a formated string message with color-coding and borders
.PARAMETER message
The message to display
#>
function write-header
{
@nnieslan
nnieslan / get.tfs.ps1
Created August 7, 2012 19:06
Powershell function(s) to use TFS API services
function Get-Tfs
{
param(
[parameter(Mandatory=$true,
Position=0,
HelpMessage="The TFS Server Url containing the Team Project Collection.")]
[alias("TFS")]
[string] $serverName,
[parameter(Mandatory=$false,
Position=1,
@nnieslan
nnieslan / Http-RestCommunicate.ps1
Created August 7, 2012 13:32
Powershell Http Command execution function with JSON <-> Powershell hashtable helpers. Can be used to communicate with RESTful API
<#
.SYNOPSIS
Converts a JSON string into a PowerShell hashtable using the .NET System.Web.Script.Serialization.JavaScriptSerializer
.PARAMETER json
The string of JSON to deserialize
#>
function ConvertFrom-Json
{
param(
[string] $json