This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
XSL Utility for Symphony 2 | |
Convert RSS feed date format to Symphony date format | |
Convert RFC 2822 timestamp format to ISO date format minus the time info (Symphony CMS date format) | |
RFC 2822 format: Sun, 7 Jan 2007 12:00:00 GMT | |
ISO 8601 format (minus the time info): 2007-01-07 | |
--> | |
<xsl:stylesheet version="1.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<!-- Properly base URLs so they work --> | |
<xsl:template name="GetUrl" match="@href | @src" mode="html"> | |
<xsl:param name="Url" select="." /> | |
<xsl:variable name="AbsoluteUrl"> | |
<xsl:choose> | |
<xsl:when test="contains($Url,'://') or starts-with($Url,'/')"><xsl:value-of select="$Url" /></xsl:when> | |
<xsl:when test="starts-with($Url,'~/')"><xsl:value-of select="concat($root,substring($Url,1))" /></xsl:when> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
## | |
# Mount my development websites folder | |
# | |
# NOTE: Because this uses Mac OS X mounting techniques, all mac format | |
# images are supported and many other UNIX filesystem formats. | |
# (My Development Sites image is stored encrypted.) | |
# Location of the image to be mounted | |
IMAGE="$HOME/Documents/Development Sites.sparsebundle" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Edit the `EnvironmentVariables` and `WatchPaths` to point to your profile. (NOTE: unless you change | |
the `ProgramArguments`, you MUST keep the "Downloads" folder the same. | |
2. Move the file in to your `~/Library/LaunchAgents` folder. | |
3. Log out and back in. | |
If you want, open up Console.app and watch "Console Messages" for files that were trashed. an example | |
message looks like: | |
3/5/10 1:30:43 PM me.mpietz.Trash-Old-Downloads[9828] /Users/mpietz/Downloads/test -> /Users/mpietz/.Trash/test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Mozilla Firefox\Mozilla Firefox.lnk" | |
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Word 2007.lnk" | |
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office Excel 2007.lnk" | |
cscript PinItem.vbs /taskbar /item:"%ProgramData%\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Office PowerPoint 2007.lnk" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" I used to run call system('find ~/.vimbackup -mtime +14 -exec gvfs-trash "{}" \;') | |
" but now have created a more portable version since I work on Windows, Mac, & Linux. | |
set backup | |
set nowritebackup | |
set backupcopy=yes | |
set backupdir=$HOME/.vimbackup | |
set directory=$HOME/.vimswap,./ | |
" Timestamp the backups |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows Registry Editor Version 5.00 | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Disable Adobe Reader Update Check | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Adobe\Adobe ARM\1.0\ARM] | |
"iCheck"=dword:00000000 | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; Disable CCleaner Update Check | |
[HKEY_CURRENT_USER\Software\Piriform\CCleaner] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
############################# | |
# Migrate User Credentials | |
# | |
# @author Matthew Pietz | |
Mode=0 | |
BackupPath="/tmp/user-mig.$$" | |
StorageFile="user-migrate.tar.gz" | |
StartID=1000 |
OlderNewer