Skip to content

Instantly share code, notes, and snippets.

View ronindesign's full-sized avatar

Tim Turner ronindesign

  • Ronin Design
  • Seattle, WA
View GitHub Profile
object User "pagerduty" {
pager = "SERVICE_KEY_HERE"
groups = [ "icingaadmins" ]
display_name = "PagerDuty Notification User"
states = [ OK, Warning, Critical, Unknown ]
types = [ Problem, Recovery ]
}
object NotificationCommand "notify-service-by-pagerduty" {
import "plugin-notification-command"
vmap ]i <Esc>l[bv]w
omap ]i :normal v]i<CR>
class Test
{
private $obj;
const MAP = ['testKey' => 'test'];
function __construct() {
$this->obj = new \stdClass();
$this->obj->test = "testObject";
}
Cool Idea:
* MySAM Stats (stats)
- FitBit / Pedometor / HR Monitor Sync with MySAM. Compare / compete with friends based on steps per (game / season), avg steps / heartrate per game, highest overall steps in a single game for a season (top steps)
- Allows additional stats-based, competative metrics
- Social engagement: points for sharing / promoting your team (this in turn promotes the facility / company, and of course, DASH)
* DASH Events (pub-sub)
- Implement (even a basic) Event System
- Allows different parts of DASH to passively integrate (i.e. without direct call / forcing, non-blocking)
- Modules that are expected to react can all do so by subscribing to an event type and triggering when such an event is broadcasted, especially when considering it can be done asynchronously and with multithreading (e.g., http://reactphp.org/)