Skip to content

Instantly share code, notes, and snippets.

@elliotf
elliotf / How-To.md
Last active August 27, 2022 22:07 — forked from ionspin/How-To.md
How to make an up-to-date OpenWRT image for loading onto a Raspberry Pi Compute Module 4 with a DFRobot Router Carrier Board.

The background is that the default OpenWRT image for Raspberry Pi lacks drivers for the LAN port (RTL8111) on the DFRobot board. DFRobot provide an image, but that one is made from a quite old daily snapshot of OpenWRT which is not entirely stable. Also, it is better to know how to fish than be given a fish.

DFRobot's page about the router board:
https://wiki.dfrobot.com/Compute_Module_4_IoT_Router_Board_Mini_SKU_DFR0767

OpenWRT main page:
https://openwrt.org/

You are expected to have some general knowledge on Linux and OpenWRT. The instructions for flashing the resulting firmware image are presented on DFRobot's page.

@elliotf
elliotf / package.json
Last active December 16, 2015 08:19 — forked from warnero/gist:5404395
var dbURI = 'mongodb://localhost/noClear-example'
, mongoose = require('mongoose')
, clearDB = require('mocha-mongoose')(dbURI, { noClear: true })
, expect = require('chai').expect
;
var User = mongoose.model('User', new mongoose.Schema({
name: {type: String },
email: {type: String },
username: {type: String }
var mongoose = require('mongoose')
, Schema = mongoose.Schema
mongoose.connect('mongodb://localhost/identities');
var IdentitySchema = new Schema({
type : { type: String, enum: ['twitter', 'facebook', 'google'] }
, uid : { type: String }
})