Skip to content

Instantly share code, notes, and snippets.

View babajidemm's full-sized avatar
🎯
Coding to survive

Babajide Mayowa Moibi babajidemm

🎯
Coding to survive
View GitHub Profile
@babajidemm
babajidemm / rails_new_options_help.md
Created May 14, 2020 14:15 — forked from kirillshevch/rails_new_options_help.md
List of "rails new" options to generate a new Rails 6 application

Run rails new --help to view all of the options you can use to generate new Rails application:

Output for Rails 6+

Usage:
  rails new APP_PATH [options]

Options:
      [--skip-namespace], [--no-skip-namespace]              # Skip namespace (affects only isolated applications)
@babajidemm
babajidemm / custom_authorizer_function.rb
Created November 11, 2019 09:45
A Lambda function for AWS API Gateway Authentication using Ruby runtime (v2.5)
require "base64"
def lambda_handler(event:, context:)
#puts "event: #{event.inspect}"
#puts "context: #{context.inspect}"
authorization_token = event['authorizationToken']
return deny(event, "Auth Token unavailable") unless authorization_token