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
tims-mbp:~ timvw$ azure vm list | |
info: Executing command vm list | |
+ Getting virtual machines | |
info: No VMs found | |
info: vm list command OK | |
tims-mbp:~ timvw$ azure vm disk delete icteam-web-01-icteam-web-01-0-201401261917030704 | |
info: Executing command vm disk delete | |
info: Deleting image | |
error: Disk not deleted: icteam-web-01-icteam-web-01-0-201401261917030704 |
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
# write all remote fetch locations into repositories.txt | |
find /c/src -type d -mindepth 1 -maxdepth 1 -exec git --work-tree={} --git-dir={}/.git remote -v \; | grep fetch | awk '{print $2}' > repositories.txt | |
# clone each repository | |
cat repositories.txt | xargs -l1 git clone |
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
find ~/src -type d -name .git -maxdepth 2 -execdir git fetch \; |
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
open ServiceStack.ServiceInterface | |
open ServiceStack.WebHost.Endpoints | |
type Hello = { mutable Name: string; } | |
type HelloResponse = { mutable Result: string; } | |
type HelloService() = | |
inherit Service() | |
member this.Any (req:Hello) = { Result = "Hello, " + req.Name } |
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
# Load unzip support | |
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null | |
function Unzip($zipFile, $destination) | |
{ | |
If (Test-Path $destination){ | |
Remove-Item $destination -Recurse | Out-Null | |
} | |
New-Item -ItemType directory -Force -Path $destination | Out-Null | |
[System.IO.Compression.ZipFile]::ExtractToDirectory($zipFile, $destination) | Out-Null |
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
SET SERVER OUTPUT ON; | |
WHENEVER SQLERROR EXIT; | |
DECLARE | |
v_sql VARCHAR2(32000); | |
CURSOR c_disableConstraints IS | |
SELECT 'alter table '||table_name||' disable constraint '||constraint_name sqlstatement | |
FROM USER_CONSTRAINTS |
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
SET SERVER OUTPUT ON; | |
WHENEVER SQLERROR EXIT; | |
DECLARE | |
v_sql VARCHAR2(32000); | |
CURSOR c_disableConstraints IS | |
SELECT 'alter table "'||table_name||'" disable constraint "'||constraint_name||'"' sqlstatement | |
FROM USER_CONSTRAINTS |
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
# make patch from last commit | |
git format-patch -1 --no-prefix | |
# apply patch on svn | |
path -p0 < blahblah.patch | |
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
param( | |
[string] $BasePath = 'C:\src\trunk\', | |
[string] $OutFile = 'C:\temp\' + $BasePath.Replace("\","_").Replace(":","").Replace(" ","").ToLowerInvariant() + '_' +(get-date -uformat "%Y-%m-%D-%H-%M-%S") + '.csv' | |
) | |
function GetHintPaths { | |
param( | |
[string] $CsProjFile = 'C:\src\trunk\ICTEAM.Solution\ICTEAM.Project1\ICTEAM.Project1.csproj' | |
) | |
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
<# | |
.SYNOPSIS | |
Cmdlet help is awesome. Autogenerate via template so I never forget. | |
.DESCRIPTION | |
.PARAMETER | |
.PARAMETER | |
.INPUTS | |
.OUTPUTS | |
.EXAMPLE |