Skip to content

Instantly share code, notes, and snippets.

View botsmack's full-sized avatar

Richard Watt botsmack

View GitHub Profile
@botsmack
botsmack / gist:1d3d06fe937257b394a5
Created November 20, 2015 23:41 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
#!/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.
#
@botsmack
botsmack / encode.ps1
Last active December 19, 2015 01:49
PowerShell port of Don Melton's encode.sh script (https://gist.github.com/donmelton/5734177) to encode video files with HandbrakeCLI. Some things like subtitle support weren't migrated as I don't care for them to be burned in and the Apple TV doesn't support them otherwise. Don's settings are kept intact, with the exception of upping the bitrate…
<#
I added the optional decomb PowerShell parameter than activates "--decomb" in Handbrake.
I was running into interlace issues encoding an animated TV show - Sealab 2021. I don't
think you will need it unless you're enoding similar content. For everything else I
leave it off ($false) by default.
Improved the funcationality of the script to take either a single MKV file or a folder
of MKV files.
Usage:
@botsmack
botsmack / encode.sh
Last active December 18, 2015 22:19 — forked from lisamelton/encode.sh
#!/bin/bash
# encode.sh
#
# Copyright (c) 2013 Don Melton
#
# This version published on June 7, 2013.
#
# Re-encode video files in a format suitable for playback on Apple TV, Roku 3,
# iOS, OS X, etc.
@botsmack
botsmack / stopitunes.user.js
Last active December 15, 2015 19:29
Stop iTunes and Mac App Store from launching in Google Chrome while still maintaining the ability to manually launch with the button click. Modified the user script at http://userscripts.org/scripts/show/71794.
// ==UserScript==
// @name Stop iTunes and Mac App Store Auto-Launch
// @version 0.1.1
// @description Stop iTunes and the Mac App Store from automatically launching.
// @match *://itunes.apple.com/*
// @match *://phobos.apple.com/*
// @run-at document-end
// @grant none
// ==/UserScript==