This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package { | |
provider => chocolatey, | |
} | |
# ensure that my user is present and an Admin (maybe with a different pwd) | |
user { $hostuser : # look in Vagrantfile, this is set to the user running the host; clever eh? | |
ensure => "present", | |
groups => ["Administrators"], | |
password => "password" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function encodeSvgAsImg(divId) { | |
$("svg desc").remove(); | |
$("svg").removeAttr("xmlns"); | |
if ($("#"+divId).html().indexOf('xmlns') === -1) { | |
$("svg").attr("xmlns", "http://www.w3.org/2000/svg"); | |
} | |
var svg = $("#" + divId).html(); | |
var encoded = window.btoa(svg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install Puppet | |
$MsiUrl = "https://downloads.puppetlabs.com/windows/puppet-3.5.1.msi" | |
$PuppetInstalled = $false | |
try { | |
$ErrorActionPreference = "Stop"; | |
Get-Command puppet | Out-Null | |
$PuppetInstalled = $true | |
$PuppetVersion=&puppet "--version" | |
Write-Host "Puppet $PuppetVersion is installed. This process does not ensure the exact version or at least version specified, but only that puppet is installed. Exiting..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "Win7Dev2" # the name of the box, completed for you by vagrant init | |
# set some defaults | |
config.vm.guest = :windows |