Skip to content

Instantly share code, notes, and snippets.

View tomafc330's full-sized avatar

Tomafc tomafc330

  • Everywhere
View GitHub Profile
@reidmorrison
reidmorrison / collection.rb
Last active September 28, 2015 21:19
Mongo Reconnect logic for Connection Failures. Deprecated, moved to: https://github.com/reidmorrison/mongo_ha
#
# NOTE: This gist is now deprecated and has been moved into a gem: https://github.com/reidmorrison/mongo_ha
#
require 'mongo/collection'
module Mongo
class Collection
alias_method :find_one_original, :find_one
def find_one(*args)
@skycocker
skycocker / Gemfile
Last active March 30, 2024 13:32
Get basic user info from Google Oauth V2 api (since google is an extraordinary piece of shit when it comes to documenting their stuff) (or making admin consoles)
gem 'google-api-client'