Skip to content

Instantly share code, notes, and snippets.

@jhorsman
jhorsman / SDL Web terminology.md
Last active Mar 22, 2016
SDL Web, Tridion, SmartTarget and other abbreviations.
View SDL Web terminology.md

SDL Web core

  • CM: Content Manager
  • CD: Content Delivery
  • CDaaS: Content Delivery as a Service (introduced in Web 8)

Targeting

  • ST: SmartTarget
  • FH: Fredhopper
  • AM: Audience Manager
@Damovisa
Damovisa / Disable_Enable_All_Machines.ps1
Created Aug 20, 2015
Disable or Enable all machines in an environment
View Disable_Enable_All_Machines.ps1
Function Get-OctopusEnvironmentMachines{
Param(
[string]$EnvironmentName, #"App1 DEV"
[string]$APIKey, #API-XXXXXXXXXXXXXXXXXXXXXXXXX
[string]$OctopusBaseURI #http://octopus
)
try{
$environmentsJSON=Invoke-WebRequest -URI "$OctopusBaseURI/api/environments" -Header @{ "X-Octopus-ApiKey" = $apiKey } -Method GET;
}catch{
throw "Get-OctopusEnvironmentMachines: Failed to retrieve list of environments :: $_ "
View embed-gist-in-blogger.js
At the end of your Blogger post , using HTML editor, append this
<script src="https://raw.github.com/moski/gist-Blogger/master/public/gistLoader.js" type="text/javascript"></script>
In the content of your blog post, simply add this:
<div class="gistLoad" data-id="8488564" id="gist-8488564">Loading https://gist.github.com/8488564....</div>
Note: adding the URL is useful because when the javascript does not work, readers can copy and paste the URL themselves.
@jhorsman
jhorsman / Restart-TridionServices.ps1
Last active Apr 1, 2016
SDL Tridion CM services restart, start and stop with PowerShell
View Restart-TridionServices.ps1
Write-Host "Restarting all Tridion Services"
foreach ($svc in Get-Service)
{
if($svc.displayname.StartsWith("Tridion") -or $svc.displayname.StartsWith("SDL Web") -or $svc.displayname.StartsWith("SDL Delivery"))
{
if($svc.Status -eq "Running")
{
Write-Host " restarting"$svc.DisplayName
Restart-Service $svc.name -Force
} else {