Skip to content

Instantly share code, notes, and snippets.

@MatthewSteeples
MatthewSteeples / Replace-FileString.ps1
Created October 30, 2014 11:26
Powershell script to find and replace file contents
# Replace-FileString.ps1
# Written by Bill Stewart (bstewart@iname.com)
# Modified by Matthew Steeples (matthew@mercuryit.co.uk) to enable using the
# -Recurse flag on Get-ChildItem and piping in
#
# Replaces strings in files using a regular expression. Supports
# multi-line searching and replacing.
#requires -version 2
@fcingolani
fcingolani / generate-wordpress-wxr.php
Created June 18, 2013 20:34
Generate a WXR file from shell. Intended for BIG WordPress installations.
<?php
error_reporting(E_ALL ^ E_NOTICE);
define( 'WXR_VERSION', '1.2' );
/**
* Generates the WXR export file for download
*
* @since 2.1.0
*
@loiane
loiane / Ux.InputTextMask.js
Created April 8, 2011 01:10
Ux.InputTextMask for ExtJS4
/**
* InputTextMask script used for mask/regexp operations.
* Mask Individual Character Usage:
* 9 - designates only numeric values
* L - designates only uppercase letter values
* l - designates only lowercase letter values
* A - designates only alphanumeric values
* X - denotes that a custom client script regular expression is specified</li>
* All other characters are assumed to be "special" characters used to mask the input component.
* Example 1: