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
*.suo | |
*.user | |
bin/ | |
_ReSharper.*/ | |
obj/ |
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
write-output "/*** | |
* _____ _ _____ _ | |
* | ___| | | / ___| | | | |
* | |__ __ __ ___ _ __ | |_ \ `--. _ _ ___ | |_ ___ _ __ ___ | |
* | __| \ \ / / / _ \| '_ \ | __| `--. \| | | |/ __|| __| / _ \| '_ ` _ \ | |
* | |___ \ V / | __/| | | || |_ /\__/ /| |_| |\__ \| |_ | __/| | | | | | | |
* \____/ \_/ \___||_| |_| \__| \____/ \__, ||___/ \__| \___||_| |_| |_| | |
* __/ | | |
* |___/ | |
* _____ _ _ _ |
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
# Script to indented an unformatted XML file | |
# Usage: .\IndentXml.ps1 -xmlfile .\ugly.xml | |
param ( | |
[string]$xmlfile = $(throw "-xmlfile is required."), | |
[int]$indent = 2 | |
) | |
function Format-XML ([xml]$xml, $indent=2) | |
{ | |
$StringWriter = New-Object System.IO.StringWriter |
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
$ExportFile = $env:TRIDION_HOME + 'web\report.html' | |
$LocationEventSystem = $env:TRIDION_HOME + 'EventSystem\' | |
$LocationCustomPages = $env:TRIDION_HOME + 'web\CustomPages\' | |
$LocationGuiExtensions = $env:TRIDION_HOME + 'GuiExtensions\' | |
$Title = "Installed Tridion Extensions" | |
$guiExtension = Get-ChildItem -Path $LocationGuiExtensions | Select Name, LastWriteTime | ConvertTo-Html -Fragment | |
$customPagesDetailed = Get-ChildItem -Recurse -Path $LocationCustomPages *.dll | Select-Object -ExpandProperty VersionInfo | Select FileName, FileVersion | ConvertTo-Html -Fragment | |
$customPages = Get-ChildItem -Path $LocationCustomPages | Select Name, LastWriteTime | ConvertTo-Html -Fragment |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Xml.Linq; | |
using ContentClasses; | |
using Tridion.ContentManager; | |
using Tridion.ContentManager.CoreService.Client; | |
using ItemType = Tridion.ContentManager.CoreService.Client.ItemType; | |
namespace CreateAnEnvironmentForMe |
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
#!/usr/bin/env node | |
var util = require('util'), | |
http = require('http'), | |
fs = require('fs'), | |
url = require('url'), | |
events = require('events'); | |
var DEFAULT_PORT = 8000; |
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
/* | |
This script is setup to delete data from PUBLISH_TRANSACTIONS table at a certain specified interval | |
to keep the table with latest information while purging old data. After the execution of this script | |
only 30,000 rows will be preserved in the table. | |
DELETES are performed at chunks of 1000 rows to prevent table locking | |
10/6/2014: Verified to be working on SDL Tridion 2013 SP1 database | |
*/ |
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 | |
input=list.txt | |
output=urls_result.txt | |
siteprefix=https://www.site.com | |
rm -rf $output | |
while read LINE | |
do |
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
$configFiles=get-childitem . config.xml -rec | |
foreach ($file in $configFiles) | |
{ | |
Write-Host "Processing file" $file.FullName | |
(Get-Content $file.PSPath) | Foreach-Object {$_ -replace "MaxSize=""10000000""", "MaxSize=""20000000"""} | Set-Content $file.PSPath | |
} |
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
public static class EnumHelper<T> | |
{ | |
public static T Parse(string value) | |
{ | |
return EnumHelper<T>.Parse(value, true); | |
} | |
public static T Parse(string value, bool ignoreCase) | |
{ | |
return (T)Enum.Parse(typeof(T), value, ignoreCase); |
OlderNewer