Skip to content

Instantly share code, notes, and snippets.

View trinitronx's full-sized avatar
⛩️
Zazen

James Cuzella trinitronx

⛩️
Zazen
View GitHub Profile
@trinitronx
trinitronx / Install_XCode.applescript
Created August 15, 2013 00:03
Script to automate XCode installation. Tested on OSX 10.8.4 Mountain Lion. I feel like using the UI element hierarchy is quite disgusting, but it works for now...
-- Function to select a menu item
-- We will use this to trigger the search box for the App Store
on do_menu(app_name, menu_name, menu_item)
try
-- bring the target application to the front
tell application app_name
activate
end tell
tell application "System Events"
tell process app_name
[2013-08-19T23:22:13-07:00] INFO: Processing dmg_package[Sublime Text 2] action install (pivotal_workstation::sublime_text line 3)
[2013-08-19T23:22:13-07:00] DEBUG: Checking for application Sublime Text 2
[2013-08-19T23:22:13-07:00] INFO: Processing remote_file[/var/chef/cache/Sublime Text 2.dmg - Sublime Text 2] action create (/tmp/vagrant-chef-1/chef-solo-1/cookbooks/dmg/providers/package.rb line 35)
[2013-08-19T23:22:13-07:00] DEBUG: touching /var/chef/cache/Sublime Text 2.dmg to create it
[2013-08-19T23:22:13-07:00] INFO: remote_file[/var/chef/cache/Sublime Text 2.dmg - Sublime Text 2] created file /var/chef/cache/Sublime Text 2.dmg
[2013-08-19T23:22:13-07:00] DEBUG: remote_file[/var/chef/cache/Sublime Text 2.dmg - Sublime Text 2] checking for changes
[2013-08-19T23:22:13-07:00] DEBUG: Cache control headers: {}
[2013-08-19T23:22:13-07:00] DEBUG: Sending HTTP Request via GET to c758482.r82.cf2.rackcdn.com:80/Sublime%20Text%202.0.2.dmg
[2013-08-19T23:22:13-07:00] DEBUG: Streaming download from http://c7584
rake aborted!
No attribute phone found on User (PhonyRails)
/home/vagrant/.rvm/gems/ruby-1.9.3-p327-falcon/gems/phony_rails-0.1.12/lib/phony_rails.rb:74:in `block in phony_normalize'
/home/vagrant/.rvm/gems/ruby-1.9.3-p327-falcon/gems/phony_rails-0.1.12/lib/phony_rails.rb:73:in `each'
/home/vagrant/.rvm/gems/ruby-1.9.3-p327-falcon/gems/phony_rails-0.1.12/lib/phony_rails.rb:73:in `phony_normalize'
/home/vagrant/program_creator/app/models/user.rb:116:in `<class:User>'
/home/vagrant/program_creator/app/models/user.rb:2:in `<top (required)>'
/home/vagrant/.rvm/gems/ruby-1.9.3-p327-falcon/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:469:in `load'
/home/vagrant/.rvm/gems/ruby-1.9.3-p327-falcon/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:469:in `block in load_file'
/home/vagrant/.rvm/gems/ruby-1.9.3-p327-falcon/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:639:in `new_constants_in'
VAGRANT_LOG=INFO vagrant up
INFO global: Vagrant version: 1.3.3
INFO manager: Registered plugin: box command
INFO manager: Registered plugin: destroy command
INFO manager: Registered plugin: halt command
INFO manager: Registered plugin: help command
INFO manager: Registered plugin: init command
INFO manager: Registered plugin: package command
INFO manager: Registered plugin: plugin command
INFO manager: Registered plugin: provision command
Installing dmg (1.1.0)
Installing sprout-osx-base (0.1.0)
Installing osx (0.1.0)
Installing sprout-osx-settings (0.1.0)
Installing sprout-osx-apps (0.1.0)
Installing sprout-pivotal (0.1.0)
Installing pivotal_workstation (1.0.0)
Installing meta (0.1.0)
Installing gloo-workstation (0.1.0)
[2013-10-08T13:46:49-07:00] INFO: Forking chef instance to converge...
[default]
access_key =
bucket_location = US
cloudfront_host = cloudfront.amazonaws.com
cloudfront_resource = /2010-07-15/distribution
default_mime_type = binary/octet-stream
delete_removed = False
dry_run = False
encoding = UTF-8
encrypt = False
WARNING: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
WARNING: Specifying the encrypted data bag secret key using an 'encrypted_data_bag_secret'
entry in 'knife.rb' is deprecated. Please see CHEF-4011 for more details. You
can supress this warning and still distribute the secret key to all bootstrapped
machines by adding the following to your 'knife.rb' file:
knife[:secret_file] = "/path/to/your/secret"
If you would like to selectively distribute a secret key during bootstrap
please use the '--secret' or '--secret-file' options of this command instead.
-----> Cleaning up any prior instances of <image-lwrp-fedora-19>
-----> Destroying <image-lwrp-fedora-19>...
Finished destroying <image-lwrp-fedora-19> (0m0.00s).
-----> Testing <image-lwrp-fedora-19>
-----> Creating <image-lwrp-fedora-19>...
Bringing machine 'default' up with 'virtualbox' provider...
[default] Importing base box 'opscode-fedora-19'...
[default] Matching MAC address for NAT networking...
[default] Setting the name of the VM...
[default] Clearing any previously set forwarded ports...
require 'formula'
# Reference: https://github.com/b4winckler/macvim/wiki/building
class Macvim < Formula
homepage 'http://code.google.com/p/macvim/'
url 'https://github.com/b4winckler/macvim/archive/snapshot-72.tar.gz'
version '7.4-72'
sha1 '3fb5b09d7496c8031a40e7a73374424ef6c81166'
head 'https://github.com/b4winckler/macvim.git', :branch => 'master'
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="/Users/jcuzella/.vim/bundle/hammer.vim/plugin/hammer.vim/assets/stylesheets/default.css"> </link>
<title> Preview </title>
</head>
<body>