Skip to content

Instantly share code, notes, and snippets.

@davidroberts63
davidroberts63 / Abstracts.md
Last active January 6, 2016 21:24
Scratch talk abstracts

Each header line is a possible title

Deliver your static site easily from your phone

Continuously deploy with nearly any static site tool.

You may have used the Jekyll integration in Github Pages for your site; but moved onto some other static tool or host. In this talk you will see how to regain a continuous deploy process for virtually any static site generator; with the added benefit of site previews of contributions. Join us and discover how you can keep delivering and have your static site too.

@davidroberts63
davidroberts63 / content.md
Last active September 3, 2015 18:55
What's so bad about XML/SOAP?

This is XML and it's okay:

POST TO: https://....../getAdUnits

<?xml version="1.0"?>
<filterStatement>
  <query>WHERE parentId IS NULL LIMIT 500</query>
</filterStatement>

THIS is SOAP and it's a crime:

@davidroberts63
davidroberts63 / verifyTentacleLogonAs.ps1
Last active August 29, 2015 14:19
Verify Tentacle windows service log on as
$accountName = '[REPLACE WITH EXPECTED Logon Account Name]'
$svc = Get-WmiObject Win32_Service -Filter "Name='OctopusDeploy Tentacle'"
$svc | Format-List Name, StartMode, StartName
if ($svc.StartName -match ".*$accountName.*" -eq $false)
{
throw "Wrong service account"
}
@davidroberts63
davidroberts63 / getTlsThumbprints.ps1
Created April 16, 2015 14:18
Get TLS thumbprints and usage
Get-ChildItem -Path Cert:\LocalMachine\My | Format-List Subject, Issuer, Thumbprint, EnhancedKeyUsageList
@davidroberts63
davidroberts63 / OneLevelNodeModules.ps1
Created March 12, 2015 20:56
Run this from a directory with a node_modules subdirectory and it will move all the sub node_modules to the top level node_modules directory. There is probably a way to tell npm to do this but I haven't bothered with that yet.
CLEAR
$current = PWD
$modules = New-Object System.Collections.Stack
Get-ChildItem node_modules -Directory -Exclude ".bin" | %{ $modules.Push($_) }
while($modules.Count) {
$mod = $modules.Pop()
Write-Host "Copying the node_module: $(Resolve-Path $mod)"
C:\Dev\PyStuff>python sieve.py
Checked 499998 numbers.
43.7454506889 seconds
C:\Dev\PyStuff>python sieve-half.py
Checked 249999 numbers.
43.2853604382 seconds
But now thinking about it I know why there is no difference. Just had to 'talk to the duck'.
CLEAR # In an "I'm gonna put some life into this one" frame of mind.
$frameworkVersions = @{}
$frameworkVersions['378389'] = '.NET Framework 4.5'
$frameworkVersions['378675'] = '.NET Framework 4.5.1 (Server 2012 R2/Windows 8.1)'
$frameworkVersions['378758'] = '.NET Framework 4.5.1 (Windows 8/7)'
$frameworkVersions['379893'] = '.NET Framework 4.5.2'
$frameworkVersions['381029'] = '.NET Framework 4.6 Preview'
$frameworkVersions['393295'] = '.NET Framework 4.6 (Windows 10 Anniversary)'
$frameworkVersions['393297'] = '.NET Framework 4.6'
http://stackoverflow.com/questions/3567543/issue-with-clickonce-bootstrapper-and-msbuild
I like the second answer about the msbuild property.
@davidroberts63
davidroberts63 / WebApplication.ps1
Created May 23, 2014 21:52
Create Web Application Octopus Step Template
$ErrorActionPreference = "STOP"
<#
Required variables in Octopus Deploy for usage:
$WebApplicationPoolIdentityType
$WebApplicationPoolUsername
$WebApplicationPoolPassword
$WebApplicationPoolFrameworkVersion
$WebApplicationPoolPipelineMode
@davidroberts63
davidroberts63 / Install-OctopusServer.ps1
Last active June 19, 2018 01:59
Automate Octopus Deploy Server Install and Configuration
$commandArgs = "/i Octopus-Server.msi /quiet INSTALLLOCATION=C:\OctopusServer /lv Octopus-Server-Install-Log.txt"
Start-Process "msiexec" $commandArgs -Wait -Verb RunAs