Skip to content

Instantly share code, notes, and snippets.

@leekelleher
leekelleher / UmbracoDumpContent.xslt
Created April 4, 2011 16:22
Dump out all content pages from Umbraco in XSLT.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">
@leekelleher
leekelleher / Dashboard.config.xml
Created March 16, 2011 12:26
Adds the uComponents installer (activator) as a dashboard control in the Umbraco back-office.
<?xml version="1.0" encoding="utf-8" ?>
<dashBoard>
<section alias="uComponentsInstaller">
<areas>
<area>developer</area>
</areas>
<tab caption="uComponents: Activator">
<control>/umbraco/plugins/uComponents/uComponentsInstaller.ascx</control>
</tab>
</section>
@leekelleher
leekelleher / SendToIISExpress.vbs
Last active June 14, 2017 18:44
Serve any folder in IIS Express
' Serve any folder in IIS Express
' http://blog.mattbrailsford.com/2011/03/14/easily-serve-any-folder-in-iis-express/
' Init randomization
Randomize
' Set random port number
Dim port
port = Int(Rnd() * 8974) + 1025
@leekelleher
leekelleher / wordpress-upgrade.sh
Created March 13, 2011 15:39
Upgrade WordPress Shell Script
#!/bin/sh
# WordPress Update Script
# Written by: Lee Kelleher
# Released: 2008-04-23
# Email: lee # at # vertino # dot # net
# Released under GPL
echo "Downloading current version of WordPress..."
wget http://wordpress.org/latest.tar.gz
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="umbraco.library">
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes" />
<xsl:param name="currentPage" />
<xsl:variable name="separator" select="string('|')" />
@leekelleher
leekelleher / _media.xslt
Created February 23, 2011 11:14
Generic XSLT template for Media items in Umbraco
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY nbsp "&#x00A0;">
]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
exclude-result-prefixes="msxml umbraco.library">