Skip to content

Instantly share code, notes, and snippets.

View DanPatey's full-sized avatar

Dan Patey DanPatey

View GitHub Profile
@DanPatey
DanPatey / DBCharmerFail1
Created July 16, 2012 18:10
DB Charmer: Force Slave Reads on HatController#hat -- Server 500 on Deploy
dan@Dan-Pateys-MacBook-Pro:breport (qa_rc_DanPatey) $ time cap gamma deploy:patch BRANCH=qa_rc_DanPatey ASSET=1 RESERVE=1440 FORCE=0
/Users/dan/.rvm/gems/ree-1.8.7-2012.02/gems/engineyard-1.4.18/lib/engineyard/api.rb:87:in `request': 500 Internal Server Error <!DOCTYPE html> (EY::API::RequestFailed)
<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="content-type">
<meta content="ie=edge,chrome=1" http-equiv="x-ua-compatible">
<meta content="engine yard" name="author">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<title>Something went wrong</title>
<link href="/favicon.ico" rel="shortcut icon">
@DanPatey
DanPatey / gist:3299071
Created August 8, 2012 21:46
Server 500 on FB Merge
curl -H "Content-Type: application/json" -X POST -d '{"email":"[email protected]","first_name":"Dan","last_name":"Patey","facebook_id":"10150298063203226","auth_token":"1da85f8c0171f2d8e4404c5744ddc474c9ea33a2ab31dd3a9b5bbe8ce0a3b3465b690c727ebe2610a2085b371acc8802e07f7faadd3cd3e1847aa7922b720326"}' http://2bleacherreport.com/api/user.json
** [out :: alpha_app_master] config.load_paths= is deprecated and removed in Rails 3, please use autoload_paths= instead
** [out :: alpha_app_master]
** [out :: alpha_app1] ** Invoke ts:config (first_time)
** [out :: alpha_app1]
** [out :: alpha_app1] ** Invoke thinking_sphinx:configure (first_time)
** [out :: alpha_app1]
** [out :: alpha_app1] ** Invoke thinking_sphinx:app_env (first_time)
** [out :: alpha_app1]
** [out :: alpha_app1] ** Execute thinking_sphinx:app_env
** [out :: alpha_app1]
@DanPatey
DanPatey / gist:4229231
Created December 6, 2012 22:56
Delta deploy fail the-mob-standard-mobile
dan@Dan-Pateys-MacBook-Pro:breport (rc) $ time cap delta deploy BRANCH=mpanic/rc-7903-the-mob-standard-mobile ASSET=1 RESERVE=1440 FORCE=1
[Deprecation Warning] This API has changed, please hook `deploy:create_symlink` instead of `deploy:symlink`.
* 2012-12-06 14:54:33 executing `delta'
* 2012-12-06 14:54:33 executing `deploy'
triggering before callbacks for `deploy'
* 2012-12-06 14:54:33 executing `deploy:notify:start'
* executing "curl -X POST -d \"application=bleacherreport\" http://weather.engineyard.com/`hostname`/deploy_start -fs"
servers: ["delta_app_master", "delta_app1", "delta_app2", "delta_util0", "delta_util2", "delta_util3", "delta_util1"]
[delta_app2] executing command
[delta_util0] executing command
@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
@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: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: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: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: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