Skip to content

Instantly share code, notes, and snippets.

Avatar

Kaz Walker KazW

View GitHub Profile
@code0100fun
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: {
signIn(){
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);
View shoponrails_install.md
@jpfuentes2
jpfuentes2 / rbenv-install-system-wide.sh
Created Mar 8, 2012
CentOS: rbenv install and system wide install
View rbenv-install-system-wide.sh
#!/bin/bash
# CentOS rbenv system wide installation script
# Forked from https://gist.github.com/1237417
# 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