Skip to content

Instantly share code, notes, and snippets.

View FunkyloverOne's full-sized avatar

Nazar Matus FunkyloverOne

View GitHub Profile
@FunkyloverOne
FunkyloverOne / script.rb
Last active October 10, 2018 16:03 — forked from janko/script.rb
Workaround for embedded documents in shrine-mongoid
require "mongoid"
require "shrine"
require "shrine/storage/memory"
require "stringio"
Mongoid.configure do |config|
config.clients.default = { hosts: ['localhost:27017'], database: 'my_db' }
config.log_level = :debug
end
# frozen_string_literal: true
class TranscodeJob
include Sidekiq::Worker
ORIGINAL_VERSION_NAME = 'original'
VIDEO_TRANSCODING_PIPELINE_ID = ENV['video_transcoding_pipeline_id']
# list your versions here
VIDEO_TRANSCODING_VERSIONS_OPTIONS = {
'480p' => {