Skip to content

Instantly share code, notes, and snippets.

View joefitzgerald's full-sized avatar

Joe Fitzgerald joefitzgerald

View GitHub Profile

Welcome to Drift!

Drift is an always-already versioned, cloud-backed text editor. You can use it to take notes, and save them in the GitHub cloud.

Your gists are always saved locally, and any changes you make will get pushed to GitHub's servers.

To name a gist, touch its name in the toolbar.

You can use the share button at the top-right to copy a link to one of your gists, or view it on the web in Safari.

@joefitzgerald
joefitzgerald / gist:1419624
Created December 1, 2011 20:31
Empty Twilio Response
We couldn’t find that file to show.
@joefitzgerald
joefitzgerald / gist:1990736
Created March 7, 2012 03:32
Handlebars JST Grunt Task
/*
* Grunt Task File
* ---------------
*
* Task: JST-HB
* Description: Compile handlebars templates to JST file.
* Dependencies: underscore@1.2.4
*
*/
@joefitzgerald
joefitzgerald / gist:1990762
Created March 7, 2012 03:36
fetchTemplate For Handlebars Templates
fetchTemplate: function(path, done) {
Handlebars.templates = Handlebars.templates || {};
// Should be an instant synchronous way of getting the template, if it
// exists in the JST object.
if (Handlebars.templates[path]) {
return done(Handlebars.templates[path]);
}
// Fetch it asynchronously if not available from JST
@joefitzgerald
joefitzgerald / gist:5710418
Created June 4, 2013 23:12
Output From: rake cf:bootstrap
vagrant@precise64:/vagrant$ rake cf:bootstrap
==> Copying warden/warden config file
==> cp /mnt/hgfs/!%vagrant/custom_config_files/warden/warden/*.yml /mnt/hgfs/!%vagrant/warden/warden/config/
==> Copying cloud_controller_ng config file
==> cp /mnt/hgfs/!%vagrant/custom_config_files/cloud_controller_ng/*.yml /mnt/hgfs/!%vagrant/cloud_controller_ng/config/
==> Copying dea_ng config file
==> cp /mnt/hgfs/!%vagrant/custom_config_files/dea_ng/*.yml /mnt/hgfs/!%vagrant/dea_ng/config/
==> Copying health_manager config file
==> cp /mnt/hgfs/!%vagrant/custom_config_files/health_manager/*.yml /mnt/hgfs/!%vagrant/health_manager/config/
==> Copying uaa config file
@joefitzgerald
joefitzgerald / gist:5713753
Created June 5, 2013 13:14
Sinatra Deploy Failure
vagrant@precise64:/vagrant$ cd /vagrant/sinatra-test-app/
vagrant@precise64:/vagrant/sinatra-test-app$ ls
app.rb config.ru Gemfile Gemfile.lock
vagrant@precise64:/vagrant/sinatra-test-app$ cf push
Name>
Name> sinatra
Instances> 1
@joefitzgerald
joefitzgerald / gist:6083383
Created July 25, 2013 20:22
Info Log Level For vagrant-windows Debugging
$ vagrant destroy --force
[vagrant-windows] Stopping the VMware VM...
[vagrant-windows] Deleting the VM...
usxxfitzgj8m1:test joe$ VAGRANT_LOG=info vagrant up --provider=vmware_fusion
INFO global: Vagrant version: 1.2.4
INFO manager: Registered plugin: box command
INFO manager: Registered plugin: destroy command
INFO manager: Registered plugin: halt command
INFO manager: Registered plugin: init command
INFO manager: Registered plugin: package command
@joefitzgerald
joefitzgerald / gist:6083434
Last active January 12, 2017 03:56
Debug Log Level For vagrant-windows Debugging
$ VAGRANT_LOG=debug vagrant up --provider=vmware_fusion
INFO global: Vagrant version: 1.2.4
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/commands/box/plugin.rb
INFO manager: Registered plugin: box command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/commands/destroy/plugin.rb
INFO manager: Registered plugin: destroy command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/commands/halt/plugin.rb
INFO manager: Registered plugin: halt command
DEBUG global: Loading core plugin: /Applications/Vagrant/embedded/gems/gems/vagrant-1.2.4/plugins/commands/init/plugin.rb
INFO manager: Registered plugin: init command
@joefitzgerald
joefitzgerald / gist:6132124
Created August 1, 2013 14:50
remote_file Error Stacktrace
Generated at 2013-08-01 07:45:02 -0700
NoMethodError: windows_package[7-Zip 9.20 (x64 edition)] (7-zip::default line 21) had an error: NoMethodError: remote_file[c:/vagrant/chef/cache/7z920-x64.msi] (dynamically defined) had an error: NoMethodError: private method `select' called for nil:NilClass
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/file_content_management/deploy/mv_windows.rb:67:in `deploy'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/provider/file.rb:331:in `update_file_contents'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/provider/file.rb:350:in `block in do_contents_changes'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/mixin/why_run.rb:52:in `call'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/mixin/why_run.rb:52:in `add_action'
C:/opscode/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-11.6.0/lib/chef/provider.rb:149:in `converge_by'
C:/opscode/chef/embedded/lib/ruby/gems/
@joefitzgerald
joefitzgerald / gist:6160001
Created August 5, 2013 22:03
WinRM Error
[vagrant-windows] Running provisioner: shell...
C:\Users\vagrant>shutdown /r /t 0
C:\Users\vagrant>sleep 30
An error occurred executing a remote WinRM command.
Shell: powershell
Command: function which {
$command = [Array](Get-Command $args[0] -errorAction SilentlyContinue)