Skip to content

Instantly share code, notes, and snippets.

@JacquesKors
JacquesKors / GetTokenPrescript.js
Last active April 12, 2018 11:41
Postman Pre-script Get Token from service
//
// This Pre-script will fetch a token from the discovery token service
// and store it as the global variable "access_token"
// The actual reequest can than use the following header entry
// Authorization: "Bearer {{access_token}}"
//
// It assumes the following variables to be available
// Server (example: "https://cme.sdlproducts.com")
// DiscoveryPort (example: 8083)
// ClientSecret (example: "CduserPassword" )
@JacquesKors
JacquesKors / wowRemoveNag.User.js
Last active April 11, 2018 05:32
Wow Nag removal
// ==UserScript==
// @name Wowescape
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match http://www.wowescape.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js
// @grant none
// ==/UserScript==
@JacquesKors
JacquesKors / List-PublishTransaction-Details.ps1
Last active May 30, 2018 15:08
List PublishTransaction Details
[CmdletBinding()]
Param(
[Parameter(Mandatory=$false)]
[int]$delta = 1,
[Parameter(Mandatory=$false)]
[string]$outputFile = "results.csv",
[Parameter(Mandatory=$false)]
[string]$delimiter = ";",
[Parameter(Mandatory=$false)]
[string]$decimalSeparator = ","
@JacquesKors
JacquesKors / ReadReadableComponentPresentationContent.sql
Last active March 20, 2018 14:06
ReadReadableComponentPresentationContent.sql
SELECT
CONVERT(varchar(max),CONVERT(varbinary(max),content))
FROM COMPONENT_PRESENTATIONS
where <where_criteria>
@JacquesKors
JacquesKors / System.config
Created March 6, 2018 07:07
Tridion Gui extension debug settings
<filter for="Script" type="Tridion.Web.UI.Resources.Filters.JScriptMinifier, Tridion.Web.UI.Resources.Filters" enabled="never">
<config outputmode="SingleLine" localrenaming="CrunchAll" strictmode="false" termsemicolons="true" evaltreatment="MakeAllSafe" inlinesafestrings="true" removeunneededcode="false" stripdebugstatements="false"/>
</filter>
<#
.Description
sets relevant tridion core service client settings
Write password by running
Read-Host -AsSecureString | ConvertFrom-SecureString | Out-File $CredentialFile
#>
[CmdletBinding()]
Param (
[Parameter(Mandatory=$false)]
@JacquesKors
JacquesKors / AddFoldersToSite.ps1
Created December 21, 2017 13:18
Add All Subfolders of a Folder as a virtualdirectory to an IIS Site
<#
.Synopsis
Add All folders from a given base folder as Virtual Directtories to a given Site
.Description
Add All folders from a given base folder as Virtual Directtories to a given Site
.Example
.\AddFoldersToSite.ps1' -BasePath 'D:\Example\Folder' -Site "Example Site"
#>
@JacquesKors
JacquesKors / InstallEvent.ps1
Last active February 2, 2018 08:23
SDL Web8 /Tridion, Install Event
[CmdletBinding()]
Param(
[Parameter(Mandatory=$true)]
[string]$dll,
[Parameter(Mandatory=$false)]
[string]$eventsystemconfig = ""
)
function Copy-ItemRetry ($source, $destination,$maxattemps, $sleep)
@JacquesKors
JacquesKors / SetPublicationBPTs.ps1
Last active May 4, 2018 06:21
SDL Web 8, Set BPTs for all Publications in Topology
[CmdletBinding()]
Param(
[Parameter(Mandatory=$false)]
[string]$BusinessProcessType = 'DXA Staging/Live',
[Parameter(Mandatory=$false)]
[string]$TopologyType = 'StagingLive',
[switch]$DryRun = $false
)
@JacquesKors
JacquesKors / Convert Publish States.ps1
Last active January 21, 2022 14:57
SDL Web8 /Tridion, Convert Publish States
##############################
# Convert Publish States #
##############################
# Settings assumed to be available from previous script, uncomment, and optionally correct, if this is not the case
# $StagingLiveTopologyType="StagingLive"
# $purposeLive="Live"
# $purposeStaging="Staging"
# Additional Settings, to be updated