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
# adapted from http://github.com/rspec/rspec-rails/blob/master/specs.watchr | |
# Run me with: | |
# | |
# $ watchr specs.watchr | |
# -------------------------------------------------- | |
# Convenience Methods | |
# -------------------------------------------------- | |
def growl(message) |
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
source 'http://rubygems.org' | |
gem 'rails', '~> 3.1.0' | |
gem 'rake', '0.8.7' | |
gem 'mongoid' | |
gem 'bson_ext' | |
gem 'devise' | |
gem 'omniauth' | |
gem 'haml-rails' | |
gem 'jquery-rails' |
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
set nocompatible | |
" Display | |
" -------------------- | |
set laststatus=2 | |
set number | |
set nowrap | |
set showcmd | |
set showmatch | |
syntax on |
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 'csv' | |
require 'mongo' | |
path = "#{Rails.root}/db/seeds/" | |
db = Mongo::Connection.new.db('database_name') | |
Dir.open(path).each do |f| | |
if f.match(/(.*)\.csv$/) | |
col = db.collection($1) | |
col.remove |
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
set nocompatible | |
" Display | |
" -------------------- | |
set laststatus=2 | |
set number | |
set nowrap | |
set ruler | |
set showcmd | |
set showmatch |
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
[mysqld] | |
max_connections = 300 # default | |
character_set_server = utf8 | |
query_cache_size = 64M | |
query_cache_type = 1 | |
table_open_cache = 600 # 300 connections * 2 tables | |
table_definition_cache = 200 | |
key_buffer_size = 500M | |
myisam_max_sort_file_size = 100G | |
myisam_recover = DEFAULT,BACKUP |
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
[client] | |
user = root | |
password | |
host = 127.0.0.1 | |
port = 3306 | |
[mysql] | |
prompt = '\\u@\\h\\_(\\R:\\m:\\s)\\_[\\d]>\\_' | |
default-character-set = utf8 | |
show-warnings |
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
source 'http://rubygems.org' | |
gem 'rails' | |
gem 'unicorn' | |
gem 'capistrano' | |
gem 'mysql2' | |
gem 'devise' | |
gem 'omniauth', '~> 0.3.2' | |
gem 'haml-rails' | |
gem 'jquery-rails' |
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
*.rbc | |
*.sassc | |
.sass-cache | |
capybara-*.html | |
.rspec | |
/.bundle | |
/vendor/bundle | |
/log/* | |
/tmp/* | |
/db/*.sqlite3 |
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
url = "http://ftp.vim.org/pub/vim/runtime/indent/" | |
html = `curl #{url}` | |
hrefs = html.scan(/href="(.*vim)"/).flatten | |
hrefs.each {|href| `wget #{url}#{href}` } |
OlderNewer