Skip to content

Instantly share code, notes, and snippets.

View pvandervelde's full-sized avatar

Petrik van der Velde pvandervelde

View GitHub Profile
import clr
clr.AddReference("Apollo.Core.Scripting")
import sys
import Apollo.Core.Scripting
# Verify that we don't have an active project
hasactiveproject = projects.HasActiveProject()
if hasactiveproject:
print 'Fail: Active project already exists'
<?xml version="1.0" encoding="utf-8" ?>
<sherlock configurationVersion="1.2">
<description>
<product>Apollo.Console</product>
<version>0.1.7.9</version>
<testpurpose>Integration tests for Apollo.Console</testpurpose>
</description>
<environments>
<environment name="Client">
<Menu AutomationProperties.AutomationId="{x:Static infrastructure:MainMenuAutomationIds.Menu}"
DockPanel.Dock="Top"
IsMainMenu="True">
<% currentYear = "" %>
<% for document in @collection.toJSON(): %>
<% date = @moment(document.date) %>
<% year = date.format("YYYY") %>
<div class="archive">
<% if year isnt currentYear: %>
<div class="archive-year"><%= year %></div>
<% currentYear = year %>
<% end %>
<div class="archive-title"><a href="<%= document.url %>"><%= document.title %></a></div>
---
title: 'Home'
isPage: true
order: 1
isPaged: true
pagedCollection: 'posts'
pageSize: 5
---
<% for page in @getPageCollection("posts").toJSON(): %>
<div id="post-spacer">
@pvandervelde
pvandervelde / AppVeyor_nBuildKit_Deploy_RestoreWorkspace.ps1
Last active August 29, 2015 14:06
AppVeyor workspace restore for the nBuildKit delivery build.
# Halt immediately if there is a problem
$ErrorActionPreference = "Stop"
"PATH is: "
$env:Path
"GitHub-release environment variable is: "
$env:GitHubReleasePath
$currentDir = $pwd
@pvandervelde
pvandervelde / AppVeyor_nBuildKit_Deploy_EnvironmentInit.ps1
Last active August 29, 2015 14:06
nBuildKit AppVeyor environment initialization script
# Halt immediately if there is a problem
$ErrorActionPreference = "Stop"
git config --global user.email "nBuildKit.AppVeyor@example.com"
git config --global user.name "nBuildKit AppVeyor deployment"
$currentDir = $pwd
$scriptDir = "c:\projects\scripts"
$installDir = "c:\tools\githubrelease"
@pvandervelde
pvandervelde / Get-PSSessionForAzureVM.ps1
Created November 9, 2014 06:49
Gets a PSSession that can be used to connect to the remote Azure virtual machine.
<#
.SYNOPSIS
Gets a PSSession that can be used to connect to the remote virtual machine.
.DESCRIPTION
The Get-PSSessionForAzureVM function returns a PSSession that can be used to use Powershell remoting to connect to the virtual
machine with the given name.
@pvandervelde
pvandervelde / New-AzureVMFromTemplate.ps1
Created November 9, 2014 05:23
Creates a new Azure VM from a given base image in the given resource group
<#
.SYNOPSIS
Creates a new Azure VM from a given base image in the given resource group.
.DESCRIPTION
The New-AzureVMFromTemplate function creates a new Azure VM in the given resources group. The VM will be based on
the provided image.
@pvandervelde
pvandervelde / Add-AzureFilesToVM.ps1
Created November 10, 2014 08:26
Copies a set of files to a remote directory on a given Azure VM.
<#
.SYNOPSIS
Copies a set of files to a remote directory on a given Azure VM.
.DESCRIPTION
The Add-AzureFilesToVM function copies a set of files to a remote directory on a given Azure VM.