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
param( | |
[string]$param1 = "Hello World", | |
[int]$param2 = 1, | |
[string]$param3 = "false", | |
[bool]$param4 = [System.Convert]::ToBoolean($param3)) | |
Write-Host "SYSTEM_TEAMPROJECT: $ENV:SYSTEM_TEAMPROJECT" | |
Write-Host "SYSTEM_TEAMFOUNDATIONSERVERURI: $ENV:SYSTEM_TEAMFOUNDATIONSERVERURI" | |
Write-Host "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: $ENV:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI" | |
Write-Host "SYSTEM_COLLECTIONID: $ENV:SYSTEM_COLLECTIONID" |
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
public class Role | |
{ | |
public static Role Author { get; } = new Role(0, "Author"); | |
public static Role Editor { get; } = new Role(1, "Editor"); | |
public static Role Administrator { get; } = new Role(2, "Administrator"); | |
public static Role SalesRep { get; } = new Role(3, "Sales Representative"); | |
private Role(int val, string name) | |
{ | |
Value = val; |
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
[CmdletBinding()] | |
Param( | |
[Parameter(ValueFromPipeline=$true)] | |
[ValidateNotNullOrEmpty()] | |
[ValidateScript({if (![string]::IsNullOrEmpty($_) -And (Test-Path $_)) { $True } else { $False }})] | |
[String]$metricsExe = $null, | |
[ValidateNotNullOrEmpty()] | |
[String]$outputDirectory = $ENV:BUILD_ARTIFACTSTAGINGDIRECTORY, | |
[ValidateNotNullOrEmpty()] | |
[String]$srcDirectoryPath = $ENV:BUILD_SOURCESDIRECTORY, |
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 2.0 | |
$STD_OUTPUT_HANDLE = -11 | |
$source = @" | |
public delegate bool SetConsoleFont( | |
IntPtr hWnd, | |
uint DWORD | |
); | |
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
cinst webpi -y | |
cinst VisualStudioCode -y | |
cinst githubforwindows -y | |
cinst nodejs -i | |
npm install -g yo | |
npm install -g generator-aspnet | |
npm install -g generator-docker |
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
choco install googlechrome.canary googlechrome 1password dropbox slack conemu notepad2 adobereader visualstudiocode git nodejs 7zip sysinternals windirstat openlivewriter licecap paint.net -y |
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
Set-ExecutionPolicy RemoteSigned -Force | |
iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) |
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
#!/usr/bin/python | |
import os | |
import sys | |
import csv | |
import datetime | |
import time | |
import twitter | |
def test(): |
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
[CmdletBinding()] | |
Param( | |
[string]$directoryPath, | |
[string]$filePath | |
) | |
$suffix = $ReleaseId | |
Write-Verbose "Directory path $directoryPath" | |
Write-Verbose "File path: $filePath" | |
Write-Verbose "Actual suffix: $suffix" |
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
Write-Host "SYSTEM_TEAMPROJECT: $ENV:SYSTEM_TEAMPROJECT" | |
Write-Host "SYSTEM_TEAMFOUNDATIONSERVERURI: $ENV:SYSTEM_TEAMFOUNDATIONSERVERURI" | |
Write-Host "SYSTEM_TEAMFOUNDATIONCOLLECTIONURI: $ENV:SYSTEM_TEAMFOUNDATIONCOLLECTIONURI" | |
Write-Host "SYSTEM_COLLECTIONID: $ENV:SYSTEM_COLLECTIONID" | |
Write-Host "SYSTEM_DEFAULTWORKINGDIRECTORY: $ENV:SYSTEM_DEFAULTWORKINGDIRECTORY" | |
Write-Host "BUILD_DEFINITIONNAME: $ENV:BUILD_DEFINITIONNAME" | |
Write-Host "BUILD_DEFINITIONVERSION: $ENV:BUILD_DEFINITIONVERSION" | |
Write-Host "BUILD_BUILDNUMBER: $ENV:BUILD_BUILDNUMBER" | |
Write-Host "BUILD_BUILDURI: $ENV:BUILD_BUILDURI" | |
Write-Host "BUILD_BUILDID: $ENV:BUILD_BUILDID" |
NewerOlder