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
#requires -version 4.0 | |
#dot source the script with the New-GitHubGist function | |
. C:\scripts\New-GitHubGist.ps1 | |
Function SendTo-Gist { | |
[cmdletbinding()] | |
Param( | |
[Parameter(Position = 0)] | |
[ValidateNotNullorEmpty()] |
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
# This should only be used in a development environment and is for demonstration purposes only | |
# Use at your own risk | |
# This adds an attribute to the user class | |
# Written by Andy Schneider, http://get-powershell.com | |
Function New-OID { | |
$Prefix="1.2.840.113556.1.8000.2554" | |
$GUID=[System.Guid]::NewGuid().ToString() | |
$Parts=@() | |
$Parts+=[UInt64]::Parse($guid.SubString(0,4),"AllowHexSpecifier") |
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
# | |
# Assumptions | |
# | |
# 1. If you have a Octopus release deployed, say 1.0.0.73, there is a git | |
# tag set for that commit in GitHub that is "v1.0.0.73". | |
# | |
# 2. You have TeamCity label each successful build in GitHub with the format | |
# "v{build number}. Sidenote: it appears that TeamCity only labels the | |
# default branch, but not feature branches. | |
# |
NewerOlder