Skip to content

Instantly share code, notes, and snippets.

@chand
chand / aws.md
Last active August 26, 2017 15:25
AWS S3 Guide

AWS S3

Installing AWS Command Line Interface (Mac OS X)

Create Access Key ID & Secret Access Key

  • Go to your IAM Console
  • Select Users
  • Click on the User Name
  • Select "Security Credientials" tab
@chand
chand / flexbox-basics.md
Last active August 26, 2017 15:26
Flexbox Basics

Flexbox Basics

Overview

Flex Container:

@chand
chand / rails-drop-tablemigration-model-controller.md
Last active November 21, 2024 10:44
Drop Table, Model, Migration in Rails

Dropping Migration Table, Models, Controller

Command Line

1. Drop Table/Migration

rails generate migration DropTablename

A file will be created, in the db > migrate folder, make sure it looks like:

@chand
chand / materialize-set-up-rails-html.md
Last active August 26, 2017 15:27
Materialize Set up - Ruby on Rails and HTML

Materialize Setup for HTML

After downloading, extract the files into the directory where your website is located. Your directory should look something like this:

MyWebsite/
  |--css/
  |  |--materialize.css
  |
  |--fonts/
@chand
chand / git-io-shortener.md
Last active April 13, 2020 14:01
git.io URL Shortener with custom code

git.io URL Shortener with custom code

Install Gem

$ gem install git.io

To shorten a URL without a custom code:

$ git.io https://github.com/chand
@chand
chand / cracklepop.rb
Last active August 31, 2016 16:35
Crackle Pop! (in Ruby)
def cracklepop
array = (1..100).to_a
array.each do |number|
if number % 3 == 0 && number % 5 == 0
array << "CracklePop"
elsif number % 3 == 0
array << "Crackle"
elsif number % 5 == 0
array << "Pop"
@chand
chand / addgodaddycustomdomaintogithubsite.md
Last active August 26, 2017 15:39
Add Go Daddy Custom Domain to a Github website

Add Go Daddy Custom Domain to a Github website

In GoDaddy

  1. Go to "Manage my Domains"
  2. Next to your domain, click on the Settings Sprocket Drop down and select "Manage DNS"
  3. At the bottom of the "Records" Section, click "ADD" Type: A Host: @ Points to: 192.30.252.153
  • Leave TTL as is
@chand
chand / godaddycustomdomaintoheroku.md
Last active June 13, 2021 00:27
Pointing a Custom Go Daddy Domain to Heroku App

Pointing a Custom Go Daddy Domain to Heroku App

In your GoDaddy Account

  1. Go to "Manage my Domains"

  2. Find your domain name and on the sprocket icon drop down menu, select "Manage DNS"

  3. Under Records, add/change the following

Add &gt;
@chand
chand / gitworkflow.md
Last active October 2, 2017 01:16
Git Workflow.md

Git Workflow

Adding Files fom Feature Branch

  1. In command line:
git add .
git commit -m "[add message here]"
git push origin [branch-name]
  1. Go to github repo in browser and open pull request
@chand
chand / railsbootstrapsetup.md
Last active August 26, 2017 15:38
Boostrap Setup for Ruby on Rails

Bootstrap Setup for Ruby on Rails

  1. Set up new rails project if not done so yet

  2. In the gemfile:

gem 'bootstrap-sass', '~> 3.3.6'
gem 'sass-rails', '>= 3.2'