This file contains hidden or 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
| { | |
| "resolver": { | |
| "nameservers": [ "10.0.0.1" ], | |
| "search":"int.example.com" | |
| }, | |
| "run_list": [ "recipe[resolver]" ] | |
| } |
This file contains hidden or 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
| 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' |
This file contains hidden or 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
| search_terms = params[:search] | |
| stripped_search_terms = search_terms.gsub(/:/, '\:').gsub(/\?/, '\?').gsub(/-/, '\-').gsub(/;/, '\;').gsub(/,/, '\,').gsub(/!/, '\!') |
This file contains hidden or 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
| <head> | |
| <title> | |
| VisitPA on Foursquare - Stats for 2010-08-05 | |
| </title> | |
| <link type="text/css" rel="stylesheet" href="style.css"> | |
| </head> |
This file contains hidden or 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
| # 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" |
This file contains hidden or 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
| case month | |
| when "Jan" | |
| month = 1 | |
| when "Feb" | |
| month = 2 | |
| when "Mar" | |
| month = 3 | |
| when "Apr" | |
| month = 4 | |
| when "May" |
This file contains hidden or 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
| # 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 |
This file contains hidden or 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
| 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> |
This file contains hidden or 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
| /******** | |
| Base Styles | |
| **********/ | |
| * { | |
| margin:0; | |
| padding:0; | |
| } | |
| img{border:none;} | |
| h1,h2,h3,h4,h5,p{ | |
| margin:0; |