This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
| # Allows filtering out attributes that increment the ActiveRecord optimistic lock version, e.g. updated_at, or | |
| # other attributes that will not cause a conflict issue. | |
| module SelectivelyOptimisticallyLockable | |
| extend ActiveSupport::Concern | |
| private | |
| def locking_enabled? | |
| self.changed.any? {|att| !self.class.skips_optimistic_locking?(att) } |
| set :application, '' | |
| set :repo_url, 'git@yoursite.git' | |
| set :deploy_to, '/var/www/sitename' | |
| set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} | |
| set :keep_releases, 5 | |
| set :sudo, true | |
| set :rbenv_type, :user | |
| set :rbenv_ruby, '2.0.0-p353' |
| t = 236 # seconds | |
| Time.at(t).utc.strftime("%H:%M:%S") | |
| => "00:03:56" | |
| # Reference | |
| # http://stackoverflow.com/questions/3963930/ruby-rails-how-to-convert-seconds-to-time |
| #################################### | |
| # BASIC REQUIREMENTS | |
| # http://graphite.wikidot.com/installation | |
| # http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/ | |
| # Last tested & updated 10/13/2011 | |
| #################################### | |
| cd | |
| sudo apt-get update | |
| sudo apt-get upgrade |
| #! /bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: carbon-cache | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: carbon-cache init script | |
| # Description: An init script for Graphite's carbon-cache daemon. | |
| ### END INIT INFO |