Home‎ > ‎


These are some helpful things that I've picked over time.

Copying XML via XSLT

<?xml version="1.0" encoding="utf-8"?>
<!-- This is just a generic XSLT script to copy all elements. -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:template match="/ | @* | node()">
      <xsl:apply-templates select="@* | node()" />

Visual Studio 2005 GUID Macro

Imports EnvDTE
Imports System.Diagnostics
Public Module General
  Sub InsertGuid()
    Dim txtSelection As TextSelection = DTE.ActiveDocument.Selection
    Dim newGuid As System.Guid
    newGuid = System.Guid.NewGuid()
    txtSelection.Text = newGuid.ToString.ToUpper
  End Sub
End Module

Making bash case insensitive

Add the following to your ~/.bashrc
shopt -s nocaseglob
And add the following to ~/.inputrc
set completion-ignore-case on