Skip to content

Instantly share code, notes, and snippets.

View MatthewSteeples's full-sized avatar

Matthew Steeples MatthewSteeples

View GitHub Profile
$version = "Intuit.Ipp.V3."
gci |
%{
$newName = $_.Name.Replace("Intuit.Ipp.", $version)
mv $_.Name $newName
}
gci -Filter *.dll |
%{
@MatthewSteeples
MatthewSteeples / gist:5588087
Created May 15, 2013 22:56
Code to rename namespaces from compiled assemblies using Mono.Cecil
using Mono.Cecil;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;
namespace CecilTest
@MatthewSteeples
MatthewSteeples / gist:4279019
Created December 13, 2012 19:26
Recursively update NuGet executable
gci -recurse -filter nuget.exe | ForEach { start-process $_.FullName -ArgumentList "update -self" }
@MatthewSteeples
MatthewSteeples / EnumerableToTextConverter.cs
Created October 17, 2012 13:10
ValueConverter to convert an IEnumerable of anything into a string with custom separator
using System;
using System.Collections;
using System.Linq;
using System.Windows.Data;
namespace LedgerscopeApplication.ValueConverters
{
public class EnumerableToTextConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)