Skip to content

Instantly share code, notes, and snippets.

View lardawge's full-sized avatar

Larry Sprock lardawge

  • Los Angeles, CA
View GitHub Profile
@lardawge
lardawge / .bash_profile
Last active July 26, 2019 22:44
Shortcuts and scripts for Git
# Run brew install git bash-completion
# Add bash-completion to your ~/.bash_profile:
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion || {
# if not found in /usr/local/etc, try the brew --prefix location
[ -f "$(brew --prefix)/etc/bash_completion.d/git-completion.bash" ] && \
. $(brew --prefix)/etc/bash_completion.d/git-completion.bash
}
DULL=0
BRIGHT=1
module Devise
module Strategies
class Token < Base
attr_reader :email, :token
def initialize(env, scope = nil)
super
return unless auth = ActionController::HttpAuthentication::Token.token_and_options(request)