Public Gists by greatseth

Gravatar
Tue Nov 24 12:08:52 -0800 2009
1
2
3
_\m/ mediainfo (xml-only-with-parser-choices) | rake nokogiri
(in /Users/seth/p/mediainfo)
/usr/local/bin/ruby -I"lib:ext:bin:test" "/usr/local/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader.rb" "test/mediainfo_awaywego_test.rb" "test/mediainfo_broken_embraces_test.rb" "test/mediainfo_d
Gravatar
Thu Oct 29 09:21:03 -0700 2009
1
2
3
# This never seems to be hit..
module HTTParty
  def self.perform_request(*args)
Gravatar
Wed Oct 21 13:33:03 -0700 2009
1
2
3
Factory.define :division do |d|
  d.name { Factory.next(:word) }
  d.association :office
Gravatar
Tue Oct 20 07:50:30 -0700 2009
1
2
3
# If we have 10.0, we just want 10,
  # but let's keep 10.5 and such.
  def simple_value(v)
gist: 200836 Strange HTTP requests from ...
Gravatar
Sat Oct 03 13:04:12 -0700 2009
1
2
3
Strange Mongrel output caused by requests from Freenode to port 2000:
 
Sat Oct 03 01:21:16 -0400 2009: HTTP parse error, malformed request (85.190.0.3): #<Mongrel::HttpParserError: Invalid HTTP format, parsing fails.>
Gravatar
Fri Sep 25 12:55:33 -0700 2009
1
2
3
/mnt/src/ffmpeg/trunk# ./configure --enable-gpl --enable-postproc --enable-libvorbis --enable-libtheora --disable-debug --enable-libmp3lame --enable-libfaad --enable-libfaac --enable-pthreads --enable-libx264 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-nonfree --prefix=/mnt/bundle/ffmpeg --extra-ldflags="-L/mnt/bundle/lib -static" --extra-cflags="-I/mnt/bundle/include" --disable-ffserver
ERROR: libfaac not found
 
Gravatar
Fri Sep 25 11:13:27 -0700 2009
1
2
3
/mnt/src/ffmpeg/trunk# ls /mnt/bundle/lib/
gpac libFLAC.la libopencore-amrwb.a libtheora.la
liba52.a libFLAC++.la libopencore-amrwb.la libtheora.so
Gravatar
Fri Sep 25 11:07:04 -0700 2009
1
2
3
ldd /mnt/bundle/ffmpeg/bin/ffmpeg
  linux-gate.so.1 => (0x007f3000)
   libz.so.1 => /usr/lib/libz.so.1 (0x007dc000)
Gravatar
Tue Sep 01 18:55:17 -0700 2009
1
2
3
#!/usr/local/bin/ruby
 
a = "hello"
Gravatar
Fri Aug 28 08:42:23 -0700 2009
1
2
3
#!/usr/bin/env shoes
 
Shoes.setup do
Gravatar
Thu Aug 20 12:00:27 -0700 2009
1
2
3
class ChangeUseFileCacheDefaults < ActiveRecord::Migration
  def self.up
    change_column_default :jobs, :use_file_cache, :null => false, :default => false
Gravatar
Thu Aug 13 10:41:26 -0700 2009
1
2
3
Loading development environment (Rails 2.3.2)
>> root = Rails.root
=> #<Pathname:/Users/seth/diversion/hdcloud>
Gravatar
Wed Aug 12 12:04:43 -0700 2009
1
2
3
Shoes.app do
  slot_to_update = stack do
    para "hi!"
Gravatar
Thu Aug 06 14:00:32 -0700 2009
1
2
3
#!/usr/local/bin/ruby
 
require 'rubygems'
gist: 158968 Shortcut to setup new Git p...
Gravatar
Thu Jul 30 15:24:08 -0700 2009
1
2
3
function ginit {
  mkdir $1
  cd $1
Gravatar
Wed Jul 29 10:28:40 -0700 2009
1
2
3
mysql> explain SELECT * FROM `jobs` WHERE (`jobs`.`user_id` = 5) AND ((`jobs`.`published` = 0) AND (`jobs`.`job_type` = 'encode')) ORDER BY priority desc, created_at asc LIMIT 1;
+----+-------------+-------+------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+---------+-------------------+------+-----------------------------+
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra |
Gravatar
Wed Jul 15 12:11:50 -0700 2009
1
2
3
named_scope :created_within_range, proc { |range|
    if range and [:min, :max].all? { |a| range.respond_to? a }
      { :conditions => ["created_at > ? and created_at < ?", range.min, range.max] }
gist: 122690 some Ruby code illustrating...
Gravatar
Tue Jun 02 16:51:41 -0700 2009
1
2
3
# I've been reading a book on symmetry lately(http://is.gd/MGST),
# and the other day it touched on something interesting that it
# turns out my code could have benefited from very recently:
gist: 89791 I made this to help test a ...
Gravatar
Fri Apr 03 08:26:08 -0700 2009
1
2
3
#!/usr/local/bin/ruby
 
file = ARGV[0]
Gravatar
Tue Mar 24 09:53:44 -0700 2009
1
2
3
$ mediainfo test/videos/magnify-3_5_TOMD_-_Dave_L.mp4
General
Complete name : test/videos/magnify-3_5_TOMD_-_Dave_L.mp4