This file contains 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
# blog post: http://blog.slashpoundbang.com/post/1455548868/memcachemodel-make-any-ruby-object-that-persists-in | |
# No transactions or exceptions (yet). | |
module MemcacheModel | |
def self.included(base) | |
base.class_eval do | |
extend ActiveModel::Naming | |
extend ActiveModel::Translation | |
extend ActiveModel::Callbacks | |
extend MemcacheModel::ClassMethods |
This file contains 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
[2010-07-07 07:30:41] tar zxf /home/vadmin/.rvm/archives/zlib-1.2.5.tar.gz -C /home/vadmin/.rvm/src | |
gzip: stdin: invalid compressed data--crc error | |
tar: Child returned status 1 | |
tar: Exiting with failure status due to previous errors | |
[2010-07-07 07:31:09] tar zxf /home/vadmin/.rvm/archives/zlib-1.2.5.tar.gz -C /home/vadmin/.rvm/src | |
gzip: stdin: invalid compressed data--crc error | |
tar: Child returned status 1 | |
tar: Exiting with failure status due to previous errors |
This file contains 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
[2010-07-07 07:30:41] tar zxf /home/vadmin/.rvm/archives/zlib-1.2.5.tar.gz -C /home/vadmin/.rvm/src | |
gzip: stdin: invalid compressed data--crc error | |
tar: Child returned status 1 | |
tar: Exiting with failure status due to previous errors | |
[2010-07-07 07:31:09] tar zxf /home/vadmin/.rvm/archives/zlib-1.2.5.tar.gz -C /home/vadmin/.rvm/src | |
gzip: stdin: invalid compressed data--crc error | |
tar: Child returned status 1 | |
tar: Exiting with failure status due to previous errors |
This file contains 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 'digest/md5' | |
# usage: run this in the root directory of your iTunes Music folder, or wherever, and pipe the output to a file | |
# next, pipe the output of that file through `sort` to a new file | |
# now, use the next script on that file | |
ls = Dir['**/*'] | |
ls.each_with_index do |f, i| | |
STDERR.puts ls.length - i if (i % 100 == 0) |