Skip to content

Instantly share code, notes, and snippets.

@bjreath
bjreath / output
Created August 23, 2011 16:10
Testing net-snmp gem in OS X Lion
/Users/bjreath/.rvm/gems/ruby-1.9.2-p290@issues/gems/ffi-1.0.9/lib/ffi/library.rb:147:in `attach_function': Function 'init_mib' not found in [libnetsnmp.dylib] (FFI::NotFoundError)
from /Users/bjreath/.rvm/gems/ruby-1.9.2-p290@issues/gems/nice-ffi-0.4/lib/nice-ffi/library.rb:122:in `attach_function'
from /Users/bjreath/.rvm/gems/ruby-1.9.2-p290@issues/gems/net-snmp-0.2.3/lib/net/snmp/wrapper.rb:349:in `<module:Wrapper>'
from /Users/bjreath/.rvm/gems/ruby-1.9.2-p290@issues/gems/net-snmp-0.2.3/lib/net/snmp/wrapper.rb:3:in `<module:SNMP>'
from /Users/bjreath/.rvm/gems/ruby-1.9.2-p290@issues/gems/net-snmp-0.2.3/lib/net/snmp/wrapper.rb:2:in `<module:Net>'
from /Users/bjreath/.rvm/gems/ruby-1.9.2-p290@issues/gems/net-snmp-0.2.3/lib/net/snmp/wrapper.rb:1:in `<top (required)>'
from /Users/bjreath/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/bjreath/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from
@bjreath
bjreath / Informix install info
Created August 18, 2011 17:46
Informix CSDK and ruby-informix install issues
sudo ./installclientsdk
Password:
Preparing to install...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...
Launching installer...
Picked up _JAVA_OPTIONS: -Djava.awt.headless=true
Preparing CONSOLE Mode Installation...
@bjreath
bjreath / bash
Created May 11, 2011 20:51
RVM Install Issues
~$ sudo bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)
Initialized empty Git repository in /usr/local/rvm/src/rvm/.git/
remote: Counting objects: 4716, done.
remote: Compressing objects: 100% (2390/2390), done.
remote: Total 4716 (delta 3053), reused 3184 (delta 1672)
Receiving objects: 100% (4716/4716), 1.56 MiB | 1.88 MiB/s, done.
Resolving deltas: 100% (3053/3053), done.
WARNING: Could not source script '/usr/local/rvm/scripts/base', file does not exist. RVM will likely not work as expected.
WARNING: Could not source script '/usr/local/rvm/scripts/version', file does not exist. RVM will likely not work as expected.
WARNING: Could not source script '/usr/local/rvm/scripts/selector', file does not exist. RVM will likely not work as expected.
@bjreath
bjreath / todos.handlebars
Created May 11, 2011 01:43
SproutCore - Getting Started
<h1>Todos</h1>
{{#view Todos.CreateTodoView}}
<input id="new-todo" type="text" placeholder="What needs to be done?" />
{{/view}}
{{#collection SC.TemplateCollectionView contentBinding="Todos.todoListController"}}
{{content.title}}
{{/collection}}
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
# install the Node package manager for later use
@bjreath
bjreath / rails3.rb
Created August 24, 2010 04:43
Rails 3 Application Template
["controls.js", "dragdrop.js", "effects.js", "prototype.js"].each do |file|
run "rm public/javascripts/#{file}"
end
@bjreath
bjreath / rails.rb
Created June 30, 2009 23:34
Rails template including AuthLogic, will_paginate, RSpec, Cucumber, Factory_Girl, jQuery, etc.
# File permissions
run "chmod 755 ."
%w(public log tmp).each do |dir|
run "chmod -R 755 #{dir}"
end
# Remove unnecessary files
%w(README public/index.html public/favicon.ico public/robots.txt).each do |file|
run "rm #{file}"