Skip to content

Instantly share code, notes, and snippets.

View codekacode's full-sized avatar
🎯
Focusing

Codeka codekacode

🎯
Focusing
View GitHub Profile

Cheat Sheet for Adding Google Authentication to A Ruby on Rails App

Prerequisites

A Ruby on Rails app with authentication provided through the devise gem

Elements

Google API setup

  • Go to https://console.developers.google.com and create your project.
  • In your new project, enable the Google+ API and Contacts API.
  • Go to Credentials, then select the "OAuth consent screen" tab on top, and provide your email address and product name.
@thegitfather
thegitfather / vanilla-js-cheatsheet.md
Last active July 17, 2025 02:58
Vanilla JavaScript Quick Reference / Cheatsheet
@willurd
willurd / web-servers.md
Last active October 24, 2025 16:17
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@rstacruz
rstacruz / index.md
Last active August 2, 2025 18:42
Rails models cheatsheet

Rails Models

Generating models

$ rails g model User

Associations

belongs_to

has_one

@iansheridan
iansheridan / git-cheat-sheet.md
Created March 15, 2011 14:25
A cheat sheet for GIT

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file: