Skip to content

Instantly share code, notes, and snippets.


Kaz Walker KazW

View GitHub Profile
code0100fun / app_controllers_sign-in.js
Created Jun 8, 2015
Ember Simple AUth + Ember CLI Mirage
View app_controllers_sign-in.js
// app/controllers/sign-in.js
import Ember from 'ember';
export default Ember.Controller.extend({
actions: {
this.set('errors', null);
var params = { identification: this.get('email'), password: this.get('password') };
// Redirects to index route on success (configurable in config/environment.js)
this.get('session').authenticate('simple-auth-authenticator:oauth2-password-grant', params);
jpfuentes2 /
Created Mar 8, 2012
CentOS: rbenv install and system wide install
# CentOS rbenv system wide installation script
# Forked from
# Installs rbenv system wide on CentOS 5/6, also allows single user installs.
# Install pre-requirements
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \
make bzip2 autoconf automake libtool bison iconv-devel git-core