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 | |
param ( | |
[ValidateScript({$_ | Test-Path -PathType Container})] | |
[Parameter(Mandatory=$true)] | |
[string] $folder, | |
[switch] $backup | |
) | |
function killScc(){ | |
gci -path $folder -i *.vssscc,*.vspscc -recurse | Remove-Item -force -verbose |
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
function Cleanup-GitBranches() | |
{ | |
$branches = git branch --merged | ?{$_ -notmatch "\* master"} | ?{$_ -notmatch "master"} | ?{$_ -notmatch "\* *"} | %{$_.Trim() } | |
if (-not $branches) { | |
Write-Host "No merged branches detected" | |
return | |
} | |
Write-Host $branches |
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 | |
param( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$databaseRootDirectory | |
) | |
$ErrorActionPreference = 'Stop' | |
Set-StrictMode -Version 'Latest' | |
$fileGroupSpecification = "ON [PRIMARY]" |
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 | |
param( | |
[Parameter(Mandatory=$true)] | |
[string] | |
$databaseRootDirectory | |
) | |
$ErrorActionPreference = 'Stop' | |
Set-StrictMode -Version 'Latest' | |
$fileGroupSpecification = "ON [PRIMARY]" |
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( | |
[parameter(mandatory=$true)] | |
[string] | |
$repositoryRoot, | |
[parameter()] | |
[string] | |
$installRoot = $env:ProgramFiles | |
) |
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 (var shell = PowerShell.Create(sessionState)) | |
{ | |
var parameters = new Dictionary<string, object> | |
{ | |
{"Path", tempFilePath}, | |
{"Delimiter", ','} | |
}; | |
var command = shell.AddCommand("Import-Csv").AddParameters(parameters); | |
var results = command.Invoke(); |
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 SearchHub | |
{ | |
private readonly IEnumerable<IRepository> repositories; | |
public SearchHub(IEnumerable<IRepository> repositories) | |
{ | |
this.repositories = repositories; | |
} | |
public IEnumerable<WorkItem> Search(string criteria, ErrorLog errorLog) |
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( | |
[parameter()] | |
[string] | |
$repositoryRoot, | |
[parameter()] | |
[string] | |
$installRoot = $env:ProgramFiles | |
) |
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
TFS.module("SteveGodbold.TFS.Analytics", [], function(){ | |
function resolveAnalyticsId() { | |
var currentHost = window.location.hostname; | |
if (currentHost.indexOf('some-url') { | |
return 'UA-00000000-1'; | |
} | |
return 'UA-00000000-2'; | |
} |
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
TFS.module("SteveGodbold.TFS.Branding", ["TFS.Host","TFS.Admin"], function(){ | |
function buildFooter() { | |
return '<div id="page-footer"><p>YOUR CONTENT HERE</p></div>'; | |
} | |
function setFooter(footer) { | |
$('.content-section').after(footer) | |
$('#page-footer').css({ | |
"display" : "block", |
OlderNewer