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:
| var winston = require('winston'); | |
| /* | |
| Sails.js Winston logger config | |
| I was having trouble getting the logfile output to be verbose, having copied several from the web I finally came | |
| up with this setup after reading the old Captian's Log configuration. Current problem is the doubling of verbose. | |
| ex: verbose: verbose: Grunt :: Running "sails-linker:devStyles" (sails-linker) task | |
| */ | |
| var logger = new (winston.Logger)({ | |
| transports: [ |
| /* | |
| ##Device = Desktops | |
| ##Screen = 1281px to higher resolution desktops | |
| */ | |
| @media (min-width: 1281px) { | |
| /* CSS */ | |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
This is how to connect to another host with your docker client, without modifying your local Docker installation or when you don't have a local Docker installation.
First be sure to enable the Docker Remote API on the remote host.
This can easily be done with a container.
For HTTP connection use jarkt/docker-remote-api.
(C) 2015 by Derek Hunziker, (C) 2017 by AppsOn
As of releasing MongoDB 3.4 and C# Driver v2.4, original cheatsheet by Derek is outdated. In addition, it has some deficiencies like connecting to MongoDB, creating indexes, etc. This updated version works fine with C# Driver v2.4.7 and MongoDB v3.4.
Note: Defined models and collections will be used in entire cheatsheet.
A Pen by Barrett Sonntag on CodePen.
| pwned-passwd () | |
| { | |
| history -d $((HISTCMD - 1)); | |
| sha=$(printf $1 | sha1sum | cut -d' ' -f1 | tr [:lower:] [:upper:]); | |
| prefix=${sha:0:5}; | |
| suffix=${sha:5}; | |
| count=$(curl -Ss https://api.pwnedpasswords.com/range/$prefix | grep $suffix | cut -d':' -f2); | |
| [ -n "$count" ] && echo $count >&2 && return 1; | |
| return 0; |
| using System; | |
| using System.Collections.Generic; | |
| using System.Text; | |
| namespace FFmpeg.AutoGen.Example | |
| { | |
| public sealed unsafe class Transcoding | |
| { | |
| unsafe struct FilteringContext | |
| { |
| using Microsoft.AspNetCore.Hosting; | |
| using Microsoft.AspNetCore.Builder; | |
| using Microsoft.AspNetCore.Http; | |
| using Microsoft.Extensions.Hosting; | |
| public class Program | |
| { | |
| public static void Main(string[] args) => | |
| Host.CreateDefaultBuilder(args) | |
| .ConfigureWebHostDefaults(webBuilder => |