running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
# The following script will deploy a Laravel 5 applicaion on AWS Elastic Beanstalk. | |
# Add to .ebextensions at the root of your application and name your commands file (e.g., commands.config) | |
# -------------------------------- Commands ------------------------------------ | |
# Use "commands" key to execute commands on the EC2 instance. The commands are | |
# processed in alphabetical order by name, and they run before the application | |
# and web server are set up and the application version file is extracted. | |
# ------------------------------------------------------------------------------ | |
commands: | |
01updateComposer: |
<template> | |
<div class="modal-mask" v-show="show" @click="close" transition="modal"> | |
<div class="modal-container" @click.stop> | |
<slot></slot> | |
</div> | |
</div> | |
</template> | |
<style> | |
* { | |
box-sizing: border-box; |
<!-- This is a Node+WebSocket powered demo to sync videos | |
across different browsers. This file is the client, | |
the other one is the Node server. Powered by Node and | |
http://github.com/miksago/node-websocket-server --> | |
<style> | |
.inactive { display: none; } | |
.active { display: block; } | |
</style> | |
<script> |
<!-- This is a Node+WebSocket powered demo to sync videos | |
across different browsers. This file is the client, | |
the other one is the Node server. Powered by Node and | |
http://github.com/miksago/node-websocket-server --> | |
<style> | |
.inactive { display: none; } | |
.active { display: block; } | |
</style> | |
<script> |
import React, { Component } from 'react'; | |
import Video from 'react-native-video'; | |
import { | |
TouchableWithoutFeedback, | |
TouchableHighlight, | |
PanResponder, | |
StyleSheet, | |
Touchable, | |
Animated, | |
Easing, |
import React, { Component } from 'react'; | |
import Video from 'react-native-video'; | |
import { | |
TouchableWithoutFeedback, | |
TouchableHighlight, | |
PanResponder, | |
StyleSheet, | |
Touchable, | |
Animated, | |
Easing, |
<template> | |
<div> | |
<input type="file" multiple accept="image/*" @change="detectFiles($event.target.files)"> | |
<div class="progress-bar" :style="{ width: progressUpload + '%'}">{{ progressUpload }}%</div> | |
</div> | |
</template> | |
<script> |
/* globals localStorage */ | |
import { onSnapshot, applySnapshot } from 'mobx-state-tree'; | |
import Storage from './storage'; | |
export const persist = (name, store, options, schema = {}) => { | |
let hydrated = false; | |
let storage = options.storage; | |
if (typeof localStorage !== 'undefined' && localStorage === storage) { |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |