Skip to content

Instantly share code, notes, and snippets.

{
"resolver": {
"nameservers": [ "10.0.0.1" ],
"search":"int.example.com"
},
"run_list": [ "recipe[resolver]" ]
}
15:03 lgraybill@graybill-7: ~/code/chef-repo (master)
> spatula install mysql
/Library/Ruby/Gems/1.8/gems/spatula-0.0.8/lib/spatula.rb:27:in `install': uninitialized constant Spatula::Spatula::FileUtils (NameError)
from /Library/Ruby/Gems/1.8/gems/thor-0.13.7/lib/thor/task.rb:33:in `send'
from /Library/Ruby/Gems/1.8/gems/thor-0.13.7/lib/thor/task.rb:33:in `run'
from /Library/Ruby/Gems/1.8/gems/thor-0.13.7/lib/thor/invocation.rb:109:in `invoke'
from /Library/Ruby/Gems/1.8/gems/thor-0.13.7/lib/thor/invocation.rb:116:in `call'
from /Library/Ruby/Gems/1.8/gems/thor-0.13.7/lib/thor/invocation.rb:116:in `invoke'
from /Library/Ruby/Gems/1.8/gems/thor-0.13.7/lib/thor.rb:159:in `start'
from /Library/Ruby/Gems/1.8/gems/thor-0.13.7/lib/thor/base.rb:378:in `start'
search_terms = params[:search]
stripped_search_terms = search_terms.gsub(/:/, '\:').gsub(/\?/, '\?').gsub(/-/, '\-').gsub(/;/, '\;').gsub(/,/, '\,').gsub(/!/, '\!')
<head>
<title>
VisitPA on Foursquare - Stats for 2010-08-05
</title>
<link type="text/css" rel="stylesheet" href="style.css">
</head>
# Parse date scraped from HTML into a proper date object for the database
def parse_date(text)
text = text.text.to_s
text = text.gsub(/,/, ' ')
pieces = text.split(' ')
pieces_to_remove = ["on", "at", "@"]
pieces = pieces - pieces_to_remove
month = pieces[1]
case month
when "Jan"
case month
when "Jan"
month = 1
when "Feb"
month = 2
when "Mar"
month = 3
when "Apr"
month = 4
when "May"
# My user model
class User < ActiveRecord::Base
acts_as_authentic
ROLES = %w[admin editor author banned]
end
# My ability class, used by CanCan for defining permissions
class Ability
include CanCan::Ability
AWS::S3::MissingAccessKey in Cms#index
Showing app/views/cms/index.html.erb where line #18 raised:
You did not provide both required access keys. Please provide the access_key_id and the secret_access_key.
Extracted source (around line #18):
15: </tr>
16: <% @links.each do |link| %>
17: <tr>
/********
Base Styles
**********/
* {
margin:0;
padding:0;
}
img{border:none;}
h1,h2,h3,h4,h5,p{
margin:0;