Skip to content

Instantly share code, notes, and snippets.

Tom tomfast

Block or report user

Report or block tomfast

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kivanio
kivanio / token.rb
Created Dec 22, 2016 — forked from GregBaugues/token.rb
Google API OAuth 2.0 refresh token (Ruby on Rails)
View token.rb
# The OAuth access token provided by the Google API expires in 60 minutes. After expiration,
# you must exchange a refresh token for a new access token. Unfortunately, the the Google API
# ruby gem does not include a method for refreshing access tokens.
# You can read up on how to refresh an access token here:
# https://developers.google.com/accounts/docs/OAuth2WebServer#refresh
# This Token model implements that process. It's based off of a Token model that can be created
# by running:
# rails g model Token token:text refresh_token:string expires_at:datetime
View rails-snow-leopard
# recent xcode
# http://developer.apple.com/technologies/xcode.html
# brew
ruby -e "$(curl -fsS http://gist.github.com/raw/323731/install_homebrew.rb)"
brew doctor
# UNIX stuff
brew install git
brew install imagemagick
@bkeating
bkeating / howto-filemerge-git-osx.md
Created Mar 11, 2010
HOWTO: Using FileMerge (opendiff) with Git on OSX
View howto-filemerge-git-osx.md

HOWTO: Using FileMerge (opendiff) with Git on OSX

FileMerge (opendiff) can really come in handy when you need to visually compare merging conflicts. Other times it's just a nice visual way to review your days work.

The following method works by creating a simple bash script (git-diff-cmd.sh) that sets us up with the proper command line arguments for Git to pass off files to FileMerge.

You can’t perform that action at this time.