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:
Changes:
this version includes backport of Greg Price's patch for speedup startup http://bugs.ruby-lang.org/issues/7158 .
ruby-core prefers his way to do thing, so that I abandon cached-lp and sorted-lf patches of mine.
this version integrates 'array as queue' patch, which improves performance when push/shift pattern is heavily used on Array.
This patch is accepted into trunk for Ruby 2.0 and last possible bug is found by Yui Naruse. It is used in production* for a couple of months without issues even with this bug.
require "timeout" | |
module WaitSteps | |
extend RSpec::Matchers::DSL | |
matcher :become_true do | |
match do |block| | |
begin | |
Timeout.timeout(Capybara.default_wait_time) do | |
sleep(0.1) until value = block.call |
#!/bin/bash | |
# args | |
MSG=${1-'deploy from git'} | |
BRANCH=${2-'trunk'} | |
# paths | |
SRC_DIR=$(git rev-parse --show-toplevel) | |
DIR_NAME=$(basename $SRC_DIR) | |
DEST_DIR=~/svn/wp-plugins/$DIR_NAME/$BRANCH |
namespace :db do | |
task :create_indexes => :environment do | |
# | |
begin | |
Rails.application.eager_load! | |
rescue Object => e | |
end | |
# | |
begin |
# See http://stackoverflow.com/questions/4214731/coffeescript-global-variables | |
root = exports ? this | |
root._gaq = [['_setAccount', 'UA-xxxxxxxx-y'], ['_trackPageview']] | |
insertGAScript = -> | |
ga = document.createElement 'script' | |
ga.type = 'text/javascript' | |
ga.async = true | |
proto = document.location.protocol |
--- src/http/ngx_http_variables.c.orig 2012-06-07 12:47:34.000000000 -0400 | |
+++ src/http/ngx_http_variables.c 2012-06-07 12:55:51.000000000 -0400 | |
@@ -99,6 +99,8 @@ | |
ngx_http_variable_value_t *v, uintptr_t data); | |
static ngx_int_t ngx_http_variable_pid(ngx_http_request_t *r, | |
ngx_http_variable_value_t *v, uintptr_t data); | |
+static ngx_int_t ngx_http_variable_start_time(ngx_http_request_t *r, | |
+ ngx_http_variable_value_t *v, uintptr_t data); | |
/* |
development: &defaults | |
# Configure available database sessions. (required) | |
sessions: | |
# Defines the default session. (required) | |
default: &default_session | |
# Defines the name of the default database that Mongoid can connect to. | |
# (required). | |
database: delight_development | |
# Provides the hosts the default session can connect to. Must be an array | |
# of host:port pairs. (required) |
An introduction to curl
using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin