Skip to content

Instantly share code, notes, and snippets.

View modocache's full-sized avatar

Brian Gesiak modocache

View GitHub Profile
@modocache
modocache / Procfile
Created April 13, 2012 16:58
Sample Procfile
web: python manage.py run_gunicorn -b 0.0.0.0:$PORT -w 3
worker: python manage.py celeryd -E -B --loglevel=INFO
@modocache
modocache / gist:2501598
Created April 26, 2012 18:17
CocoaPods <3 RestKit
platform :ios
dependency 'RestKit/Network', '0.9.3'
dependency 'RestKit/ObjectMapping', '0.9.3'
dependency 'RestKit/ObjectMapping/CoreData', '0.9.3'
dependency 'RestKit/ObjectMapping/JSONKit', '0.9.3'
@modocache
modocache / gist:2501599
Created April 26, 2012 18:17
CocoaPods <3 RestKit
platform :ios
dependency 'RestKit/Network', '0.9.3'
dependency 'RestKit/ObjectMapping', '0.9.3'
dependency 'RestKit/ObjectMapping/CoreData', '0.9.3'
dependency 'RestKit/ObjectMapping/JSONKit', '0.9.3'
@modocache
modocache / gist:3021613
Created June 30, 2012 00:44 — forked from rmyers/appengine.sh
Create a Virtual ENV for appengine and python2.5
#!/bin/bash
#
# Build a virtual environment suitable for running appengine.
# This uses virtualenvwrapper to make the virtual environment.
# Which you can activate with 'workon appengine'
#
# Everyone loves one-liners!
# Mac one-liner:
# $ curl -s https://raw.github.com/gist/3021613 | bash
#
@modocache
modocache / jenkinsBuild.sh
Created August 20, 2012 18:54
Jenkins Build Script
#!/bin/sh
set -e
BUILD_NUMBER=$1
die () {
echo >&2 "$@"
def android_login
token = params['token']
uri = URI.parse("https://www.googleapis.com")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
path = "/oauth2/v1/tokeninfo?access_token=#{token}"
resp = http.get(path)
data = JSON.parse(resp.body)
if resp.code == "200" && user = User.find_or_create_by_email(data['email'])
require "dependencies/version"
require 'set'
module Dependencies
class Dependencies
def initialize
@graph = Hash.new([])
end
def add_direct(dependent, dependencies)
diff --git a/Classes/Core/KWFailure.m b/Classes/Core/KWFailure.m
index 2ffb147..4bbea8f 100644
--- a/Classes/Core/KWFailure.m
+++ b/Classes/Core/KWFailure.m
@@ -46,8 +46,10 @@
NSDictionary *userInfo = nil;
if (self.callSite) {
NSNumber *lineNumber = @(self.callSite.lineNumber);
- userInfo = @{SenTestFilenameKey: self.callSite.filename,
- SenTestLineNumberKey: lineNumber};
diff --git a/Classes/Core/KWSpec.m b/Classes/Core/KWSpec.m
index e8cee22..c133531 100644
--- a/Classes/Core/KWSpec.m
+++ b/Classes/Core/KWSpec.m
@@ -5,17 +5,16 @@
//
#import "KWSpec.h"
-#import <objc/runtime.h>
-#import <objc/message.h>
@modocache
modocache / gist:6597600
Created September 17, 2013 17:26
AppCode can't install gems.
> gem install cocoapods --no-ri --no-rdoc --user-install
WARNING: You don't have /Users/bgesiak/.gem/ruby/2.0.0/bin in your PATH,
gem executables will not run.
Successfully installed i18n-0.6.5
Successfully installed multi_json-1.8.0
Successfully installed activesupport-3.2.14
Successfully installed nap-0.5.1
Building native extensions. This could take a while...
ERROR: Error installing cocoapods: