Skip to content

Instantly share code, notes, and snippets.

View scottcowan's full-sized avatar

Scott Cowan scottcowan

View GitHub Profile
@scottcowan
scottcowan / queue-build.ps1
Last active October 27, 2016 12:32
VSTS Queue a build
#In VSTS set Options > Allow Scripts to Access OAuth Token or you'll get an error
invoke-webrequest
-Method POST
https://<your site>/DefaultCollection/Digital%20Apprenticeship%20Service/_apis/build/builds?api-version=2.0
-Body "{'definition':{'id': 1}}"
-headers @{"Authorization"="Bearer $(System.AccessToken)"}
-usebasicparsing
-ContentType "application/json"
@scottcowan
scottcowan / windows developer setup
Last active August 29, 2015 14:01
windows developer setup
# install chocolatey before running http://chocolatey.org/
#note this doesn't install the web components (go into programs and features and change the install for visual studio)
cinst VisualStudio2013Premium
#cinst VS2013.1
cinst VS2013.2
cinst resharper
cinst notepadplusplus
cinst fiddler4