Skip to content

Instantly share code, notes, and snippets.

View developius's full-sized avatar
💭
Stay curious 🧐

Finnian Anderson developius

💭
Stay curious 🧐
View GitHub Profile
@developius
developius / Dockerfile
Created November 4, 2017 16:33
ffmpeg + opencv dockerfile
FROM python:2.7
RUN apt-get update -qy && apt-get install -qy libmp3lame-dev libopenjpeg-dev pkg-config yasm libav-tools libspeex-dev libtheora-dev libvorbis-dev libx264-dev
WORKDIR /root
RUN wget http://ffmpeg.org/releases/ffmpeg-3.4.tar.bz2
RUN tar xvjf ffmpeg-3.4.tar.bz2
WORKDIR /root/ffmpeg-3.4
@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 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>