Skip to content

Instantly share code, notes, and snippets.

View hecbuma's full-sized avatar

Hector Bustillos hecbuma

View GitHub Profile
pc201166176113:fanvsfan user$ script/server
=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
** daemon_controller starting memcached...
Starting sphinx
/Users/user/projects/fanvsfan/vendor/gems/FooBarWidget-daemon_controller-0.2.1/lib/daemon_controller.rb:525:in `run_command': [Wed Jul 20 14:21:21.811 2011] [15141] using config file '/Users/user/projects/fanvsfan/config/development.sphinx.conf'... (DaemonController::StartError)
[Wed Jul 20 14:21:21.814 2011] [15141] listening on 127.0.0.1:9312
[Wed Jul 20 14:21:21.814 2011] [15141] WARNING: index 'claim_core': preload: failed to open /Users/user/projects/fanvsfan/db/sphinx/development/claim_core.sph: No such file or directory; NOT SERVING
[Wed Jul 20 14:21:21.814 2011] [15141] WARNING: index 'entry_core': preload: failed to open /Users/user/projects/fanvsfan/db/sphinx/development/entry_core.sph: No such file or directory; NOT SERVING
[Wed Jul 20 14:21:21.814 2011] [15141] WARNING: index 'fantasy_core': preload: failed to open /Us
Failing Scenarios:
cucumber features/Artist_group_creating.feature:7 # Scenario: creting a music group with correct data
cucumber features/Artist_group_creating.feature:57 # Scenario: creting a group with wrong data
cucumber features/Artist_group_creating.feature:73 # Scenario: creating a group with an already taken group id
cucumber features/Artist_group_creating.feature:85 # Scenario: Entering detailed data with no data
cucumber features/Artist_group_creating.feature:102 # Scenario: Entering bio and summay with no data
cucumber features/Artist_group_creating.feature:114 # Scenario: Entering Your sound info with no data
cucumber features/artist_roster.feature:7 # Scenario: Adding an empty group to a roster
cucumber features/artist_roster.feature:22 # Scenario: adding an artist to an managment roster
- if current_user.hosted_blog.categories
%h2.head <em>Step 6:</em> Select a category
%p
= form.label :category
%br/
Select a category
= form.select :category, current_user.hosted_blog.categories.collect{|c| [c.title, c.id]} + [["Fantasy/Other",""]], :include_blank => true
WARNING: Can't mass-assign these protected attributes: id
[paperclip] /usr/bin//identify -format %wx%h '/tmp/stream48356-0.jpg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>
[paperclip] /usr/bin//identify -format %wx%h '/tmp/stream48356-0.jpg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>
[paperclip] /usr/bin//identify -format %wx%h '/tmp/stream48356-0.jpg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>
[paperclip] /usr/bin//identify -format %wx%h '/tmp/stream48356-0.jpg[0]' 2>/dev/null
[paperclip] An error was received while processing: #<Paperclip::CommandNotFoundError: Paperclip::CommandNotFoundError>
[paperclip] /usr/bin//identify -format %wx%h '/tmp/stream48356-0.jpg[0]' 2>/dev/null
1.9.2@fvaults (fix-assets)$ git show e7783c0e182e622e739a76174ebfe5bb67741a42
commit e7783c0e182e622e739a76174ebfe5bb67741a42
Author: Hector Bustillos <[email protected]>
Date: Thu Oct 27 10:42:53 2011 -0500
fix assets to compile in heroku
diff --git a/config/application.rb b/config/application.rb
index 2041fb9..6069299 100644
--- a/config/application.rb
ul {
li + li:before{
content: " | ";
padding: 0 5px;
color: #666;
}
}
.super-link:checked {
& ~ #menu-mobile {
color: blue;
}
}
@hecbuma
hecbuma / unicorn.rb
Last active December 20, 2015 13:08
unicorn config for rails
# Sample verbose configuration file for Unicorn (not Rack)#
# This configuration file documents many features of Unicorn
# that may not be needed for some applications. See
# http://unicorn.bogomips.org/examples/unicorn.conf.minimal.rb
# for a much simpler configuration file.
#
# See http://unicorn.bogomips.org/Unicorn/Configurator.html for complete
# documentation.
# Use at least one worker per core if you're on a dedicated server,
@hecbuma
hecbuma / sites-available
Last active December 20, 2015 13:09
nginx virtual hosts for rails app
upstream rails-app {
server unix:/tmp/railsapp_app.sock fail_timeout=0;
}
server {
listen 80 default deferred;
# server_name example.com;
root /home/user/tuapp/public;
access_log /var/log/rails/tuapp-access.log;
error_log /var/log/rails/tuapp-error.log;
@hecbuma
hecbuma / gist:8837036
Created February 6, 2014 01:48
Quick books report
require 'csv'
module Spree
class SalesTotalQuickBooksCSV
def initialize
end
def to_csv
@processed_orders = []