Skip to content

Instantly share code, notes, and snippets.

joeyhacker / network
Created Jul 27, 2014
Openwrt network config
View network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr ''
option netmask ''
config globals 'globals'
option ula_prefix 'fd65:e21a:0de7::/48'
config interface 'lan'

The problem

While I was configuring Ruby on Rails in a Red Hat (CentOS) with RVM I found a problem with the library libffi-devel because the package wasn't available via yum install, after search for a couple of days I found this solution.

Add rpmforge as a repository

  1. Create a repo file in /etc/yum.repos.d/rpmforge.repo, you need to be an admin

  2. Copy the follow text.

#Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag

View DaoTest.js
var dao = require('../dao');
/*dao.getSnippet('517f52b5a387f28417000001', function(doc){
title: 'Test2',
content: 'System.out.println("Hello world !")',