Skip to content

Instantly share code, notes, and snippets.

(in head section)
<% if @page.title == "Blog" %>
<%= render '/facebook/fb_og_meta_tags' %>
<% else %>
<%= render '/facebook/initial_like' %>
<% end %>
(fb_og_meta_tags.html.erb)
@Soldo
Soldo / gist:3731569
Created September 16, 2012 08:27
internal server error
2012-09-16T08:21:53+00:00 app[web.1]: Started GET "/" for 178.190.196.120 at 2012-09-16 08:21:53 +0000
2012-09-16T08:21:54+00:00 app[web.1]:
2012-09-16T08:21:54+00:00 app[web.1]: ActionView::Template::Error (Invalid CSS after "...auto !important": expected ";", was "!; margin: 0 !i..."
2012-09-16T08:21:54+00:00 app[web.1]: (in /app/app/assets/stylesheets/application.css)):
2012-09-16T08:21:54+00:00 app[web.1]: 4: <title><%= browser_title(yield(:title)) %></title>
2012-09-16T08:21:54+00:00 app[web.1]: 5: <%= raw(%(<meta name="description" content="#{@meta.meta_description}" />)) if @meta.meta_description.present? -%>
2012-09-16T08:21:54+00:00 app[web.1]: 6: <%= raw(%(<meta name="keywords" content="#{@meta.meta_keywords}">)) if @meta.meta_keywords.present? -%>
2012-09-16T08:21:54+00:00 app[web.1]: 7: <%= raw(%(<link rel="canonical" content="#{@canonical}" />)) if @canonical.present? -%>
2012-09-16T08:21:54+00:00 app[web.1]: 8: <%= csrf_meta_tags if Refinery::Core.authenticity_to
/* ------------------------------------------------------------------------
Class: prettyPhoto
Use: Lightbox clone for jQuery
Author: Stephane Caron (http://www.no-margin-for-errors.com)
Version: 3.1.4
------------------------------------------------------------------------- */
(function($) {
$.prettyPhoto = {version: '3.1.4'};
$.fn.prettyPhoto = function(pp_settings) {
[slasticarnica (master)]$ git push heroku master
Everything up-to-date
[slasticarnica (master)]$ heroku run rake db:migrate db:seed --trace
Running rake db:migrate db:seed --trace attached to terminal... up, run.1
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called fr
[slasticarnica (master)]$ heroku run rake db:migrate db:seed
Running rake db:migrate db:seed attached to terminal... up, run.1
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/01/04/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style p
<% if (controller.controller_name == "posts" && controller.action_name == "show" ) %>
<meta property="og:title" content="<%= @post.title %>" />
<meta property="og:url" content="<%= refinery.blog_post_url %>" />
<% if @post.teaser_first_img %>
<meta property="og:image" content="http://.providenca.net<%= @post.teaser_first_img %>" />
<% else %>
<meta property="og:image" content="https://s3.amazonaws.com/slasticarnica_production/staticne-slike/logo-tekst.jpg" />
@Soldo
Soldo / gist:3587809
Created September 1, 2012 21:23
code
<% if @page.title == "O nama" %>
<%= render '/stranice/o-nama/o_nama' %>
<% end %>
@Soldo
Soldo / gist:3519187
Created August 29, 2012 21:26
usage report
<OperationUsage><ServiceName>AmazonS3</ServiceName><OperationName>ListAllMyBuckets</OperationName><UsageType>DataTransfer-Out-Bytes</UsageType><Resource/><StartTime>08/11/12 17:00:00</StartTime><EndTime>08/11/12 18:00:00</EndTime><UsageValue>662</UsageValue></OperationUsage>
@Soldo
Soldo / gist:3518911
Created August 29, 2012 21:01
error
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/callbacks.rb:81:in `run_callbacks'
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.2/lib/active_support/notifications.rb:123:in `instrument'
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal.rb:203:in `dispatch'
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.2/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/railties-3.2.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
2012-08-29T20:58:15+00:00 app[web.1]: vendor/bundle/ruby/1
@Soldo
Soldo / gist:3428607
Created August 22, 2012 19:33
amazon signed-up services
Services You're Signed Up For
Amazon CloudFormation Amazon Simple Queue Service (SQS)
Amazon CloudFront Amazon Simple Storage Service (S3)
Amazon CloudSearch Amazon Simple Workflow Service (SWF)
Amazon CloudWatch Amazon SimpleDB
Amazon DynamoDB Amazon Virtual Private Cloud (VPC)
Amazon Elastic Compute Cloud (EC2) Auto Scaling
Amazon Elastic MapReduce AWS Direct Connect
Amazon ElastiCache AWS Elastic Beanstalk
Amazon Glacier AWS Import/Export