Skip to content

Instantly share code, notes, and snippets.

View wshirey's full-sized avatar

Wally S wshirey

  • Shipt
View GitHub Profile
@wshirey
wshirey / AutoMapperRegistry
Created February 10, 2016 15:31
How to register AutoMapper profiles with IoC dependencies using structuremap
public class AutoMapperRegistry : Registry
{
public AutoMapperRegistry()
{
Scan(scanner =>
{
scanner.TheCallingAssembly();
scanner.AddAllTypesOf<Profile>();
});
@wshirey
wshirey / elastic.md
Last active December 17, 2015 21:16
installation instruction for ELK (Elasticsearch, Logstash and Kibana) on Windows

#Setup

  • Download and install the JAVA JDK (JRE is not recommended for server installs)
  • Download ElasticSearch, Logstash, and Kibana from http://elastic.co
  • Extract all to c:\elastic
  • Set the following environment variables
LOGSTASH_HOME=c:\elastic\logstash\
PATH=%PATH%;c:\elastic\logstash
JAVA_HOME=<JAVA install path>
@wshirey
wshirey / plugin.cs
Last active December 17, 2015 21:00
how to use factory and strategy pattern with structure map
// plugin definitions
interface IPlugin
{
string ClientID;
void SomeClientSpecificFunction();
}
class DefaultPlugin : IPlugin
{
IDefaultPlugin()
@wshirey
wshirey / boxstarter dev install
Last active August 29, 2015 14:19
Boxstarter dev tools
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Enable-RemoteDesktop
cinst visualstudio2013professional
cinst vs2013.4
cinst cmder
cinst 1password
cinst fiddler4
cinst autohotkey
cinst nodejs