Skip to content

Instantly share code, notes, and snippets.

View dsibilly's full-sized avatar

Duane Sibilly dsibilly

View GitHub Profile
@dsibilly
dsibilly / observium_agent_setup.sh
Created February 15, 2022 07:09 — forked from d-a-n/observium_agent_setup.sh
Observium Agent Setup Guide
# CONFIG
SNMP_COMMUNITY=public
SYSCONTACT=dan
SYSLOCATION=Berlin
# get packages
apt-get install snmpd xinetd vim
mkdir -p /opt/observium && cd /opt
@dsibilly
dsibilly / api.js
Created June 30, 2012 04:25 — forked from fwielstra/api.js
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* 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');
@dsibilly
dsibilly / Bcrypt.php
Created June 29, 2011 17:01
Simple PHP 5.3+ Bcrypt class adapted from phpass
<?php
/*
Adaptation by Marco Arment <me@marco.org>.
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.