Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
| import {Injectable, provide} from 'angular2/core'; | |
| import {Observable} from 'rxjs'; | |
| const GEOLOCATION_ERRORS = { | |
| 'errors.location.unsupportedBrowser': 'Browser does not support location services', | |
| 'errors.location.permissionDenied': 'You have rejected access to your location', | |
| 'errors.location.positionUnavailable': 'Unable to determine your location', | |
| 'errors.location.timeout': 'Service timeout has been reached' | |
| }; |
| // app/controllers/sign-in.js | |
| import Ember from 'ember'; | |
| export default Ember.Controller.extend({ | |
| actions: { | |
| signIn(){ | |
| this.set('errors', null); | |
| var params = { identification: this.get('email'), password: this.get('password') }; | |
| // Redirects to index route on success (configurable in config/environment.js) | |
| this.get('session').authenticate('simple-auth-authenticator:oauth2-password-grant', params); |
| describe('Directive tests: geolocation ', function() { | |
| var $window, navigator; | |
| describe('when called on a browser that does not have geolocation available ', function() { | |
| beforeEach(module('geolocationApp')); | |
| beforeEach(inject(function($rootScope, $compile, _$window_) { | |
| element = angular.element('<geolocation class="geolocation"><p>This is a geolocation app</p></geolocation>'); |
| /** | |
| * Fancy ID generator that creates 20-character string identifiers with the following properties: | |
| * | |
| * 1. They're based on timestamp so that they sort *after* any existing ids. | |
| * 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
| * 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
| * 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
| * latter ones will sort after the former ones. We do this by using the previous random bits | |
| * but "incrementing" them by 1 (only in the case of a timestamp collision). | |
| */ |
| <div class="row"> | |
| <div class="col-md-2 col-sm-2 col-xs-2"> | |
| <p><button class="btn btn-primary btn-sm" id="speak-btn"><span>Listen</span></button></p> | |
| </div><!-- .col --> | |
| <div class="col-md-10 col-sm-10 col-xs-10"> | |
| <div class="panel panel-default"> | |
| <div class="panel-heading">Response Status</div> | |
| <div class="panel-body"> | |
| <textarea id="status" class="form-control" placeholder="Spoken text will appear here"></textarea> | |
| </div> |
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Press minus + shift + s and return to chop/fold long lines!
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |