Skip to content

Instantly share code, notes, and snippets.

@originalmind
originalmind / set-path-portablegit.ps1
Created Nov 25, 2013
Set the PortableGit (supplied by GitHub for Windows) path for use in PowerShell console.
View set-path-portablegit.ps1
# 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 Dec 29, 2015
Add the PortableGit (supplied by GitHub for Windows) bin directory to your PATH variable and then start your console
View set-gitbin-start-console.bat
@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
View Report.WER
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 Oct 2, 2012
Powershell command causing msdepsvc crash
View gist:3815479
$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