Skip to content

Instantly share code, notes, and snippets.

View joefitzgerald's full-sized avatar

Joe Fitzgerald joefitzgerald

View GitHub Profile
@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: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: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:1419624
Created December 1, 2011 20:31
Empty Twilio Response
We couldn’t find that file to show.

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 / keybase.md
Created September 23, 2014 20:29
keybase.md

Keybase proof

I hereby claim:

  • I am joefitzgerald on github.
  • I am joefitzgerald (https://keybase.io/joefitzgerald) on keybase.
  • I have a public key whose fingerprint is 93DE 6FA9 397F 6F38 DE5F C14E 3FAE 73BF 9E8A 848C

To claim this, I am signing this object:

go: missing Mercurial command. See http://golang.org/s/gogetcmd
package code.google.com/p/go.tools/cmd/goimports: exec: "hg": executable file not found in $PATH
@joefitzgerald
joefitzgerald / update-gopivotal-com-email-addresses.scpt
Created August 3, 2014 16:23
Update gopivotal.com Email Addresses
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
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]