Skip to content

Instantly share code, notes, and snippets.

View JC1738's full-sized avatar

Jim Castillo JC1738

  • San Francisco, CA
View GitHub Profile
<script>
echo Dim oXMLHTTP, oStream > GetPE.vbs
echo Set oXMLHTTP = CreateObject("MSXML2.XMLHTTP.3.0") >> GetPE.vbs
echo oXMLHTTP.Open "GET", "http://puppetmaster.local/boot/pe.msi", False >> GetPE.vbs
echo oXMLHTTP.Send >> GetPE.vbs
echo If oXMLHTTP.Status = 200 Then >> GetPE.vbs
echo Set oStream = CreateObject("ADODB.Stream") >> GetPE.vbs
echo oStream.Open >> GetPE.vbs
echo oStream.Type = 1 >> GetPE.vbs
echo oStream.Write oXMLHTTP.responseBody >> GetPE.vbs
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
#!/bin/bash
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
#
# Must be run with root privileges
# Tested with Amazon Linux AMI release 2011.02.1.1 (ami-8c1fece5)
#
export BUILD_DIR="$PWD"
#!/usr/bin/env/ruby
require 'socket'
# AWS API Credentials
AWS_ACCESS_KEY_ID = "your-aws-access-key-id"
AWS_SECRET_ACCESS_KEY = "your-aws-secret-access-key"
# Node details
NODE_NAME = "webserver-01.example.com"
@JC1738
JC1738 / gist:8249407
Created January 4, 2014 00:14
vagrant up log
Last login: Fri Jan 3 17:26:49 on ttys000
MBPJCASTILLO:~ jcastillo$ cd /Volumes/LaCie/vagrant/packer/
MBPJCASTILLO:packer jcastillo$ VAGRANT_LOG=debug vagrant up --provider vmware_fusion
INFO global: Vagrant version: 1.4.2
INFO global: Ruby version: 2.0.0
INFO global: RubyGems version: 2.0.14
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/Applications/Vagrant/bin/../embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_HOME="/Volumes/Lacie/.vagrant.d"
<powershell>
#####
#DON'T FORGET TO SET/CHANGE THE USERNAME/PASSWORD BELOW!!!!!!!!!!
#####
$user="opscode"
$password="opscode"
@JC1738
JC1738 / crash.log
Created January 26, 2014 03:56
crash from running packer
2014/01/25 21:45:58 Packer Version: 0.5.1 eeefde8fc71444fdfc77711dc0e2789fa9b3b7d2
2014/01/25 21:45:58 Packer Target OS/Arch: darwin amd64
2014/01/25 21:45:58 Built with Go Version: go1.2
2014/01/25 21:45:58 Detected home directory from env var: /Users/jcastillo
2014/01/25 21:45:58 Attempting to open config file: /Users/jcastillo/.packerconfig
2014/01/25 21:45:58 File doesn't exist, but doesn't need to. Ignoring.
2014/01/25 21:45:58 Packer config: &{PluginMinPort:0 PluginMaxPort:0 Builders:map[amazon-chroot:packer-builder-amazon-chroot amazon-instance:packer-builder-amazon-instance docker:packer-builder-docker virtualbox-ovf:packer-builder-virtualbox-ovf vmware-iso:packer-builder-vmware-iso amazon-ebs:packer-builder-amazon-ebs digitalocean:packer-builder-digitalocean googlecompute:packer-builder-googlecompute openstack:packer-builder-openstack qemu:packer-builder-qemu virtualbox-iso:packer-builder-virtualbox-iso vmware-vmx:packer-builder-vmware-vmx] Commands:map[build:packer-command-build fix:packer-command-
@JC1738
JC1738 / Invoke chef run on windows by Role.ps1
Last active March 31, 2017 02:56
Use Node Search and Powershell to invoke a chef run by role
#powershell
Set-Location c:\chef
#debugging, set to false, so don't execute run
$invokeRun = $true
#update these with teamcity parameters
$userName = "XXXXX"
$password = "XXXXX"