Skip to content

Instantly share code, notes, and snippets.

@jloper3
jloper3 / check_aws_status.rb
Created October 20, 2015 18:58 — forked from jbraeuer/check_aws_status.rb
A Nagios/Icinga plugin to check AWS Service Health Dashboard (using Ruby+Nokogiri)
#! /usr/bin/ruby
#
# A script to check Amazon Webservice's Health Status Dashboard
#
# Jens Braeuer, github.com/jbraeuer
#
# Version 1.0
#
var https = require('https');
// https://www.yammer.com/api/v1/messages.json
var options = {
host: 'www.yammer.com',
path: '/api/v1/messages.json?access_token=YOUR-OAUTH2-TOKEN',
headers: { "Authorization": "Bearer YOUR-OAUTH2-TOKEN" }
}
var globalRequestId = 1;
@jloper3
jloper3 / controllers.js
Created August 28, 2013 13:50
AngularJS / AngularUI popover with templateURL. Uses the dialog service to style and position a dialog with bootstrap's popover css.
app.controller('AppCtrl', ['$scope', '$dialog', function ($scope, $dialog) {
$scope.popover = function($event) {
var opts = {
backdrop: true,
// Style as a popover, bottom position
// additional show class to override popover class display:none
dialogClass: 'popover bottom show'
templateUrl: 'partials/popover.html',
controller: 'PopCtrl',
// Resolve the click event coordinates
// A simple Tweet POJO:
// $> javac TweetEvent.java
public class TweetEvent {
private String user;
private String text;
private String timezone;
private int retweets;
public TweetEvent(String user, String text, String timezone, int retweets) {