Skip to content

Instantly share code, notes, and snippets.

@ottov1
ottov1 / install-vagrant
Created December 28, 2014 21:13
install vagrant on mac
brew tap caskroom/homebrew-cask
brew install brew-cask
brew cask install virtualbox
brew cask install vagrant
vagrant plugin install vagrant-vbguest
@ottov1
ottov1 / screen
Created November 28, 2011 10:06
.screenrc & .bashrc
defscrollback 1024
ignorecase on
shelltitle "# |bash"
hardstatus alwayslastline
hardstatus string '%{gk}[ %{G}%H %{g}][%= %{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{g}][%{Y}%l%{g}]%{=b C}[ %m/%d %c ]%{W}'
.bashrc
case $TERM in
screen )
PROMPT_COMMAND='echo -ne "\033k\033\134"' ;;
@ottov1
ottov1 / reenc
Created November 28, 2011 00:14
batch reencode movie files with ffmpeg
import os
import sys
import subprocess
def encode(f):
print "encoding", f
ext = os.path.splitext(f)[1].lower()
if ext == ".avi":
outf = os.path.splitext(f)[0] + ".mkv"
else: