running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| #!/bin/bash | |
| # download | |
| wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip | |
| # unzip | |
| unzip ngrok-stable-linux-amd64.zip | |
| # move to /usr/local/bin | |
| sudo mv ngrok /usr/local/bin |
| use Drupal\Core\Entity\EntityStorageInterface; | |
| +use Drupal\Core\Entity\RevisionableContentEntityBase; | |
| use Drupal\Core\Field\BaseFieldDefinition; | |
| use Drupal\Core\Entity\ContentEntityBase; | |
| use Drupal\Core\Entity\EntityChangedTrait; | |
| @@ -19,6 +20,7 @@ | |
| * @ContentEntityType( | |
| * id = "restaurant", | |
| * label = @Translation("Restaurant"), | |
| + * show_revision_ui = TRUE, |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Remove rubberband scrolling from web apps on mobile safari and standalone (iOS)</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="apple-touch-fullscreen" content="yes"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no"> | |
| <style> | |
| html, body {margin: 0; padding: 0; width:100%; height:100%; overflow: hidden; background: #333} | |
| p.center { |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| <?php | |
| /** | |
| * @file | |
| * Contains \Drupal\jcmodule\Theme\ThemeNegotiator | |
| */ | |
| namespace Drupal\jcmodule\Theme; | |
| use Drupal\Core\Routing\RouteMatchInterface; | |
| use Drupal\Core\Theme\ThemeNegotiatorInterface; |
| /** | |
| * Think of this "main.js" file as your application bootstrap. | |
| */ | |
| import Vue from 'vue' | |
| import Resource from 'vue-resource' | |
| import VueRouter from 'vue-router' | |
| import routes from './routes' | |
| import middleware from './middleware' |
| # Install QEMU OSX port with ARM support | |
| sudo port install qemu +target_arm | |
| export QEMU=$(which qemu-system-arm) | |
| # Dowload kernel and export location | |
| curl -OL \ | |
| https://github.com/dhruvvyas90/qemu-rpi-kernel/blob/master/kernel-qemu-4.1.7-jessie | |
| export RPI_KERNEL=./kernel-qemu-4.1.7-jessie | |
| # Download filesystem and export location |
| <?php | |
| /** | |
| * MailSender | |
| * Per utilitzar PHPMailer de forma molt més senzilla i | |
| * utilitzant plantilles HTML. | |
| * | |
| * Dependencies: | |
| * - PHPMailer | |
| * | |
| * @version 0.24 |
| // FUNCTION-BASED ANIMATION SEQUENCES FOR WS2812 LED STRIPS | |
| // Using FastLED library | |
| // Author: Dave Morris: http://www.google.com/+DaveMorris128 | |
| // Version 1.0 (2014-07-31) | |
| // | |
| // | |
| // The following code includes "primitive animations" which are the base effect and | |
| // "aggregate animations" which are combinations of one or more primitive animations | |
| // Feel free to combine different primitives each loop for synergistic results but: | |
| // -If using an aggregate animation make sure your primatives don't clear the buffer each frame (FastLED.clear()) |