Skip to content

Instantly share code, notes, and snippets.

@jablair
jablair / 0_reuse_code.js
Created January 29, 2014 19:32
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jablair
jablair / transcode-video.sh
Last active July 17, 2022 11:39 — forked from lisamelton/transcode-video.sh
From source: Transcode video file (works best with Blu-ray or DVD rip) into MP4 (or optionally Matroska) format, with configuration and at bitrate similar to popluar online downloads. Adds a dry-run option to print out the HandbrakeCLI command so it can be customized - for instance, including additional audio tracks. A stop-gap to adding better …
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013 Don Melton
#
# This script is a wrapper for `HandBrakeCLI` (see: <http://handbrake.fr/>).
# The purpose of this script is to transcode a video file into a format and
# size similar to a video available for download from the iTunes Store.
#