This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SUPER DARING APP TEMPLATE 1.0 | |
# By Peter Cooper | |
# Link to local copy of edge rails | |
inside('vendor') { run 'ln -s ~/dev/rails/rails rails' } | |
# Delete unnecessary files | |
run "rm README" | |
run "rm public/index.html" | |
run "rm public/favicon.ico" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'knock_knock' | |
require 'hpricot' | |
Bubble::KnockKnock::Connection.instance.connect('email','password', 'cp') | |
xml = Bubble::KnockKnock::Request.get('http://www.google.com/m8/feeds/contacts/username%40gmail.com/full', 'alt' => 'json') | |
doc = Hpricot::XML(xml) | |
(doc/:entry).each do |raw_item| | |
name = raw_item.at('title').inner_text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function authme { | |
ssh $1 'cat >>.ssh/authorized_keys' <~/.ssh/id_dsa.pub | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Penalty < ActiveRecord::Base | |
end | |
class PenaltiesController < Application | |
def index | |
end | |
def create | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Signal.trap("CHLD") do | |
puts "Child proccses terminated" | |
end | |
filename, size, frames, timecode, = "", 0, 0, "" | |
run_command = "dvgrab -noavc -showstatus testfilm 2>&1" | |
pipe = nil | |
threads = [] | |
threads << Thread.new do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Found AV/C device with GUID 0x006037004e545301 | |
Capture Started | |
"dvgrab-002.dv": 61.80 MiB 450 frames timecode 02:19:44.06 date 2067.02.15 22:26:2525 | |
"dvgrab-002.dv": 89.40 MiB 651 frames timecode 02:19:52.07 date 2067.02.15 22:26:2525 | |
Capture Stopped |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'activesupport' | |
require 'ostruct' | |
module FireGrabber | |
class Recorder | |
class_inheritable_hash :configuration | |
self.configuration = {} | |
def self.configure |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse(dvgrab_output) | |
if dvgrab_output =~ /"([.\w\/]*)":\s+(.*)\s+MiB\s+(\d+)\s+frames\s+timecode\s+(.*)\s+date/ | |
@filename, @size, @frames, @timecode = $1, $2, $3, $4 | |
end | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Capture Stopped | |
Error: no DV |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'benchmark' | |
gem = ARGV.shift.strip rescue '' | |
if gem == '' | |
STDERR.puts "usage: #{$0} [gem]" | |
exit 1 | |
end | |
`free` |
OlderNewer