Skip to content

Instantly share code, notes, and snippets.

View mrcasals's full-sized avatar
👨‍🚀
🚀

Marc Riera mrcasals

👨‍🚀
🚀
View GitHub Profile
@mrcasals
mrcasals / builderror.log
Created October 23, 2014 12:34
npm install couchbase
In file included from ../src/couchbase_impl.cc:21:
In file included from ../src/couchbase_impl.h:70:
../src/namemap.h:87:20: error: use of undeclared identifier 'NanPersistentToLocal'
return NanPersistentToLocal(names[ix]);
^
In file included from ../src/couchbase_impl.cc:21:
In file included from ../src/couchbase_impl.h:72:
../src/cookie.h:109:38: error: expected '(' for function-style cast or type construction
NanAssignPersistent(v8::Value, parent, cbo);
~~~~~~~~~^
@mrcasals
mrcasals / rss_parser.rb
Created February 15, 2014 19:21
Parse GitHub RSS feed and show only latest starred projects
require 'rss'
rss_url = 'https://github.com/mrcasals.atom'
response = RSS::Parser.parse(open(rss_url).read)
response.entries.each do |entry|
p entry.link.href if entry.title.content =~ /starred/
end
@mrcasals
mrcasals / explanation.md
Last active August 29, 2015 13:56
rbenv: remove RUBY_FREE_MIN and RUBY_HEAP_MIN_SLOTS warnings on Ruby 2.1.0

rbenv: remove RUBY_FREE_MIN and RUBY_HEAP_MIN_SLOTS warnings on Ruby 2.1.0

If you are like me, then you might have some Ruby projects running on different Ruby versions, so you'll need to either upgrade those old projects to Ruby 2.1.10 or deal with these warnings:

/Users/marc/.rbenv/versions/2.1.0/bin/ruby: warning: RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead.
/Users/marc/.rbenv/versions/2.1.0/bin/ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead.
ruby: warning: RUBY_FREE_MIN is obsolete. Use RUBY_GC_HEAP_FREE_SLOTS instead.
ruby: warning: RUBY_HEAP_MIN_SLOTS is obsolete. Use RUBY_GC_HEAP_INIT_SLOTS instead.