Skip to content

Instantly share code, notes, and snippets.

View Guzzter's full-sized avatar
🏠
Working from home

Guus Beltman Guzzter

🏠
Working from home
View GitHub Profile
@jhorsman
jhorsman / install-hotfix-XPM_8.1.1.3571.ps1
Created April 5, 2017 19:37
PowerShell script to install hotfix XPM_8.1.1.3571 for SDL Web 8.1.1
# This script will apply hotfix XPM_8.1.1.3571 for SDL Web 8.1.1
# Tested on SDL Web 8.1.1. Probably works in a comparable way with hotfix 3571 for SDL Web 8.5 and SDL Tridion 2013 SP1
# To install the hotfix...
# - make sure you have a backup of the SDL Web Content Manager which is located in the %TRIDION_HOME% path.
# - this script will make a backup of the files it touches (it copies .old files), see the filenames in the scripts output verbose messages
# - if you run the script again it will overwrite those backup files.
# - get a copy of the hotfix, unzip it to a folder and set the path to that folder in $hotfixSource
# - run the script
# - restart the application pool for "SDL Tridion" or restart IIS
@eralston
eralston / .tfignore
Created February 26, 2015 19:00
Example ignore file for Team Foundation Server, excluding files from Bin, NuGet packages, etc
# User-specific files
*.suo
*.user
*.sln.docstates
# Build results
bin
obj
#include nuget executable
@alastairtree
alastairtree / CreateSite.ps1
Last active July 7, 2021 12:47
IIS site stop and create website/appPool utility scripts
## FYI: These scripts are now maintained in a proper repository:
## https://github.com/alastairtree/deploy-websites-with-powershell
## Intro: Simple powershell script to install (or replace) a local website and app pool
## Usage: CreateSite.ps1 [WebsiteName] [AppPoolName] [Port] [Path] ([domain\user] [password])
## Note : These scripts require local admin priviliges!
# Load IIS tools
Import-Module WebAdministration
sleep 2 #see http://stackoverflow.com/questions/14862854/powershell-command-get-childitem-iis-sites-causes-an-error
@jhorsman
jhorsman / createTridionUser.cs
Last active September 14, 2015 12:16
Create an SDL Tridion user trhough CoreService. Assumes having the Tridion Core Service Client DLL config as app.config
using System;
using System.ServiceModel;
using Tridion.ContentManager.CoreService.Client;
namespace CoreServiceSandbox
{
internal class Program
{
private static void Main(string[] args)
{
@jhorsman
jhorsman / PublishPage.cs
Last active December 28, 2015 09:49
Publish a page using SDL Tridion Core Service. This example shows how to use the Core Service API without configuration file and using the BasicHTTP binding. There are other options too, like using the configuration file instead of in code configuration and using NetTcp instead of BasicHTTP.
using System;
using System.ServiceModel;
using Tridion.ContentManager.CoreService.Client;
using TridionCoreserviceSession;
...
// Make a Core Service connection
CoreServiceSession session = new CoreServiceSession( "localhost", "[username]" , "[password]");
@stephenhardy
stephenhardy / git-clearHistory
Created April 26, 2013 22:14
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin git@github.com:<YOUR ACCOUNT>/<YOUR REPOS>.git
@bastianallgeier
bastianallgeier / iisrewrite.txt
Created December 6, 2012 18:15
Kirby rewrite rules for IIS
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Main Rule" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />