Skip to content

Instantly share code, notes, and snippets.

View developius's full-sized avatar

Finnian Anderson developius

View GitHub Profile
@developius
developius / README.md
Last active July 23, 2021 04:31
Google Cloud Storage example CORS configuration for Rails/ActiveStorage

This gist shows you how to configure a Google Cloud Storage bucket CORS for use with Rails' ActiveStorage (or any other direct-upload mechanism).

  1. Update the policy JSON to reflect your setup (likely only changing the origin parameter)
  2. Run this: $ gsutil cors set ./cors-json-file.json gs://<bucket-name>
@developius
developius / README.md
Last active May 23, 2022 09:37
React Native + Ruby on Rails + AWS S3 Presigned PUT
@developius
developius / README.md
Last active April 25, 2024 22:15
Setup SSH keys for use with GitHub/GitLab/BitBucket etc

Create a new repository, or reuse an existing one.

Generate a new SSH key:

ssh-keygen -t rsa -C "your_email@example.com"

Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings (https://github.com/settings/keys).

Test SSH key: