Skip to content

Instantly share code, notes, and snippets.

View drakmail's full-sized avatar
🇦🇷
Working

Alex Maslov drakmail

🇦🇷
Working
View GitHub Profile
@drakmail
drakmail / Rails cheatsheet.textile
Created March 29, 2018 14:09 — forked from ingmarsk/Rails cheatsheet
Rails cheatsheet

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)

# -*- 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 = 'joe@erichsen.net, drakmail@gmail.com'
s.summary = 'Compile assets in parallel'
s.description = 'Compile assets in parallel to speed up deployment'
{
'packages': {
'groups': ['KDE', 'Gnome', 'minimal'],
'else': ['inkscape', 'gimp', 'firefox']
},
'timezone': 'Europe/Moscow',
'users': {
'root': {'password': 'asdf'},
'rogvold': {'password': 'qwerty',
'full_name': 'Rogaboru Kujimoshi',
@drakmail
drakmail / Holy Grail Layout solved.html
Created April 26, 2012 18:48 — forked from futuraprime/Holy Grail Layout: solved
A minimal solution to the "Holy Grail" CSS layout
<!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;}