Skip to content

Instantly share code, notes, and snippets.

@alex-kononovich
alex-kononovich / .irbrc
Created January 18, 2013 10:29
irbrc file with colorized output, hirb, awesome_print and such cool things
# load libraries
require 'rubygems' rescue nil
alias q exit
class Object
def local_methods
(methods - Object.instance_methods).sort
end
end
@alex-kononovich
alex-kononovich / rails3_template.rb
Created November 24, 2010 19:30
an template for rails 3 application which uses jquery, haml, compass
# remove unused files
remove_file "README"
remove_file "public/index.html"
remove_file "public/images/rails.png"
remove_file "app/views/layouts/application.html.erb"
remove_file "public/javascripts/controls.js"
remove_file "public/javascripts/dragdrop.js"
remove_file "public/javascripts/effects.js"
remove_file "public/javascripts/prototype.js"
remove_file "public/javascripts/rails.js"
@alex-kononovich
alex-kononovich / gist:509665
Created August 5, 2010 12:39
Script for create RadiantCMS application
#!/bin/sh
NAME=$1
radiant -d sqlite3 $NAME
cd $NAME
rake db:bootstrap ADMIN_NAME=Administrator ADMIN_USERNAME=admin ADMIN_PASSWORD=radiant DATABASE_TEMPLATE=empty.yml OVERWRITE=true
echo "---
- name: copy-move