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 / NuGet.targets.xml
Created February 22, 2012 04:22
A replacement for the NuGet.targets file that requires nuget.exe be on the path, so you don't have to commit it.
<?xml version="1.0" encoding="utf-8"?>
<!-- #### NOTE #### -->
<!-- To build with Mono's xbuild on bash, you must execute [`sudo install-nuget.sh`](https://gist.github.com/2595337) first. -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(MSBuildProjectDirectory)\..\</SolutionDir>
<!-- Windows specific commands -->

Lenten Potato and Leek Soup

This is a Lenten recipe, so it doesn't have any dairy. This is not how I would make a potato and leek soup outside of Lent.

Ingredients

  • 1 tbsp olive oil
  • 2 large leeks
  • 2 medium russet potatoes, diced
  • 2 medium golden Yukon potatoes, diced
  • 2 quarts good vegetable stock
@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

@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_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 / 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 / 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 / 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
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 / 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