Skip to content

Instantly share code, notes, and snippets.

View jipiboily's full-sized avatar

JP Boily jipiboily

  • Alma, Quebec, Canada
View GitHub Profile
@jipiboily
jipiboily / gist:1879132
Created February 21, 2012 21:37
Refinery and Spree: rails generate refinery:cms --fresh-installation # on a Spree project using master
/my/rvm/gemset/gems/activerecord-3.2.1/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `has_attached_file' for #<Class:0x007fb9743d8288> (NoMethodError)
from /my/rvm/gemset/bundler/gems/spree-f9370e2b745f/core/app/models/spree/image.rb:4:in `<class:Image>'
from /my/rvm/gemset/bundler/gems/spree-f9370e2b745f/core/app/models/spree/image.rb:2:in `<module:Spree>'
from /my/rvm/gemset/bundler/gems/spree-f9370e2b745f/core/app/models/spree/image.rb:1:in `<top (required)>'
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:469:in `load'
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:469:in `block in load_file'
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:639:in `new_constants_in'
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:468:in `load_file'
from /my/rvm/gemset/gems/activesupport-3.2.1/lib/active_support/dependencies.rb:353:in `require_or_load'
fro
@jipiboily
jipiboily / gist:1078638
Created July 12, 2011 18:37
Tableview.appendRow crashes with Titanium Mobile 1.7.X
[INFO] One moment, building ...
[DEBUG] Detecting modules in /Users/macbook_pro_jpb/ti_studio_workspace/1.7.1 tableview crashing test/modules
[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules
[INFO] Titanium SDK version: 1.7.1
[INFO] iPhone Device family: iphone
[INFO] iPhone SDK version: 4.3
[INFO] iPhone simulated device: iphone
[DEBUG] executing command: /usr/bin/killall iPhone Simulator
[DEBUG] No matching processes belonging to you were found
[DEBUG] finding old log files
@jipiboily
jipiboily / private.xml
Created March 19, 2015 00:19
Disable stupid buttons on Logitech R800 remote with Karabiner
<?xml version="1.0"?>
<root>
<item>
<name>Disable useless shit (for Logitech remote)</name>
<identifier>private.logitech_remote_disable_shit</identifier>
<autogen>__KeyToKey__ KeyCode::DOT</autogen>
<autogen>__KeyToKey__ KeyCode::ESCAPE</autogen>
<autogen>__KeyToKey__ KeyCode::F5</autogen>
</item>
</root>
class Fourchette::Heroku
def copy_pg from, to
end
end
@jipiboily
jipiboily / snippet.cson
Last active August 29, 2015 14:02
Playing with Atom snippets
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
@jipiboily
jipiboily / not_rescued.rb
Created April 4, 2014 14:58
Can we do this?
trace = TracePoint.new(:raise) do |trace|
puts trace.raised_exception if "IT WAS NOT RESCUED"
end
trace.enable