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-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions -EnableShowFullPathInTitleBar | |
choco install putty | |
choco install SublimeText3 | |
choco install 7zip | |
choco install ruby | |
choco install TortoiseGit | |
choco install Cmder | |
choco install git.install |
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.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.ServiceModel.Configuration; | |
using System.ServiceModel.Description; | |
using System.ServiceModel.Dispatcher; | |
using System.Text; | |
using log4net; |
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
try { | |
dbContext.SaveChanges(); | |
return true; | |
} | |
catch (Exception e) { | |
// TODO: send mail | |
return false; | |
} |
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
-- Taken from http://stackoverflow.com/a/1899881/278708 | |
EXEC sp_MSForEachTable 'ALTER TABLE ? NOCHECK CONSTRAINT ALL' | |
GO | |
EXEC sp_MSForEachTable 'DELETE FROM ?' | |
GO | |
EXEC sp_MSForEachTable 'ALTER TABLE ? CHECK CONSTRAINT ALL' | |
GO |
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.Configuration; | |
using System.Data.Objects; | |
using System.Data.SqlClient; | |
namespace Varta.VartaGuide.Tests.Integration | |
{ | |
public class EFDatabaseTest<CONTEXTTYPE> where CONTEXTTYPE:ObjectContext, new() | |
{ | |
public DbContext DbContext { private set; get; } |
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.Net; | |
using Kayak; | |
namespace HelloWorld | |
{ | |
public class KayakStarter : ISchedulerDelegate | |
{ | |
public static void Start(int port, bool debug) | |
{ |
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
var updateServer = new UpdateServer("https://updateserver.com/updates"); | |
var versionInfo = s.GetVersionInfo("TestApplication"); | |
if (versionInfo.Version > ApplicationVersion) | |
{ | |
MessageBox.Show("An update for your application is available"); | |
} |