I hereby claim:
- I am fidel on github.
- I am szymonfiedler (https://keybase.io/szymonfiedler) on keybase.
- I have a public key ASCHJIGtvoWGfCEPyiPKkKeyKGujJfYS-UJAovwpov5Gygo
To claim this, I am signing this object:
| require 'bundler/inline' | |
| gemfile do | |
| source 'https://rubygems.org' | |
| gem 'nokogiri' | |
| gem 'playlist' | |
| end | |
| require 'open-uri' | |
| require 'uri' |
I hereby claim:
To claim this, I am signing this object:
| [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
| class ToHaml | |
| def initialize(path) | |
| @path = path | |
| end | |
| def convert! | |
| Dir["#{@path}/**/*.erb"].each do |file| | |
| `html2haml -rx #{file} #{file.gsub(/\.erb$/, '.haml')}` | |
| puts "#{file}" | |
| File.delete(file) |
| https://github.com/sorin-ionescu/prezto |
| <% if notice %> | |
| <p id="notice"><%= notice %></p> | |
| <% end %> | |
| <h1><%= t('.title_html') %></h1> | |
| <%= form_tag search_path, method: :get do %> | |
| <p> | |
| <%= text_field_tag :search, params[:search] %> | |
| <%= submit_tag "Search", :name => nil %> | |
| </p> |
| http://cl.ly/image/1I2c020F1C3q |
| # .ssh/config | |
| # ... other stuff | |
| Host * | |
| Compression yes | |
| ForwardAgent yes | |
| TCPKeepAlive yes | |
| Protocol 2 |
| CREATE DATABASE depot_production DEFAULT CHARACTER SET utf8; | |
| GRANT ALL PRIVILEGES ON depot_production.* TO 'yoursqluser'@'localhost' IDENTIFIED BY 'password'; | |
| EXIT; |
| # config/deploy.rb | |
| require 'bundler/capistrano' | |
| # be sure to change these | |
| set :user, 'rubys' | |
| set :domain, 'depot.pragprog.com' | |
| set :application, 'depot' | |
| # adjust if you are using RVM, remove if you are not | |
| require "rvm/capistrano" | |
| set :rvm_ruby_string, '1.9.3' |