Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am amarraja on github.
  • I am amarraja (https://keybase.io/amarraja) on keybase.
  • I have a public key ASAwkTetCXvAyBaLrVlXwt-tLjn4JT_zmtXs-lQQWFTPqAo

To claim this, I am signing this object:

public class StoreTest
{
public class Holder
{
public string SomeString { get; set; }
}
public class HolderIndex : AbstractIndexCreationTask<Holder, HolderIndex.ReduceResult>
{
public class ReduceResult
@amarraja
amarraja / gist:3938304
Created October 23, 2012 11:35
Replace system notepad with notepad++
REM Replaces notepad.exe with notepad++. Here for reference since I can never find it
REM Taken from here: http://blogs.itramblings.com/post/2009/02/08/How-to-replace-notepadexe-on-Windows-Server-2008.aspx
@echo off
echo Create Backup copies of the original notepad.exe
copy C:\Windows\notepad.exe C:\Windows\notepad32.exe
copy C:\Windows\System32\notepad.exe C:\Windows\System32\notepad32.exe
copy C:\Windows\SysWOW64\notepad.exe C:\Windows\SysWOW64\notepad32.exe
/* Simple utility to take some of the pain of working with a datareader */
public static class DataReaderExtensions
{
public static IList<T> ToTypedList<T>(this SqlDataReader dr) where T : class, new()
{
var list = new List<T>();
if (!dr.HasRows)
return list;