Skip to content

Instantly share code, notes, and snippets.

@mrpullen
mrpullen / boxstarter.ps1
Created March 24, 2017 14:04
a gist for a user with token api call via ajax
# Install Script Generated by: https://dhruvb14.github.io
# Inspiration borrowed from http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter/
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
if (Test-PendingReboot) { Invoke-Reboot }
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
@mrpullen
mrpullen / boxstarter.ps1
Created March 24, 2017 13:46
a gist for a user with token api call via ajax
# Install Script Generated by: https://dhruvb14.github.io
# Inspiration borrowed from http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter/
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
if (Test-PendingReboot) { Invoke-Reboot }
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
@mrpullen
mrpullen / boxstarter.ps1
Created March 24, 2017 13:46
a gist for a user with token api call via ajax
# Install Script Generated by: https://dhruvb14.github.io
# Inspiration borrowed from http://blog.zerosharp.com/provisioning-a-new-development-machine-with-boxstarter/
# Boxstarter options
$Boxstarter.RebootOk=$true # Allow reboots?
$Boxstarter.NoPassword=$false # Is this a machine with no login password?
$Boxstarter.AutoLogin=$true # Save my password securely and auto-login after a reboot
if (Test-PendingReboot) { Invoke-Reboot }
Install-WindowsUpdate -AcceptEula
if (Test-PendingReboot) { Invoke-Reboot }
@mrpullen
mrpullen / Json-OrderedDictionary.ps1
Created January 20, 2016 05:13
Powershell to convert to / from JSON string to ordered hashtable.
function Compare-Hashtables {
param([hashtable]$primary,
[hashtable]$secondary
)
foreach($key in $primary.Keys) {
if($secondary.Contains($key)) {
if($primary[$key].GetType() -eq [System.Collections.Specialized.OrderedDictionary] -and
$secondary[$key].GetType() -eq [System.Collections.Specialized.OrderedDictionary] ) {
$res = Compare-Hashtables -primary $primary[$key] -secondary $secondary[$key]
Configuration DevWorkstation
{
Import-DscResource -ModuleName cChoco
Node "localhost"
{
LocalConfigurationManager
{
ConfigurationMode = "ApplyAndAutoCorrect"
ConfigurationModeFrequencyMins = 30