Skip to content

Instantly share code, notes, and snippets.

View marcweil's full-sized avatar

Marc Weil marcweil

  • Google
  • Boulder Creek, CA
  • 06:06 (UTC -07:00)
View GitHub Profile
@marcweil
marcweil / keybase.md
Created September 27, 2016 22:39
Keybase Identity Proof

Keybase proof

I hereby claim:

  • I am marcweil on github.
  • I am marcweil (https://keybase.io/marcweil) on keybase.
  • I have a public key ASA13fYMeEn6yZE4AgXGjd9K8XfKdVxUp2QCxbeB3pSFPQo

To claim this, I am signing this object:

@marcweil
marcweil / AppDelegate.h
Created February 27, 2012 04:57
CloudMine and Urban Airship Integration
#import <CloudMine/CloudMine.h>
@interface MyAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (strong, nonatomic) CMStore *store;
@end
@marcweil
marcweil / 0-readme.md
Created January 28, 2012 16:46 — forked from burke/0-readme.md
ruby-1.9.3-p0 cumulative performance patch.

Patched ruby 1.9.3-p0 for 30% faster rails boot

What is?

This script installs a patched version of ruby 1.9.3-p0 with patches to make ruby-debug work again (#47) and boot-time performance improvements (#66 and #68), and runtime performance improvements (#83 and #84).

Huge thanks to funny-falcon for the performance patches.

@marcweil
marcweil / geo-structure.json
Created January 13, 2012 21:11
CloudMine Geo Blog Examples
{
"__type__": "geopoint",
"latitude": 39.959926,
"longtiude": -75.162161
}
{
"result": {
"images": [
"http://imgr.com/image1.png",
"http://imgr.com/some-other-image.png"
]
}
}
@marcweil
marcweil / ssl.rb
Created October 25, 2011 03:59
Fix for Ruby's inability to properly validate SSL certs on Ubuntu
if Rails.env == 'production' or Rails.env == 'staging'
require 'open-uri'
require 'net/https'
module Net
class HTTP
alias_method :original_use_ssl=, :use_ssl=
def use_ssl=(flag)
self.ca_file = '/etc/ssl/certs/ca-certificates.crt'
self.verify_mode = OpenSSL::SSL::VERIFY_PEER