Skip to content

Instantly share code, notes, and snippets.

@jhorsman
jhorsman / SDL Web terminology.md
Last active March 22, 2016 14:59
SDL Web, Tridion, SmartTarget and other abbreviations.

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
@jhorsman
jhorsman / Restart-TridionServices.ps1
Last active April 1, 2016 15:23
SDL Tridion CM services restart, start and stop with PowerShell
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 {
@Damovisa
Damovisa / Disable_Enable_All_Machines.ps1
Created August 20, 2015 00:13
Disable or Enable all machines in an environment
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 :: $_ "
@hanxue
hanxue / embed-gist-in-blogger.js
Created January 18, 2014 10:48
Embed Gists in Blogger
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.