Streaming git archives to S3 Part II: Using Docker

tl;dr Docker container Since there doesn't seem to be an official aws CLI containe, it's up to you to build/find one. Here's a simple Dockerfile. AWS Credentials There are many ways to pass in AWS credentials to the docker container. See Configuring the AWS Command Line Interface. Easiest…

Read this article

Streaming git archives to S3 Part I

First install the tools needed: git aws cli and setup your credentials Replace HEAD in git archive HEAD with the desired commit and replace s3://mybucket/$(git describe HEAD).zip with the desired S3 bucket/key.…

Read this article

Connecting to Postgres with STunnel

I recently had the need to connect serverA to a Postgres instance living on serverB so that serverA could receive Postgres connections and forward them to the Postgres living on serverB. Also, serverA and serverB are seperated and connected through the internet only which means connections between the two need…

Read this article

HLS with ffmpeg

When working with ffmpeg to generate a HLS stream, its important to keep in mind the generation of keyframes. As noted by Apple's encoding guide Keyframe: Should generally be equal to frame rate x 3 Use: (-g and -keyint_min) Apple's encoding guide: Best Practices for Creating and Deploying HTTP…

Read this article

Ghost + Heroku + ClearDB = No Permission

On Heroku? Using ClearDB? Getting this message when you're posting? Your post could not be saved as a draft. You do not have permission to add posts. It's because the Administrator role doesn't have the proper permissions associated with it due to mismatching permission_ids in the permissions_roles table.…

Read this article