Yeah, this is super! Woohoo!
{ "a":1 }
# Description: | |
# Control marathon via hubot | |
# | |
# Configuration: | |
# HUBOT_MARATHON_HOST=marathon.yourcompany.com:8080 | |
# | |
# Commands: | |
# hubot marathon - show the instances of all apps | |
# hubot marathon <id> - show the number of instances for app <id> | |
# hubot scale <id> <number> - scale app ID to <number> instances |
package main | |
import ( | |
"fmt" | |
"io" | |
"log" | |
"os" | |
"sort" | |
"sync" | |
"time" |
package rpc | |
import ( | |
"context" | |
"log" | |
"net" | |
"net/http" | |
"golang.org/x/sync/errgroup" |
module Tree exposing (..) | |
import Html exposing (text) | |
import Json.Decode exposing (..) | |
import Json.Decode.Extra exposing (lazy) | |
type BST | |
= Branch BST Int BST | |
| Leaf |
// ensure that all of a resources dependencies have already run successfully | |
func checkDeps(graph *Graph, id string, results []*ApplyResult) (failed []string) { | |
for _, dep := range graph.Depends(id) { // not a huge fan of that name but it's consistent. | |
for _, result := range results { | |
if result.Path == dep && !result.Success { | |
failed = append(failed, result.Path) | |
} | |
} | |
} | |
"wソ\xdc<<070005000\n" | |
"ソ\xdc<<7005000\n" | |
"f\x94<<ȅ00ȅ\n" | |
"w\xbfソ\xdc<<0000\n" | |
"ソ\xdc<<7000\n" | |
"w\xbfソ\xdc<<7000000\n" | |
"w\xbfソ\xdc<<070000\n" | |
"wソ\xdc<<0700000\n" | |
"wソ\xdc<<000000\n" | |
"w\xbfソ\xdc<<20000000\n" |
"t\"\\40005\"{}" | |
"t\"\\400n\"{}" | |
"v=\"\\5551115123125782" + | |
"702118158\x1f4045410150" + | |
"000\"" | |
"t\"\\400200\"{}" | |
"\"\\5010\"{}" | |
"t\"\\4000\"{}" | |
"\"\\405\"{}" | |
"\"\\4005\"{}" |
"\0 |
# collectd | |
FQDNLookup false | |
Interval 10 | |
Include "/etc/collectd.d/" | |
TypesDB "/usr/share/collectd/types.db" | |
LoadPlugin "cpu" | |
LoadPlugin "disk" | |
LoadPlugin "df" |