Skip to content

Instantly share code, notes, and snippets.

View jonfreeland's full-sized avatar

Jonathan Freeland jonfreeland

View GitHub Profile
@jonfreeland
jonfreeland / boxstarter_chocolatey
Last active June 17, 2016 17:01
Boxstarter & Chocolatey Installs
# 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
# Basic setup
Update-ExecutionPolicy RemoteSigned
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Disable-UAC # We re-enable at end of script
Set-TaskbarOptions -Size Small
@jonfreeland
jonfreeland / copy_azure_website_settings.js
Last active August 29, 2015 14:06
Copy connection strings and app settings between Azure web sites.
var fs = require('fs'),
webSiteManagement = require('azure-mgmt-website'),
argv = require('yargs')
.usage('Usage: $0 --subscriptionId [guid] --pem [path] --sourceWebSpace [string] --sourceSiteName [string] --targetWebSpace [string] --targetWebSite [string]')
.demand(['subscriptionId', 'pem', 'sourceSiteName', 'targetSiteName'])
.describe('pem', 'azure account cert export')
.describe('sourceWebSpace', 'exclude to see list of web spaces')
.describe('targetWebSpace', 'exclude to see list of web spaces')
.argv;