Skip to content

Instantly share code, notes, and snippets.

@rabssm
rabssm / ffmpegtips.txt
Last active March 2, 2025 09:37
ffmpeg tips
# Interpolate video frames for a higher frame rate
ffmpeg -i source.mp4 -filter:v minterpolate -r 25 result.mp4
ffmpeg -i source.mp4 -vf minterpolate=50,tblend=all_mode=average,framestep=2 result.mp4
# Change the framerate (to 5 fps) of an input h264 raw video and convert to mkv
ffmpeg -r 5 -i input.h264 -vcodec copy output.mkv
# Crop a video to the bottom right quarter
ffmpeg -i in.mp4 -filter:v "crop=in_w/2:in_h/2:in_w/2:in_h/2" -c:a copy out.mp4
@mzaidannas
mzaidannas / Simple Docker Setup with Rails+Nginx+Redis+Postgres.md
Last active December 22, 2024 15:47
Simple Docker Setup with Rails+Nginx+Redis+Postgres.md

Typical rails setup with docker+puma+nginx+postgres

Zaid Annas

Devsinc inc. 30/08/2018

Overview

@automata
automata / .gitlab-ci.yml
Created June 5, 2018 00:56
Heroku Docker Container Release from GitLab CI (without Heroku CLI)
image: docker:latest
# Remember to set required vars as secret vars on GitLab CI settings
variables:
DOCKER_DRIVER: overlay
CONTAINER_TEST_IMAGE: ${CI_REGISTRY}/${CI_PROJECT_NAMESPACE}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}_test
CONTAINER_DEPLOY_IMAGE: ${HEROKU_REGISTRY}/${CI_PROJECT_NAME}/web
HEROKU_API_KEY: ${HEROKU_AUTH_TOKEN}
services:
@jlis
jlis / .gitlab-ci.yml
Created May 15, 2018 13:16
AWS ECS and ECR deployment via Docker and Gitlab CI
image: docker:latest
variables:
REPOSITORY_URL: <AWS ACCOUNT ID>.dkr.ecr.eu-central-1.amazonaws.com/<ECS REPOSITORY NAME>
REGION: eu-central-1
TASK_DEFINTION_NAME: <TASK DEFINITION NAME>
CLUSTER_NAME: <CLUSTER NAME>
SERVICE_NAME: <SERVICE NAME>
services:
@bgadrian
bgadrian / setup.dev.sh
Last active October 25, 2022 21:38
Linux web dev setup (made for ubuntu 17+)
#chrome
cd /tmp
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
sudo apt-get -f install
#docker
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
@nickytonline
nickytonline / my-mac-setup.sh
Last active December 17, 2024 16:19
Mac Setup Scripts
#!/bin/sh
# More Mac setup at https://mac.iamdeveloper.com
# Log file
timestamp=$(date +%s)
logFile="./my-mac-setup-$timestamp.log"
# if true is passed in, things will reinstall
reinstall=$1
@ptk911
ptk911 / my hosts
Last active January 1, 2023 15:45
Link tải tool getlink Fshare, 4share, tailieu, mp3/tv.zing, nhaccuatui, chiasenhac....
1. GetLink Fs4sTL:
<version1>5.7b</version1>
<download1>https://www.fshare.vn/file/GD7M96QXA84K</download1>
link tải: https://files.pw/vx4iplc14hs6
2. Music-Video Downloader:
<version2>4.3</version2>
<download2>https://www.fshare.vn/file/H64R8JS4UPO1</download2>
link tải: https://files.pw/tislq1qnyrcb
@mrbar42
mrbar42 / README.md
Last active April 9, 2025 18:03
bash scripts to create VOD HLS stream with ffmpeg almighty (tested on Linux and OS X)

running:

bash create-vod-hls.sh beach.mkv

will produce:

    beach/
      |- playlist.m3u8
 |- 360p.m3u8
@StevenACoffman
StevenACoffman / _MicroService Proxy Gateway Solutions.md
Last active July 15, 2024 05:12
Microservice Proxy/Gateway Solutions

MicroService Proxy Gateway Solutions

Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.

Github Star Trend:

Github Star History for Kong vs traefik vs fabio vs caddy vs Zuul

This is just a picture of this link from March 2, 2019

Originally, I had included some other solution

@KensoDev
KensoDev / main.py
Last active May 10, 2023 11:17
Lambda function to notify slack on ECS failed deployments
"""
Get notification from ECS when a deployment is failing. Post to slack
This lambda function receives a notification from a cloudwatch log filter when
an ECS deployment fails, it creates a hash based on the cluster arn and then
task definition and saves the file in S3.
To make sure we don't get duplicate, if we already have a file in S3, we don't
resend the notification.