Skip to content

Instantly share code, notes, and snippets.

View wshirey's full-sized avatar

Wally S wshirey

  • Shipt
View GitHub Profile
@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
@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 / 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 / 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 / machine_fakes_cheat_sheet.md
Last active May 8, 2019 13:45
Machine Fakes Cheat Sheet
@wshirey
wshirey / 0_reuse_code.js
Created April 22, 2016 14:04
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@wshirey
wshirey / ci-docker.yml
Created April 29, 2016 17:02
Docker Compose file for Jenkins & SonarQube
jenkins:
image: jenkins
ports:
- "8080:8080"
- "50000:50000"
sonarqube:
image: sonarqube
ports:
- "9000:9000"
@wshirey
wshirey / docker-compose-postgres.yml
Created July 11, 2016 19:12 — forked from toast38coza/docker-compose-postgres.yml
Docker-compose files for Kong
version: "2"
services:
postgres:
image: postgres:9.4
container_name: kong-database
ports:
- "5432:5432"
environment:
- POSTGRES_USER=kong
swagger: '2.0'
info:
version: '1.0.0'
title: Swagger Petstore (Simple)
description: A sample API that uses a petstore as an example to demonstrate features in the swagger-2.0 specification
termsOfService: http://helloreverb.com/terms/
contact:
name: Swagger API team
email: foo@example.com
url: http://swagger.io
@wshirey
wshirey / aggregation-snippets.json
Last active June 2, 2017 17:46
elasticsearch demo snippets
# How many of each program types are available?
GET programs-han/_search
{
"size": 0,
"aggs": {
"types": {
"terms": {
"field": "type.keyword",
"size": 5
}