Skip to content

Instantly share code, notes, and snippets.

monssef rezof

  • morocco
Block or report user

Report or block rezof

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View mp4
#!/bin/bash
nohup ffmpeg -i $1 -vcodec copy -strict -2 -ac 2 $1".mp4" &
@rezof
rezof / subtitle-extract.txt
Created Jan 16, 2018 — forked from bmaeser/subtitle-extract.txt
extract subtitles from *.mkv-files on osx
View subtitle-extract.txt
lines with $ are commands
### install mkvtoolnix:
$ brew install mkvtoolnix
### list content of the mkv-file:
$ mkvmerge -i mymoviefile.mkv
### what will give you:
@rezof
rezof / .block
Last active Sep 4, 2017 — forked from mbostock/.block
Zoom to Domain
View .block
license: gpl-3.0
@rezof
rezof / deregister.sh
Created Jul 20, 2017 — forked from bpholt/deregister.sh
Stop tasks on ECS Container Instance and Deregister it from ECS Cluster
View deregister.sh
#!/bin/bash
cluster=default
container_instance= # container instance guid
tasks=$(aws --region us-west-2 ecs list-tasks --container-instance $container_instance --cluster $cluster | jq -r '.taskArns | map(.[40:]) | reduce .[] as $item (""; . + $item + " ")')
for task in $tasks; do
aws --region us-west-2 ecs stop-task --task $task --cluster $cluster
done
aws --region us-west-2 ecs deregister-container-instance --cluster $cluster --container-instance $container_instance
@rezof
rezof / gist:2ccaedb2346e8ee2a5f27887ed8c25e5
Last active Feb 20, 2017 — forked from marty-wang/gist:5a71e9d0a6a2c6d6263c
Compile and deploy React Native Android app of Release version to device.
View gist:2ccaedb2346e8ee2a5f27887ed8c25e5
Disclaimer: The instructions are the collective efforts from a few places online.
Nothing here is my original. But I want to put them together in one place to save people from spending the same time as I did.
First off, bundle.
==================
1. cd to the project directory
2. Start the react-native packager if not started
3. Download the bundle to the asset folder:
curl "http://localhost:8081/index.android.bundle?platform=android" -o "android/app/src/main/assets/index.android.bundle"
You can’t perform that action at this time.