This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# CONFIG | |
SNMP_COMMUNITY=public | |
SYSCONTACT=dan | |
SYSLOCATION=Berlin | |
# get packages | |
apt-get install snmpd xinetd vim | |
mkdir -p /opt/observium && cd /opt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* The API controller | |
Exports 3 methods: | |
* post - Creates a new thread | |
* list - Returns a list of threads | |
* show - Displays a thread and its posts | |
*/ | |
var Thread = require('../models/thread.js'); | |
var Post = require('../models/post.js'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Adaptation by Marco Arment <[email protected]>. | |
Adapted from Portable PHP Password Hashing Framework (phpass) version 0.3: | |
http://www.openwall.com/phpass/ | |
phpass was by Solar Designer <solar at openwall.com> in 2004-2006 and is in | |
the public domain. This adaptation is also in the public domain. |