Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"iotHubName": {
"type": "string",
"metadata": {
"description": "The name of the iotHub"
}
},
@vishwam
vishwam / docker-compose.yml
Last active June 22, 2016 23:31
docker-compose.yml
version: '2'
services:
mongo:
image: mongo
# ports:
# - "27017:27017"
config:
image: azureiot/config
# ports:
# - "3009:80"
{
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"iotHubName": {
"type": "string",
"metadata": {
"description": "The name of the iotHub"
}
},
@vishwam
vishwam / rip.bat
Last active December 29, 2019 19:59
Rip DVDs with VLC, preserving original audio/video streams
REM This script transcodes a track from the dvd to a .mp4 container file, preserving the original streams (audio/video/subtitles)
REM Parameters:
REM dst: the output file
REM --stop-time: stop at this position (in seconds). Required because some DVDs automatically loop to the next title and don't stop till the end.
REM "dvd:///E:/#4": the input to transcode. In this case, we're starting at title 4 of DVD in E:\.
REM You can choose a specific chapter with "#4:32", or specify end limits with "#4:32-4:37"
REM
REM You can get the track and time details from the Activity Log in HandBrake:
REM [10:54:51] scan: scanning title 13
REM [10:54:51] scan: duration is 00:25:34 (1534734 ms)