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 System; | |
using System.Diagnostics; | |
using ZeroMQ.Sockets; | |
namespace Client | |
{ | |
public class Program | |
{ | |
public static void Main(string[] args) | |
{ |
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
@echo off | |
echo Cleaning non-versioned and ignored files... | |
FOR /f "usebackq tokens=2*" %%f IN (`svn status --no-ignore ^| findstr /B [?I]`) DO IF [%%g] == [] (rd /q /s "%%f" 2>nul) ELSE (rd /q /s "%%f %%g" 2>nul) | |
FOR /f "usebackq tokens=2*" %%f IN (`svn status --no-ignore ^| findstr /B [?I]`) DO IF [%%g] == [] (del /q /f /s "%%f" 2>nul) ELSE (rd /q /f /s "%%f %%g" 2>nul) | |
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
gci -Recurse -Filter *.ccj | % { Copy-Item $_.FullName c:\rules } |
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
@echo off | |
SET REPOS=%1% | |
SET TXN=%2% | |
REM Allow configuration tool updates | |
svnlook log %REPOS% -t %TXN% | findstr /C:"Configuration tool commited update to corticon rule" > nul | |
IF %ERRORLEVEL% EQU 0 (EXIT 0) | |
REM Verify commit message contains "Review:" (case-insensitive) |
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]$site=$(throw "Site argument is required.")) | |
function vdir-exists([string]$name) | |
{ | |
if((Test-Path -path $name) -eq $False) | |
{ | |
return $False | |
} | |
(Get-Item $name).GetType().Name -eq "ConfigurationElement" |
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
ALTER DATABASE [AspectoWeb] SET SINGLE_USER WITH ROLLBACK IMMEDIATE | |
RESTORE DATABASE [AspectoWeb] | |
FROM DISK = N'C:\Users\RasmusKL\Desktop\www.aspectoweb.com_backup_2011_12_15_030005_0285276\www.aspectoweb.com_backup_2011_12_14_031114_3950159.wbak' | |
WITH NORECOVERY, REPLACE | |
RESTORE DATABASE [AspectoWeb] | |
FROM DISK = N'C:\Users\RasmusKL\Desktop\www.aspectoweb.com_backup_2011_12_15_030005_0285276\www.aspectoweb.com_backup_2011_12_15_030005_0285276.bak' | |
WITH RECOVERY |
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
public class TestClass | |
{ | |
public void Test1() | |
{ | |
var fixture = new Fixture(); | |
// This doesn't let me pass 42? | |
sut.Freeze<int>("importantNumber"); | |
var sut = fixture.CreateAnonymous<ToBeInstantiated>(); |
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
<Target Name="CopyDirectoryWithStructure"> | |
<ItemGroup> | |
<CopyFiles1 Include="$(ProjectDir)TestData\**" Exclude="$(ProjectDir)TestData\**\.svn\**" /> | |
</ItemGroup> | |
<Copy SourceFiles="@(CopyFiles1)" DestinationFolder="$(ProjectDir)..\..\bin\test\TestData\%(RecursiveDir)" SkipUnchangedFiles="true" /> | |
</Target> |
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
require 'albacore' | |
$msbuildpath = 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe' | |
$aspnet_compiler_path = 'C:\Windows\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe' | |
$publishdir = 'Publish' | |
$major_version = '1' | |
task :default => [:full] | |
task :full => [:publish, :zip] do |
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
public static List<string> GetPendingDatabaseUpdates() | |
{ | |
var sessionFactoryProvider = ObjectFactory.GetInstance<ISessionFactoryProvider>(); | |
var updater = new SchemaUpdate(sessionFactoryProvider.Configuration); | |
var updates = new List<string>(); | |
updater.Execute(updates.Add, false); | |
return updates; | |
} |
OlderNewer