Skip to content
View git-latest
for ref in $(git for-each-ref --sort=-committerdate --format="%(refname)" refs/heads/ refs/remotes ); do git log -n1 $ref --pretty=format:"%Cgreen%cr%Creset %C(yellow)%d%Creset %C(bold blue)<%an>%Creset%n" | cat ; done | awk '! a[$0]++'
View converted mp4.txt
Complete name : /Volumes/optibay/Users/jamie/Downloads/CANABALT_1080p (Converted).mov
Format : MPEG-4
Format profile : QuickTime
Codec ID : qt
File size : 72.7 MiB
Duration : 3mn 55s
Overall bit rate mode : Variable
Overall bit rate : 2 587 Kbps
Encoded date : UTC 2013-11-25 22:11:46
View gist:6945483
View .bashrc
# 1. Edit ~/.bashrc and remove any rvm-loading code.
# 2. Then Add:
# Load rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
export RBENV_ROOT=~/.rbenv
# Then:
# 3. Uninstall rvm
# 4. Restart shell/terminal
# you'll need homebrew too
cd Sites
git clone git:// sickbeard
# Probably need this:
# sudo easy_install cheetah
# test:
# python sickbeard/
View deploy_site.php
$out = `cd /home/fffffat/ && git fetch origin && git reset --hard origin/master`;
print $out;
export EC2_PRIVATE_KEY="$(/bin/ls "$HOME"/.ec2/pk-*.pem | /usr/bin/head -1)"
export EC2_CERT="$(/bin/ls "$HOME"/.ec2/cert-*.pem | /usr/bin/head -1)"
export EC2_HOME="/usr/local/Library/LinkedKegs/ec2-api-tools/jars"
export EC2_REGION="us-east-1"
export EC2_URL="https://${EC2_REGION}"
alias instances="ec2-describe-instances | grep INSTANCE | awk '{ print \$2,\$4,\$6 }'"
alias launch_ubuntu_instance='ec2-run-instances ami-7c2da54c -t t1.micro' #
export VHX_EC2_AMI="ami-9ef96af7" # vhx transcoder2 us-east-1
# Add subtitle track
MP4Box -add"sbtl:tx3g" Minecraft2_mobile.mp4
# Add audio track
# 1. doesnt work in quicktime/itunes
MP4Box -add commentary_audio.aac Minecraft2_mobile.mp4
# 2. supposed to work in quicktime/itunes but doesn't seem to; :name at least is definitely not supported
MP4Box -add commentary_audio.aac:disable:group1:lang=en:name="Director's Commentary" Minecraft2_mobile.mp4
View netflix-ratings.rb
#!/usr/bin/env ruby
require 'iconv'
require 'nokogiri'
# This is a simple script to spider your Netflix paginated "What You've Rated" list.
# It requires an OS X based system with Ruby 1.9+, Safari, and AppleScript
# I could not find a way to back up my ratings (for all titles, not just my rental activity)
# without registering for a Netflix API key or handing my Netflix credentials over to someone
# who had an API key, so I decided to take a brute force approach and just parse the HTML for
View deploy.rake
require 'fileutils'
# Warning: The following deploy task will completely overwrite whatever is currently deployed to Heroku.
# The deploy branch is rebased onto master, so the push needs to be forced.
desc "Deploy app to Heroku after precompiling assets"
task :deploy do
deploy_branch = 'heroku'
remote = 'heroku'
deploy_repo_dir = "tmp/heroku_deploy"
Something went wrong with that request. Please try again.