Skip to content

Instantly share code, notes, and snippets.

View xinmyname's full-sized avatar

Andy Sherwood xinmyname

View GitHub Profile
@xinmyname
xinmyname / git-status-recursive.sh
Last active April 5, 2018 17:07 — forked from gpolitis/git-status-recursive.sh
Recursive git status
#!/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
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
@xinmyname
xinmyname / Examples
Created May 21, 2011 21:04 — forked from davidfowl/Examples
Powershell function that recursively walks all project items within a project and lets you execute an action on each one
# 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
}