Skip to content

Instantly share code, notes, and snippets.

@thanhtoan1196
thanhtoan1196 / encode.sh
Created January 21, 2020 13:51 — forked from mikoim/README.md
YouTube recommended encoding settings on ffmpeg (+ libx264)
#/bin/sh
ffmpeg -i input -c:v libx264 -preset slow -profile:v high -crf 18 -coder 1 -pix_fmt yuv420p -movflags +faststart -g 30 -bf 2 -c:a aac -b:a 384k -profile:a aac_low output
@thanhtoan1196
thanhtoan1196 / README.md
Created January 18, 2020 13:34 — forked from mrbar42/README.md
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
@thanhtoan1196
thanhtoan1196 / README.md
Created January 18, 2020 13:28
A node js server which streams mkv to just mkv supported browsers

Setup

Get nodejs from Node

To run

node server.js
@thanhtoan1196
thanhtoan1196 / _sns_description
Created January 15, 2020 02:30 — forked from akiatoji/_sns_description
AWS SNS Sample code.
Notes on how to use AWS SNS:
1. Subscribe an HTTP endpoint (i.e. http://myhost/sns_endpoint) on AWS Console
2. AWS will send subscription confirmation right away
3. SNS_controller responds to subscription confirmation by sending confirmation using Fog.
4. Once AWS is happy, you can start sending notifications to your end point via SNS.
010-editor: 010 Editor
0-ad: 0 A.D.
0xed: 0xED
115browser: 115Browser, 115浏览器
1clipboard: 1Clipboard
1password: 1Password
1password-cli: 1Password CLI
245cloud: 245cloud
33-rpm: 33 RPM
360safe: 360 Total Security
@thanhtoan1196
thanhtoan1196 / subtitle-extract.md
Created December 8, 2019 14:03 — forked from pavelbinar/extract-subtitles-from-mkv.md
Extract subtitles from .mkv files on Mac OS X

Extract Subtitles From .mkv

This instructions whall work on any system (Mac OS X, Linux) supporting installation of mkvtoolnix

Install mkvtoolnix

If you don't have Homebrew installed, do it first, the continue with following command:

brew install mkvtoolnix
@thanhtoan1196
thanhtoan1196 / my hosts
Created May 14, 2019 07:39 — forked from ptk911/my hosts
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://www.upload.ee/files/9691451/GetLink_Fs4sTL_5.7b.exe.html
2. Music-Video Downloader:
<version2>4.2</version2>
<download2>https://www.fshare.vn/file/CDI762GUM96U</download2>
link tải: https://www.upload.ee/files/9652713/Music-Video_Downloader_4.2.exe.html

install nodejs

sudo apt-get update
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs yarn
minSdkVersion = 21
targetSdkVersion = 23
compileSdkVersion = 26
buildToolsVersion = "26.0.2"
kotlinVersion = "1.2.10"
supportLibraryVersion = "26.0.2"
constraintLayoutVersion = "1.0.2"
multidexVersion = "1.0.1"
@thanhtoan1196
thanhtoan1196 / build.gradle
Created September 16, 2017 04:32 — forked from maxirosson/build.gradle
Versioning Android apps
apply plugin: 'com.android.application'
ext.versionMajor = 1
ext.versionMinor = 2
ext.versionPatch = 3
ext.versionClassifier = null
ext.isSnapshot = true
ext.minimumSdkVersion = 15
android {