Skip to content

Instantly share code, notes, and snippets.

View half-ogre's full-sized avatar

Drew Miller half-ogre

View GitHub Profile
@half-ogre
half-ogre / hot-buttered-rum-recipe.md
Created November 29, 2012 03:09
Drew's recipe for hot buttered rum

Hot Buttered Rum

Ingredients

  • 2 quarts water; or, 1 qt water and 1 qt apple cider
  • 1/4 cup packaged whole mulling spices; or, 1 tbsp whole cloves, 1 tbsp allspice berries, 1 large cinnamon stick
  • 1/4 tsp salt
  • 1/2 cup butter
  • 1 cup brown sugar (tip: some folks prefer another half or even whole cup)
  • 2 cups rum
  • prepared whipped cream as desired
@half-ogre
half-ogre / poultry-brine.md
Created November 26, 2012 17:48
A simple brine for poultry
  • 1 gallon water
  • 1 and 1/2 cups kosher salt
  • 1/4 cup honey
@half-ogre
half-ogre / biscuits.md
Created November 26, 2012 04:16
How Drew makes biscuits

Biscuits

Ingredients

  • 2 tbsp apple cider vinegar
  • 2 cups milk
  • 4 cups self-rising flour
  • 2 teaspoons baking powder
  • 1 teaspoon baking soda
  • 1 teaspoon salt
  • 3/4 cup butter
var mailSenderConfiguration = new MailSenderConfiguration()
{
DeliveryMethod = SmtpDeliveryMethod.SpecifiedPickupDirectory,
PickupDirectoryLocation = "c:\\dev\\mail",
};
var mailSender = new MailSender(mailSenderConfiguration);
var mailMessage = new MailMessage
{
From = new MailAddress("[email protected]"),
@half-ogre
half-ogre / install-nuget.sh
Created May 4, 2012 15:04
A bash script to install nuget.exe and make it available in bash with a proxy script
#!/bin/sh
current_dir=`pwd`
temp_dir=`mktemp -d nuget-curl`
cd $temp_dir
curl -O http://anglicangeek.com/nuget.exe
rm -rf /usr/local/libexec/nuget.exe
mv ./nuget.exe /usr/local/libexec/
cd $current_dir
rm -rf $temp_dir
rm -rf /usr/bin/local/nuget
@half-ogre
half-ogre / free-time-projects.markdown
Created May 4, 2012 02:37
The active and queued projects competing for my "free" time

Active

Ideally, there are never more than two active projects.

  • MonoGet: a simple NuGet client that more closely aligns to RubyGems that works great on Mono, and an HTTP API that's sync'd with the official NuGet Gallery
  • RpgRooms: A web app for playing traditional, pen-and-paper-style role-playing games online via real-time chat, play-by-post, or email

Queued

  • Contribute testability and "not a Git repo" exception handling for libgit2sharp
  • Add Razor colorization to ColorCode
  • GitHubCLI: a cross-platform command-line interface for GitHub
@half-ogre
half-ogre / creole-jambalaya.markdown
Created April 21, 2012 03:27
How Drew makes jambalaya

Creole Jambalaya

This is how Drew makes jambalaya.

Ingredients

  • 2 tbsp. olive oil
  • 3 lbs. chicken pieces (I use bone-in thighs)
  • 1 cup all-purpose flour
  • 1 lb. andouille sausage, sliced
@half-ogre
half-ogre / simple_souvlaki.md
Created April 1, 2012 23:21
A simple recipe for souvlaki

Simple Souvlaki

Ingredients

  • 1 lb. meat (e.g., lamb leg, chicken breast, pork shoulder) cut into rougly 1-inch cubes
  • 2 tbsp. extra-virgin olive oil
  • 1 tbsp. chopped fresh garlic
  • 1 tbsp. dried oregano
  • 1/2 tsp. freshly-ground black pepper
  • 1/2 tsp. coarse salt
@half-ogre
half-ogre / blog_queue.markdown
Created March 6, 2012 07:53
Blog posts in the queue to write
  • Expressing intentions in unit tests: introduction
  • Expressing intentions in unit tests: pronouns
  • Expressing intentions in unit tests: test organization
  • Changing old habits: service location
  • Changing old habits: command and query abstractions
  • Changing old habits: abstract base classes for abstractions
  • Changing old habits: testable object pattern
  • ASP.NET MVC security: <location> and handlers (the ELMAH incident)
  • ASP.NET MVC security: over-binding (or mass assignment, if you prefer)
  • Building a proper HTTP ASP.NET MVC app, part 1: the URLs
@half-ogre
half-ogre / simple.markdown
Created March 3, 2012 08:07
Describing a very minimal scenario I want from CI as a service

I want some one to build CI as a service for .NET. Actually, I want to build it myself, but I'm not allowed to. What would it look like? Let's take the simplest useful scenario I can think of: building a class library that is delivered as a NuGet package.

I go to http://ciaas. I create a new project. I point it at my GitHub repo. It spends a few seconds looking at my repo. It sees that I have a few things there it knows how to build: a .sln file, an .msbuild file, some .csproj files, some .ps1 scripts. I choose the .msbuild file.

It shows me a list of the targets in the file (or maybe just lets me type in the target I want to run). It starts a build so it can show me the output. I chose the output files that I want to make available as artifacts (in this case, the .dll files and the .nupkg files). I have a URL I can give to folks that shows builds, status, and where they can download the artifacts.

ciaas emails me when there are problems. It has feeds for people to subscribe to.

**Keep in mind this is the