Skip to content

Instantly share code, notes, and snippets.

View colewinans's full-sized avatar

Cole Winans colewinans

View GitHub Profile
class VideoWorker
include Sidekiq::Worker
def perform(id, s3_key)
# Get the video
video = Video.find(id)
# Call ffmpeg to measure duration
duration = `ffmpeg -i '#{video.ffmpeg_url}' 2>&1 | grep Duration | awk '{print $2}' | tr -d ,`
@colewinans
colewinans / blockstackid.txt
Created November 8, 2017 22:20
Blockstack ID
Verifying my Blockstack ID is secured with the address 18nsbj4hQKPv8wY3ih4hToN8Rgms9PxXns https://explorer.blockstack.org/address/18nsbj4hQKPv8wY3ih4hToN8Rgms9PxXns