Skip to content

Instantly share code, notes, and snippets.

Avatar

Oliver Rahner oliverrahner

View GitHub Profile
@oliverrahner
oliverrahner / homekit.json
Created May 12, 2018
node-red flow for homekit with lights and window coverings
View homekit.json
[
{
"id":"61e77a.fcbc8088",
"type":"tab",
"label":"Flow 1",
"disabled":false,
"info":""
},
{
"id":"3fa4c9db.c6a2ce",
@oliverrahner
oliverrahner / Convert-SPExport2010to2013.ps1
Last active Oct 20, 2015
Powershell function to convert Sharepoint 2010 exports to Sharepoint 2013
View Convert-SPExport2010to2013.ps1
# --- ConvertFrom-Cab courtesy of https://technet.microsoft.com/en-us/magazine/2009.04.heyscriptingguy.aspx
Function ConvertFrom-Cab($cab,$destination)
{
$comObject = "Shell.Application"
Write-Debug "Creating $comObject"
$shell = New-Object -Comobject $comObject
if(!$?) { $(Throw "unable to create $comObject object")}
Write-Debug "Creating source cab object for $cab"
$sourceCab = $shell.Namespace($cab).items()
Write-Debug "Creating destination folder object for $destination"
You can’t perform that action at this time.