Skip to content

Instantly share code, notes, and snippets.

View huafu's full-sized avatar
🏠
Writing code poems from home

Huafu Gandon huafu

🏠
Writing code poems from home
View GitHub Profile
@huafu
huafu / .syslog-ng.md
Created February 26, 2022 08:59 — forked from arvati/.syslog-ng.md
Publish openwrt log contents to MQTT

Router logging to MQTT

This configuration sends all (or part of) your OpenWRT logs to a MQTT broker. I'm writing it up here for future reference.

I made this so I can keep track of wireless clients as they associate and disassociate with my home network. This way, my home automation setup can make decisions based on that information. :)

Installation

@huafu
huafu / README.md
Created February 26, 2022 08:59 — forked from mbernson/README.md
Publish openwrt log contents to MQTT

Router logging to MQTT

This configuration sends all (or part of) your OpenWRT logs to a MQTT broker. I'm writing it up here for future reference.

I made this so I can keep track of wireless clients as they associate and disassociate with my home network. This way, my home automation setup can make decisions based on that information. :)

Installation

@huafu
huafu / application.js
Last active December 23, 2015 02:19 — forked from anonymous/gist:6565738
EmBlog = Ember.Application.create({
LOG_TRANSITIONS: true
});
EmBlog.Comment = DS.Model.extend({
body: DS.attr('string'),
post: DS.belongsTo('post')
});