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 NOCOUNT ON; | |
SET XACT_ABORT ON; | |
DECLARE @ItemList TABLE ( | |
Num INT PRIMARY KEY IDENTITY (1, 1), | |
ItemId INT | |
) | |
INSERT INTO @ItemList (ItemId) | |
SELECT Id |
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
Update-ExecutionPolicy | |
Set-WindowsExplorerOptions -EnableShowFileExtension -EnableShowFullPathInTitleBar -EnableExpandToOpenFolder -EnableShowRibbon | |
Set-TaskbarOptions -Size Large -Combine Never | |
cinst googlechrome | |
cinst notepad2 | |
cinst 7zip | |
cinst setpoint | |
cinst git | |
cinst git-credential-winstore |
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
chrome | |
lastpass chrome | |
cinst notepad2 | |
cinst dropbox | |
cinst git-credential-winstore | |
cinst gitextensions | |
google drive | |
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
static function OnBeforeResponse(oSession: Session) { | |
// ... | |
// Spoofs the Cyan Web API CORS headers, allowing apps to run in a browser. | |
if (oSession.HostnameIs("api-dev.cyan.us.com") && oSession.oResponse) { | |
if (!oSession.HTTPMethodIs("OPTIONS")) { | |
oSession.oResponse.headers.Add("Access-Control-Allow-Origin", oSession.oRequest.headers["Origin"]); | |
oSession.oResponse.headers.Add("Access-Control-Allow-Credentials", "true"); | |
oSession.oResponse.headers.Add("Access-Control-Allow-Headers", "Authorization, X-Api-Version, X-Cyan-TenantAccessKey, Content-Type"); | |
oSession.oResponse.headers.Add("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE"); |
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
/// <summary> | |
/// Provides a synchronization context for unit tests. | |
/// </summary> | |
public sealed class TestSynchronizationContext: SynchronizationContext | |
{ | |
/// <summary> | |
/// A reference to the <c>TestSynchronizationContext</c> that has posted or sent a delegate to the current | |
/// thread. | |
/// </summary> | |
[ThreadStatic] |
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
$path = $env:userprofile + "\Code\TFS_Project" | |
Set-Location $path | |
$ErrorActionPreference = "Stop" | |
$tf = [System.IO.Path]::GetFullPath($env:vs100comntools + "..\IDE\TF.exe") | |
$tfpt = "${env:programfiles(x86)}\Microsoft Team Foundation Server 2010 Power Tools\TFPT.exe" | |
$history = & $tf history . /noprompt /format:brief /recursive | |
$history = $history[2..($history.Length - 1)] | |
"Converting {0} changesets..." -f $history.Length |