Skip to content

Instantly share code, notes, and snippets.

View utricularian's full-sized avatar

Sam Serrano utricularian

  • San Francisco Bay Area
View GitHub Profile

Adding Google Sign In With Rails and React

For this blog post we will be using ruby version 2.4.0 and rails version 5.1.4 as backend and React/Redux as frontend. Adding Google Sign in functionality in your application can be done in two popular ways.

  • Adding google sign in functionality in the frontend with google api client gapi.

  • Adding google sign in functionality logic in the backend server.

If your application has separate backendend with APIs feeding data to the frontend React application, I suggest you to follow the step 2. If you want yo enhance your application security, then you implement both.

@utricularian
utricularian / load
Last active October 1, 2015 00:23
Load github id_rsa until 6pm
#!/usr/bin/env bash
HOURS=$1
MINUTES=0
DIR=/Volumes/Sam
KEY=$DIR/id_rsa.github
if [ -z $HOURS ]; then
CURRENT_HOUR=$(date +'%H')
CURRENT_MINUTE=$(date +'%M')