Zaid Annas
Devsinc inc. 30/08/2018
| #!/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 |
| #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 \ |
| 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: |
| 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: |
| # 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 |
| import org.gradle.api.DefaultTask | |
| import org.gradle.api.artifacts.Configuration | |
| import org.gradle.api.attributes.Attribute | |
| import org.gradle.api.model.ObjectFactory | |
| import org.gradle.api.tasks.* | |
| import org.gradle.kotlin.dsl.setProperty | |
| import java.io.File | |
| import javax.inject.Inject | |
| /** |
Please refer to this blogpost to get an overview.
Replace *-INSTANCE with one of the public instances listed in the scrapers section. Replace CAPITALIZED words with their corresponding identifiers on the website.
Blender - I'm not sure if this one counts since it is more of a CAD program than a video editor.
Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs. Tasks can be automated using projects, job queue and powerful scripting.
| //Abstração | |
| class TestLiveData<T, Q> : TestLiveDataI<T, Q> { | |
| val success = MutableLiveData<T>() | |
| val loading = MutableLiveData<Boolean>() | |
| val error = Event<Q>() | |
| override fun successLiveData(): LiveData<T> = success | |
| override fun loadingLiveData(): LiveData<Boolean> = loading | |
| override fun errorLiveData(): LiveData<Q> = error |