Skip to content

Instantly share code, notes, and snippets.

View DanPatey's full-sized avatar

Dan Patey DanPatey

View GitHub Profile
irb(main):004:0> json_hash[1]
=> {"node_id"=>1003708, "ip"=>"68.64.18.34", "start"=>"2011-07-08 17:21:13.790", "end"=>"2011-07-08 17:35:49.702"}
@DanPatey
DanPatey / gist:7379278
Created November 8, 2013 23:24
For David
-- production/2536 => cap prod_br2 deploy USER=Dan BRANCH=release
Faraday: you may want to install system_timer for reliable timeouts
+ exec ssh git@github.com 'git-upload-pack '\''br/shipit.git'\'''
* 2013-11-08 23:11:10 executing `prod_br2'
* 2013-11-08 23:11:10 executing `deploy'
triggering before callbacks for `deploy'
* 2013-11-08 23:11:10 executing `prep:preview'
* 2013-11-08 23:11:10 executing `prep:setup_prep'
* 2013-11-08 23:11:10 executing `prep:setup_chap'
servers: ["ec2-54-211-56-66.compute-1.amazonaws.com"]
-- [1]:production/2499 => cap prod_br2 deploy USER=Dan BRANCH=release
Faraday: you may want to install system_timer for reliable timeouts
+ exec ssh git@github.com 'git-upload-pack '\''br/shipit.git'\'''
* 2013-11-07 23:19:22 executing `prod_br2'
* 2013-11-07 23:19:23 executing `deploy'
triggering before callbacks for `deploy'
* 2013-11-07 23:19:23 executing `prep:preview'
* 2013-11-07 23:19:23 executing `prep:setup_prep'
* 2013-11-07 23:19:23 executing `prep:setup_chap'
servers: ["ec2-50-17-142-188.compute-1.amazonaws.com"]
command finished in 204207ms
* 2013-08-12 18:41:30 executing `deploy:migrate'
* 2013-08-12 18:41:30 executing `prep:setup_chap'
* executing "ls /data/br/releases/ | tail -1"
servers: ["ec2-54-227-37-80.compute-1.amazonaws.com"]
[ec2-54-227-37-80.compute-1.amazonaws.com] executing command
command finished in 19ms
* executing "sudo su - deploy -c 'cd /data/br/releases/20130812184036 && rake RAILS_ENV=staging db:migrate'"
servers: ["ec2-54-227-37-80.compute-1.amazonaws.com"]
[ec2-54-227-37-80.compute-1.amazonaws.com] executing command
@DanPatey
DanPatey / gist:4513032
Created January 11, 2013 18:57
Mobile Merge Conflict
Merging remote branch 'rc-7903-the-mob-standard-mobile' from 'mpanic/breport'.
Removing public/responsive_layout_test/js/modernizr-2.0.6.js
CONFLICT (rename/delete): public/pkg/stylesheets/bccee9bf_redesign_tablet_article.css deleted in HEAD and renamed in mpanic/rc-7903-the-mob-standard-mobile. Version mpanic/rc-7903-the-mob-standard-mobile of public/pkg/stylesheets/bccee9bf_redesign_tablet_article.css left in tree.
CONFLICT (rename/delete): public/pkg/stylesheets/ace45007_redesign_articles.css deleted in HEAD and renamed in mpanic/rc-7903-the-mob-standard-mobile. Version mpanic/rc-7903-the-mob-standard-mobile of public/pkg/stylesheets/ace45007_redesign_articles.css left in tree.
CONFLICT (rename/delete): public/pkg/stylesheets/9ef25c13_redesign_mobile_liveblog.css deleted in HEAD and renamed in mpanic/rc-7903-the-mob-standard-mobile. Version mpanic/rc-7903-the-mob-standard-mobile of public/pkg/stylesheets/9ef25c13_redesign_mobile_liveblog.css left in tree.
CONFLICT (rename/rename): Rename "public/pkg/styl
@DanPatey
DanPatey / gist:4253541
Created December 10, 2012 21:23
List of iPhone and iPad sauce drivers
def local_driver
Selenium::WebDriver.for(@browser.to_sym)
end
def iphone4_driver
caps = Selenium::WebDriver::Remote::Capabilities.iphone
caps.platform = 'Mac 10.6'
caps.version = '4.3'
Selenium::WebDriver.for(
@DanPatey
DanPatey / gist:4236802
Created December 7, 2012 21:48
Que es Macros.h
This file has been truncated, but you can view the full file.
dan@Dan-Pateys-MacBook-Pro:teamstream_iphone (master) $ xcodebuild -showsdksOS X SDKs: Mac OS X 10.7 -sdk macosx10.7
OS X 10.8 -sdk macosx10.8
iOS SDKs:
iOS 6.0 -sdk iphoneos6.0
iOS Simulator SDKs:
Simulator - iOS 4.3 -sdk iphonesimulator4.3
Simulator - iOS 5.0 -sdk iphonesimulator5.0
Simulator - iOS 5.1 -sdk iphonesimulator5.1
@DanPatey
DanPatey / gist:4235875
Created December 7, 2012 19:36
WaxSim 6.0 Build Error
dan@Dan-Pateys-MacBook-Pro:teamstream_iphone (master) $ xcodebuild -showsdksOS X SDKs: Mac OS X 10.7 -sdk macosx10.7
OS X 10.8 -sdk macosx10.8
iOS SDKs:
iOS 6.0 -sdk iphoneos6.0
iOS Simulator SDKs:
Simulator - iOS 4.3 -sdk iphonesimulator4.3
Simulator - iOS 5.0 -sdk iphonesimulator5.0
Simulator - iOS 5.1 -sdk iphonesimulator5.1
@DanPatey
DanPatey / gist:4235869
Created December 7, 2012 19:36
WaxSim 6.0 Build Error
dan@Dan-Pateys-MacBook-Pro:teamstream_iphone (master) $ xcodebuild -showsdksOS X SDKs: Mac OS X 10.7 -sdk macosx10.7
OS X 10.8 -sdk macosx10.8
iOS SDKs:
iOS 6.0 -sdk iphoneos6.0
iOS Simulator SDKs:
Simulator - iOS 4.3 -sdk iphonesimulator4.3
Simulator - iOS 5.0 -sdk iphonesimulator5.0
Simulator - iOS 5.1 -sdk iphonesimulator5.1
@DanPatey
DanPatey / gist:4235795
Created December 7, 2012 19:27
WaxSim Build Error
dan@Dan-Pateys-MacBook-Pro:teamstream_iphone (master) $ xcodebuild -showsdksOS X SDKs:
Mac OS X 10.7 -sdk macosx10.7
OS X 10.8 -sdk macosx10.8
iOS SDKs:
iOS 6.0 -sdk iphoneos6.0
iOS Simulator SDKs:
Simulator - iOS 4.3 -sdk iphonesimulator4.3
Simulator - iOS 5.0 -sdk iphonesimulator5.0