Skip to content

Instantly share code, notes, and snippets.

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"
}
@Tallmaris
Tallmaris / encodeSvgAsImg.js
Created April 17, 2014 13:48
Encode SVG as Image
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);
@Tallmaris
Tallmaris / Install-Puppet.ps1
Created April 17, 2014 13:46
Install Puppet
# 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..."
@Tallmaris
Tallmaris / Vagrantfile
Last active August 29, 2015 13:59
Vagrantfile
# -*- 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