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
#!/bin/sh -e | |
find . -name .git -type d | while read dir; do repo=$(dirname $dir); echo $repo; git -C $repo status --short --branch; echo ""; done |
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 serviceRequest = new WebClient()) | |
{ | |
string token = GetAuthorizationToken("yourservice","owner", "NW1wr7/nlgggTFnB5L7nDBrOLC+o1E1P4ZZqPaP2mY4="); | |
serviceRequest.Headers["Authorization"] = string.Format("WRAP access_token=\"{0}\"", token); | |
string response = serviceRequest.DownloadString(new Uri(url)); | |
return response; | |
} | |
// connects to ACS and gets WRAP Authorization token |
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
# Print all project items | |
Recurse-Project -Action {param($item) "`"$($item.ProjectItem.Name)`" is a $($item.Type)" } | |
# Function to format all documents based on https://gist.github.com/984353 | |
function Format-Document { | |
Recurse-Project -Action { param($item) | |
if($item.Type -eq 'Folder' -or !$item.Language) { | |
return | |
} | |