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
#/usr/bin/env ruby | |
#=========================== | |
# Finito | |
# A Sinatra-powered lifestream. | |
# Revision 0.1 | |
# | |
# finito.rb | |
#=========================== |
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
/usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:146:in `execute_non_query': table "updateses" has more than one primary key (DataObjects::SyntaxError) | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:146:in `create_model_storage' | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:144:in `each' | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:144:in `create_model_storage' | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/adapters/data_objects_adapter.rb:269:in `with_connection' | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:139:in `create_model_storage' | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:111:in `upgrade_model_storage' | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:1302:in `upgrade_model_storage' | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/migrations.rb:1373:in `auto_upgrade!' | |
from ./models/mo |
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
#!/usr/bin/env ruby | |
# Marvin | |
# A maniacally depressed lifestreaming application. | |
# Revision 0.1 | |
# | |
# marvin.rb | |
# Dependencies | |
require 'rubygems' |
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
/usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/model/relationship.rb:381:in `method_missing': undefined local variable or method `default' for Configuration:Class (NameError) | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/model/property.rb:239:in `method_missing' | |
from marvin.rb:47 | |
/usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/model/relationship.rb:381:in `method_missing': undefined local variable or method `default' for Configuration:Class (NameError) | |
from /usr/lib/ruby/gems/1.8/gems/dm-core-0.10.2/lib/dm-core/model/property.rb:239:in `method_missing' | |
from marvin.rb:47 |
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
sudo wget http://www.medibuntu.org/sources.list.d/`lsb_release -cs`.list --output-document=/etc/apt/sources.list.d/medibuntu.list; sudo apt-get -q update; sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring; sudo apt-get -q update |
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
sudo apt-get install ubuntu-restricted extras ffmpeg libdvdcss2 libdvdread4; sudo /usr/share/doc/libdvdread4/install-css.sh |
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
#!/usr/bin/env ruby | |
### | |
# Marvin | |
# A ridiculously-simple blogging platform. | |
# by Ethan Turkeltaub [http://ethan.luffle.com] | |
# Revision 0.1 alpha beta | |
# | |
# marvin.rb | |
### |
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
sudo apt-get install bcmwl-kernel-source |
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
def hello(name) | |
puts "Hello there, #{name}!" | |
end | |
hello("Ethan") # => "Hello there, Ethan!" |
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 'rubygems' | |
require 'sinatra' | |
get '/' do | |
"Yeah, totally rad, right?" | |
end |