Instantly share code, notes, and snippets.

Luis Carlos Hernandez Macias luiskhernandez

  • Colombia
View GitHub Profile
View gist:647976badb46a41b4d81
rvm also has this problem. If zsh is your default shell when it starts /etc/zshenv gets executed.
This executes /usr/libexec/path_helper. That sets up the path based on the contents /etc/paths and /etc/paths.d/.
The faq for rvm mentions moving /etc/zshenv to /zsh/zshrc. I did this and it removed the /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin from the start of my path in macvim.
View gist:e5df26e2129ee823ca3d
brew install vim --with-features=huge --enable-interp=lua,ruby,perl,python
View Api controller
class ApplicationController < ActionController::API
before_action :authenticate_user_from_token!
def authenticate_user_from_token!
auth_token = request.headers['Authorization']
auth_token ? authenticate_with_token!(auth_token) : authentication_error
def authenticate_with_token!(token)
unless token.include?(':')