This file contains hidden or 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
param ([Parameter(Mandatory=$True)][string]$SitemapUrl, | |
[int]$Max=0) | |
function Validate($url) { | |
if(-not $url.StartsWith("http")) { | |
$parsed = [System.Uri]$SitemapUrl | |
$url = "{0}://{1}{2}" -f $parsed.Scheme, $parsed.Host, $url | |
} |
This file contains hidden or 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 | |
SETLOCAL ENABLEDELAYEDEXPANSION | |
:: set the working dir (default to current dir) | |
set wdir=%cd% | |
if not (%1)==() set wdir=%1 | |
echo executing transform_all from %wdir% | |
:: create a list of all the T4 templates in the working dir | |
dir %wdir%\*.tt /b /s > t4list.txt |
This file contains hidden or 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
# Purge Akamai Cache | |
# | |
# Invokes the Akamai REST Api to purge the cache for the given objects | |
# | |
# == Usage == | |
# .\purge-akamai-cache.ps1 -CpCode cpcode -User Username -Pass Password | |
# | |
# == Params == | |
# CpCodes: comma separated list of cpcodes of the site to purge | |
# User / Pass: Valid credentials for an Akamai User that has permissions to purge cache |
This file contains hidden or 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
# Clear Umbraco Cache | |
# | |
# Simulates a set of HTTP requests that a normal use would do to log into umbraco and clear the global site cache (republish the root node) | |
# | |
# == Usage == | |
# .\clear-umbraco-cache.ps1 -HostName Hostname -User Username -Pass Password [-UseSsl $false] | |
# | |
# == Params == | |
# Hostname: Hostname of the server running umbraco | |
# User / Pass: Valid credentials for an Umbraco User |
This file contains hidden or 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
/// <summary> | |
/// Invokes FibPro and returns a string of the standard output | |
/// </summary> | |
/// <param name="args"></param> | |
/// <returns></returns> | |
private FibProOutput FibPro(string args, string interactiveInput = null) | |
{ | |
var output = new StringBuilder(); | |
var error = new StringBuilder(); | |
var resultCode = 0; |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using TweetSharp; | |
namespace tweet_sharp_streaming | |
{ |
NewerOlder