Skip to content

Instantly share code, notes, and snippets.

View cruisemaniac's full-sized avatar

Ashwin Murali cruisemaniac

View GitHub Profile
@cruisemaniac
cruisemaniac / app_and_api_template.rb
Created November 2, 2021 06:55 — forked from anujmiddha/app_and_api_template.rb
A Rails application template to setup an app with Web and API end points
def user_model
file 'app/models/user.rb', <<-CODE
# frozen_string_literal: true
## User class
class User < ApplicationRecord
rolify
# Include default devise modules. Others available are:
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
devise :database_authenticatable, :registerable,
@cruisemaniac
cruisemaniac / install.sh
Created August 5, 2017 06:04 — forked from chaos-ad/install.sh
Installing erlang in ubuntu
#!/bin/bash
# installing erlang on ubuntu's
VERSION="R15B01"
sudo apt-get install build-essential libncurses5-dev openssl libssl-dev
sudo mkdir -p /opt/erlang/
curl -O https://raw.github.com/spawngrid/kerl/master/kerl && chmod a+x kerl
sudo mv kerl /opt/erlang/