rails s (start server)
rails console
rake about (app desc)
rake db:schema:dump (connecto db & export schema)
rake db:migrate:status
rake db:migrate (apply migrations to db)
rake db:migrate VERSION=0 (rollback)
rake db:migrate:(up/down/redo) VERSION=
rake db:seed (populate db with test data from seeds.rb)
rake db:rollback (rollback the migration)
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
# -*- encoding: utf-8 -*- | |
Gem::Specification.new do |s| | |
s.name = 'parallel_assets_compiler' | |
s.version = '0.3' | |
s.platform = Gem::Platform::RUBY | |
s.author = 'Jørgen Orehøj Erichsen, Alexander Maslov' | |
s.email = '[email protected], [email protected]' | |
s.summary = 'Compile assets in parallel' | |
s.description = 'Compile assets in parallel to speed up deployment' |
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
{ | |
'packages': { | |
'groups': ['KDE', 'Gnome', 'minimal'], | |
'else': ['inkscape', 'gimp', 'firefox'] | |
}, | |
'timezone': 'Europe/Moscow', | |
'users': { | |
'root': {'password': 'asdf'}, | |
'rogvold': {'password': 'qwerty', | |
'full_name': 'Rogaboru Kujimoshi', |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>The Holy Grail - 3 Column CSS layout</title> | |
<style type="text/css" media="screen"> | |
/* #content is the bounding box. It must have position: relative to anchor it for the background | |
* columns, and it must have overflow: hidden so it expands to contain floated content within it | |
* (you could also use a clear div below the columns, if you want to avoid hiding the overflow) */ | |
#content { width:960px; overflow: hidden; position: relative; zoom: 1;} | |