Skip to content

Instantly share code, notes, and snippets.

@mvasilenko
mvasilenko / gist:108f53fb6bf00c112869c8043a41e1f0
Created July 12, 2024 07:51
ecs_run_migration_task_and_wait.rb
# frozen_string_literal: true
# This script is used during the deployment process. It runs 2 threads in parallel:
#
# 1) Calls run-task to execute a migration task within a cluster, and then waits for it to exit with 0 code.
# Throws an exception in case of non-0 exit code;
#
# 2) Waits for all the service to become stable after the deployment.
#
# Both have actually 10 minutes timeout, but if any of them fails before with an exception - the whole process dies immediatelly.
@mvasilenko
mvasilenko / gist:04634a031bf7f94dc6c356ff11ea2607
Created October 17, 2024 15:51
create movie from multiple jpg pictures with rotation clockwise and x264 encoding for instagram
ffmpeg -pattern_type glob -i '*.jpg' -filter_complex "[0:v]transpose=1,crop=1280:1280:0:0[v]" \
-map "[v]" -c:v libx264 -r 30 -crf 23 -x264-params scenecut=0:open_gop=0:min-keyint=72:keyint=72:ref=4 output.mp4 -y