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
site :opscode | |
cookbook 'windows', github: 'joefitzgerald/windows' | |
cookbook '7-zip' | |
cookbook 'chocolatey', github: 'chocolatey/chocolatey-cookbook' | |
cookbook 'webpi', github: 'opscode-cookbooks/webpi' | |
cookbook 'dotnetframework', github: 'joefitzgerald/dotnetframework' | |
cookbook 'sqlce' | |
cookbook 'visualstudio', github: 'joefitzgerald/visualstudio' | |
cookbook 'chocolatey-installer', github: 'joefitzgerald/chocolatey-installer' |
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 : | |
Vagrant.configure("2") do |config| | |
config.vm.define "vagrant-windows" | |
config.vm.box = "windows2008r2" | |
# You should be using the vagrant-windows Vagrant Plugin! | |
# Admin user name and password | |
config.winrm.username = "Administrator" |
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
Remove-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" -Name "SysprepAndSeal" -ErrorAction SilentlyContinue | |
$ObjUser = [ADSI]"WinNT://localhost/vagrant"; | |
$ObjUser.userflags = 2; | |
$ObjUser.setinfo(); | |
C:\Windows\System32\sysprep\sysprep.exe /generalize /oobe /quiet /shutdown |
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
# $OpenBSD: sshd_config,v 1.89 2013/02/06 00:20:42 dtucker Exp $ | |
# This is the sshd server system-wide configuration file. See | |
# sshd_config(5) for more information. | |
# This sshd was compiled with PATH=/bin:/usr/sbin:/sbin:/usr/bin | |
# The strategy used for options in the default sshd_config shipped with | |
# OpenSSH is to specify options with their default value where | |
# possible, but leave them commented. Uncommented options override the |
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
param($global:RestartRequired=0, | |
$global:MoreUpdates=0, | |
$global:MaxCycles=10) | |
function Check-ContinueRestartOrEnd() { | |
$RegistryKey = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" | |
$RegistryEntry = "InstallWindowsUpdates" | |
switch ($global:RestartRequired) { | |
0 { | |
$prop = (Get-ItemProperty $RegistryKey).$RegistryEntry |
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
2014/01/31 13:57:39 Packer Version: 0.5.1 eeefde8fc71444fdfc77711dc0e2789fa9b3b7d2 | |
2014/01/31 13:57:39 Packer Target OS/Arch: darwin amd64 | |
2014/01/31 13:57:39 Built with Go Version: go1.2 | |
2014/01/31 13:57:39 Detected home directory from env var: /Users/jenkins | |
2014/01/31 13:57:39 Attempting to open config file: /Users/jenkins/.packerconfig | |
2014/01/31 13:57:39 File doesn't exist, but doesn't need to. Ignoring. | |
2014/01/31 13:57:39 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-ebs:packer-builder-amazon-ebs amazon-chroot:packer-builder-amazon-chroot digitalocean:packer-builder-digitalocean qemu:packer-builder-qemu virtualbox-iso:packer-builder-virtualbox-iso virtualbox-ovf:packer-builder-virtualbox-ovf vmware-vmx:packer-builder-vmware-vmx amazon-instance:packer-builder-amazon-instance docker:packer-builder-docker googlecompute:packer-builder-googlecompute openstack:packer-builder-openstack vmware-iso:packer-builder-vmware-iso] Commands:map[build:packer-command-build fix:packer-command-fix |
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
#!/bin/bash --login | |
set -o nounset | |
export EXPECTED_RUBY_VERSION="1.9.3" | |
export EXPECTED_RBENV_RUBY_VERSION="1.9.3-p545" | |
logError () { | |
logCustom 1 "ERROR: $1" |
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
c:\projects\go-plus>cinst -debug atom -f | |
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:'' | |
DEBUG: Arguments: $command = | |
'install'|$packageNames='atom'|$source=''|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False| | |
$force=True|$prerelease=False|$localonly=False|$verbosity=False|$debug=True|$quiet=False|$name=''|$ignoreDependencies=F | |
alse|$forceX86=False|$packageParameters=''|PowerShellVersion=4.0 | |
DEBUG: Running 'Chocolatey-Install' for 'atom' with source: '', version: '', installerArguments:'' | |
DEBUG: Running 'Chocolatey-NuGet' for atom with source:''. Force? True | |
Chocolatey (v0.9.8.26-alpha2) is installing 'atom' and dependencies. By installing you accept the license for 'atom' and | |
each dependency you are installing. |
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
c:\projects\go-plus>cinst -debug atom -f | |
20140712-08:17:07 [DEBUG] Running 'Append-InstallLog' with chocoInstallLog:'' | |
20140712-08:17:07 [CHOCO] ################################################################################ | |
20140712-08:17:07 [CHOCO] # Going Chocolatey on 2014-07-12 08:17:07Z # | |
20140712-08:17:07 [CHOCO] ################################################################################ | |
20140712-08:17:07 [DEBUG] Arguments: $command = 'install'|$packageNames='atom'|$source=''|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=False|$force=True|$prerelease=False|$localonly=False|$verbosity=False|$debug=True|$quiet=False|$name=''|$ignoreDependencies=False|$forceX86=False|$packageParameters=''|PowerShellVersion=4.0 | |
20140712-08:17:07 [DEBUG] Running 'Chocolatey-Install' for 'atom' with source: '', version: '', installerArguments:'' | |
20140712-08:17:07 [DEBUG] Running 'Chocolatey-NuGet' for atom with source:''. Force? True | |
20140712-08:17:07 [CHOCO] |
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
tell application "Contacts" | |
repeat with i from 1 to (count every person) | |
set theEmailAddresses to properties of emails of person i | |
repeat with j from 1 to (count of theEmailAddresses) | |
if value of item j of theEmailAddresses contains "@gopivotal.com" then | |
set oldAddress to value of item j of theEmailAddresses | |
set AppleScript's text item delimiters to {"@"} | |
set firstBit to first text item of oldAddress | |
set newAddress to firstBit & "@pivotal.io" | |
set value of item j of emails of person i to newAddress |