Skip to content

Instantly share code, notes, and snippets.

View krutten's full-sized avatar

Kevin Rutten krutten

View GitHub Profile
# Store rake tasks specific to [company]
namespace :[company] do
# Migrate [Company]'s data into the new CRM
namespace :migrate do
require 'progressbar'
desc "Run all [company] migration tasks"
task :all => [:config, :users, :comments, :accounts]
@krutten
krutten / a.md
Created July 1, 2012 02:28 — forked from rkh/a.md

This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:

  • Netflix
  • Hulu / HuluPlus
  • CBS
  • ABC
  • MTV
  • theWB
  • CW TV
  • Crackle
@krutten
krutten / b.bash
Created January 23, 2012 22:12 — forked from jlindley/b.bash
Bundle check then bundle install if needed, then bundle exec.
#!/usr/bin/env bash
(bundle check || bundle --local) && bundle exec "$@"
@krutten
krutten / better_logger.rb
Created July 19, 2011 07:43 — forked from indirect/better_logger.rb
Rails 3 logs with timestamps and PIDs, sort of like syslog
# You must require this file in application.rb, above the Application
# definition, for this to work. For example:
#
# # Syslog-like Rails logs
# if Rails.env.production?
# require File.expand_path('../../lib/better_logger', __FILE__)
# end
#
# module MyApp
# class Application < Rails::Application
# Cleaning up and extending the Gemfile
remove_file 'Gemfile'
create_file 'Gemfile', <<-GEMFILE
source 'http://rubygems.org'
gem 'rails', '3.0.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3-ruby', :require => 'sqlite3'
gem "capybara", ">= 0.3.8", :group => [:test, :cucumber]
gem "cucumber-rails", ">= 0.3.2", :group => [:test, :cucumber]
gem "database_cleaner", ">= 0.5.2", :group => [:test, :cucumber]
gem "haml-rails", ">= 0.0.2"
gem "launchy", ">= 0.3.5", :group => [:test, :cucumber]
gem "rspec-rails", ">= 2.0.0.beta.20", :group => [:test, :cucumber]
gem "spork", ">= 0.8.4", :group => [:test, :cucumber]
gem "devise"
gem "hpricot"
gem "ruby_parser"
(master) % vmc apps
No applications available.
(master) % ls
foo.rb
(master) % cat foo.rb
require 'rubygems'
require 'sinatra'
get '/' do
host = ENV['VMC_APP_HOST']
Come see my teammate Derek Collison talk about the PaaS we've been building at VMware
http://www.rubyconf.org/presentations/8
⚡ $ vmc -h
version # version
help, -h # show usage
Add to ~/.gitconfig
[color]
branch = auto
diff = auto
status = auto
[color "branch"]
current = yellow reverse
local = yellow
remote = green