Skip to content

Instantly share code, notes, and snippets.

🤠
fixin' bugs and givin' hugs

Tom Scott tubbo

🤠
fixin' bugs and givin' hugs
Block or report user

Report or block tubbo

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View psyber production.log
# Logfile created on Tue Nov 10 06:38:31 +0000 2009Starting the New Relic Agent
Processing Blog::PostsController#index (for 69.142.78.178 at 2009-11-10 06:38:32) [GET]
Parameters: {"action"=>"index", "controller"=>"blog/posts"}
NameError (uninitialized constant Blog::Post):
app/controllers/blog/posts_controller.rb:7:in `index'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:138:in `perform_action'
/usr/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
@tubbo
tubbo / posts_controller.rb
Created Nov 10, 2009
blog/posts_controller
View posts_controller.rb
class Blog::PostsController < ApplicationController
before_filter :authorization_required, :except => [:index, :show]
layout 'application', :except => :feed
# GET /blog/posts
def index
@posts = Post.all
respond_to do |format|
format.html # index.html.erb
View new.html.erb
<h2>post a new message</h2>
<% form_for [:blog, @post], :html=>{:method=>:post} do |f| %>
<%= f.error_messages %>
<fieldset>
<legend>content</legend>
<%= f.text_field :title %><br /><br />
<%= f.text_area :body %><br />
<div style="width: 100%; text-align: center">
in... <%= collection_select :post, :category, Category.all, :id, :name, {:prompt => true} %>
</div>
View index.html.erb
<h2 style="margin-left: 15px">welcome to psychedelica berserk</h2>
<div class="blog">
<%
@posts.each do |post|
render :partial => 'blog/post', :object => post
end
%>
</div>
View show.html.erb
<h2>~/blog</h2>
<%= render :partial => 'blog/post', :object => @post %>
<hr align="center" />
<!-- comments here -->
<div style="width: 100%; text-align: center"><%= link_to 'Back', blog_posts_path %></div>
View _post.html.erb
<div id="<%= post.id %>" class="blog_post">
<div id="header">
<h3><%= link_to post.title, blog_post_path(post), :class => 'title' %></h3>
<div id="meta">
posted in
<%= link_to post.category.name, blog_category_path(post.category), :class => 'nobold' %>
<%= format_post_date post.created_at %>.
</div>
</div>
<div id="body">
View application.html
<script type="text/javascript">
$(function() {
$("#tabs").tabs();
});
</script>
<div id="tabs">
<h1>psychedeli.ca</h1>
<ul>
<li><a href="#tabs-1">prose</a></li>
<li><a href="/music">music</a></li>
View index.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<!-- metadata -->
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
<meta name="description" content="tubbo's very own personal site." />
<meta name="keywords" content="tom scott, tubbo, necromancer, music, wonder bars, house, electronic, jazz, funk, soul, composition, production, blog" />
<title>psychedelica berserk</title>
View error.log
[Sun Mar 14 21:43:56 2010] [warn] RSA server certificate CommonName (CN) `psychedelica' does NOT match server name!?
[Sun Mar 14 21:43:57 2010] [notice] Apache/2.2.9 (Ubuntu) mod_ssl/2.2.9 OpenSSL/0.9.8g Phusion_Passenger/2.2.5 configured -- resuming normal operations
** [NewRelic] New Relic RPM Agent 2.9.5 Initialized: pid = 7341
** [NewRelic] Agent Log found in /home/necromancer/src/psychedelica/log/newrelic_agent.log
** [NewRelic] Connected to NewRelic Service at collector0.newrelic.com:80
** [NewRelic] Reporting performance data every 60 seconds.
** [NewRelic] Connected to NewRelic Service at collector0.newrelic.com:80
** [NewRelic] Reporting performance data every 60 seconds.
[Sun Mar 14 21:53:42 2010] [notice] SIGHUP received. Attempting to restart
[Sun Mar 14 21:53:44 2010] [notice] Apache/2.2.9 (Ubuntu) mod_ssl/2.2.9 OpenSSL/0.9.8g Phusion_Passenger/2.2.5 configured -- resuming normal operations
View git branch error
error: unable to push to unqualified destination: origin
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'git@github.com:tubbo/psycho.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the 'non-fast forward'
section of 'git push --help' for details.
You can’t perform that action at this time.