Skip to content

Instantly share code, notes, and snippets.

@originalmind
originalmind / set-path-portablegit.ps1
Created November 25, 2013 04:47
Set the PortableGit (supplied by GitHub for Windows) path for use in PowerShell console.
# Usage: Call this script from your PowerShell profile:
# & c:\path\to\scripts\set-path-portablegit.ps1
# todo: set GITHUB_ROOT from registry
Set-Variable -Option Constant -Name GITHUB_ROOT -Value ${Env:USERPROFILE}\AppData\Local\GitHub\
# Get the most recently created version of PortableGit
if (!(Test-Path $GITHUB_ROOT)) {
Write-Host Sorry can''t find GitHub path.
@originalmind
originalmind / set-gitbin-start-console.bat
Last active December 29, 2015 07:29
Add the PortableGit (supplied by GitHub for Windows) bin directory to your PATH variable and then start your console
@rem Usage: set-gitbin-start-console.bat "C:\path\to\my\console.exe"
@echo off
if "%1" == "" GOTO ErrorPathNotSpecified
@rem limit the scope of the changes to environment variables
setlocal
@rem todo: set GITHUB_ROOT from registry
@originalmind
originalmind / Report.WER
Created October 2, 2012 00:40
MsDepSvc.exe crash
Version=1
EventType=CLR20r3
EventTime=129936114716630616
ReportType=2
Consent=1
ReportIdentifier=76d0e33b-0c28-11e2-a30c-005056a03219
IntegratorReportIdentifier=76d0e33a-0c28-11e2-a30c-005056a03219
Response.type=4
Sig[0].Name=Problem Signature 01
Sig[0].Value=msdepsvc.exe
@originalmind
originalmind / gist:3815479
Created October 2, 2012 00:36
Powershell command causing msdepsvc crash
$webDeployArgs = '-verb:sync -retryAttempts:10 -retryInterval:2000 -source:runCommand="%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -inputformat none -file ' + $SERVER_INSTALL_PATH + 'srv_configure_staff_site.ps1",dontUseCommandExe=true,waitInterval=10000,waitAttempts=6 -dest:auto,computerName=' + $deployServer
Start-Process "$Env:SystemDrive\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -ArgumentList $webDeployArgs -NoNewWindow -Wait