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.Linq; | |
using Castle.MicroKernel; | |
using Castle.MicroKernel.Facilities; | |
using Castle.MicroKernel.Registration; | |
using Castle.Windsor; | |
using NUnit.Framework; | |
namespace CastleWindsor.Tests |
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.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication5 | |
{ | |
public static class ThreadExtensions |
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
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
PrepareQueues.Prepare("msmq://localhost/first", QueueType.Standard); | |
PrepareQueues.Prepare("msmq://localhost/second", QueueType.Standard); | |
var container = new WindsorContainer(new XmlInterpreter()); | |
container.Register(Component.For<IBusConfigurationAware>().ImplementedBy<MsmqTransportConfigurationAware>()); |
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 Net4CollectionTypeFactory : DefaultCollectionTypeFactory | |
{ | |
public override CollectionType Set<T>(string role, string propertyRef, bool embedded) | |
{ | |
return new GenericSetType<T>(role, propertyRef); | |
} | |
public override CollectionType SortedSet<T>(string role, string propertyRef, bool embedded, IComparer<T> comparer) | |
{ | |
return new GenericSortedSetType<T>(role, propertyRef, comparer); |
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 class MeasureExecutionTime | |
{ | |
public static string Start(System.Action action) | |
{ | |
string result = string.Empty; | |
var stopWatch = new System.Diagnostics.Stopwatch(); | |
stopWatch.Start(); | |
action(); | |
stopWatch.Stop(); |
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
1) Login to the Debian server. If you are not logged in as root type sudo -i. You can also execute all commands with other user and prefix with sudo. It depends on how your linux and linux user are configured. | |
2) cd $home | |
3) apt-get install git | |
4) git clone git://github.com/gingerlime/graphite-fabric.git | |
5) cd graphite-fabric | |
6) apt-get install python-dev | |
7) apt-get install python-setuptools | |
8) apt-get install python-pip | |
9) pip install fabric | |
10) pip install daemonize |
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
<connectionStrings> | |
<add name="postgres" providerName="???" connectionString="Server=127.0.0.1;Port=5432;Database=MyDB;User Id=postgres;Password=postgres;"/> | |
</connectionStrings> |
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.Linq; | |
using System.Text; | |
using System.Data.SqlClient; | |
namespace NMSD.Infrastructure | |
{ | |
public static class DatabaseManager | |
{ |
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
<?xml version="1.0" encoding="utf-8"?> | |
<Vsix xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2010"> | |
<Identifier Id="46b3817c-b0c3-42d1-8cea-d373f781b21e"> | |
<Name>Visual Studio Color Theme Editor</Name> | |
<Author>Microsoft</Author> | |
<Version>1.3</Version> | |
<Description xml:space="preserve">Allows users to customize the color palette used for menus, toolbars, tabs, title bars, and other environment colors.</Description> | |
<Locale>1033</Locale> | |
<InstalledByMsi>true</InstalledByMsi> | |
<SupportedProducts> |
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
// generated by quake, do not modify | |
unbindall | |
bind TAB "+scores" | |
bind ENTER "messagemode" | |
bind ESCAPE "togglemenu" | |
bind SPACE "+button2" | |
bind ' "messagemode4" | |
bind * "quit" | |
bind + "sizeup" | |
bind - "sizedown" |
OlderNewer