Skip to content

Instantly share code, notes, and snippets.

class X
schedule_url = 'http://example.com/2015.json'
constructor: (@robot) ->
@schedule = @populate_schedule()
console.log @schedule
populate_schedule: ->
@robot.http(schedule_url).get() (err, res, body) ->
if err
{
"template_dv": {
"template": "*",
"mappings": {
"_default_": {
"dynamic_templates": [
{
"string_fields": {
"match": "*",
"match_mapping_type": "string",
{
"logstash-2015.08.09" : {
"aliases" : { },
"mappings" : {
"logstash" : {
"dynamic_templates" : [ {
"string_fields" : {
"mapping" : {
"index" : "analyzed",
{:timestamp=>"2015-08-09T22:30:12.180000-0400", :message=>"failed action with response of 400, dropping action: [\"index\", {:_id=>nil, :_index=>\"logstash-2015.08.10\", :_type=>\"logs\", :_routing=>nil}, #<LogStash::Event:0x36f3d97e @metadata_accessors=#<LogStash::Util::Accessors:0x678b2695 @store={\"retry_count\"=>0}, @lut={}>, @cancelled=false, @data={\"host\"=>\"min-1\", \"@timestamp\"=>\"2015-08-10T02:29:58.434Z\", \"type_instance\"=>\"cached\", \"plugin\"=>\"memory\", \"collectd_type\"=>\"memory\", \"value\"=>4750159872.0, \"@version\"=>\"1\"}, @metadata={\"retry_count\"=>0}, @accessors=#<LogStash::Util::Accessors:0x3433c231 @store={\"host\"=>\"min-1\", \"@timestamp\"=>\"2015-08-10T02:29:58.434Z\", \"type_instance\"=>\"cached\", \"plugin\"=>\"memory\", \"collectd_type\"=>\"memory\", \"value\"=>4750159872.0, \"@version\"=>\"1\"}, @lut={\"host\"=>[{\"host\"=>\"min-1\", \"@timestamp\"=>\"2015-08-10T02:29:58.434Z\", \"type_instance\"=>\"cached\", \"plugin\"=>\"memory\", \"collectd_type\"=>\"memory\", \"val
{
"order" : 0,
"template" : "logstash-*",
"settings" : {
"index.refresh_interval" : "10s"
},
"mappings" : {
"_default_" : {
"dynamic_templates" : [ {
"string_fields" : {
{
"cluster_name" : "kosmo",
"nodes" : {
"4ye4HbzdQMGX31B45vh8PA" : {
"timestamp" : 1439908996346,
"name" : "elastic-data",
"transport_address" : "inet[/10.120.0.127:9300]",
"host" : "localhost",
"ip" : [ "inet[/10.120.0.127:9300]", "NONE" ],
id host ip node total buildNum tx shortterm rx host.raw _type used type tags @timestamp plugin host free value
_7I-ExuQRYueR4ZZNX37kQ localhost 127.0.0.1 elastic-moredata 3.7gb 0b 0b 244.5mb 53.7mb 30.1kb 0b 0b 0b 0b 1.2gb 0b localhost 122.3mb 2gb
1X-cuvM-QSui7qKoq3IKmA 0b 127.0.0.1 elastic-kibana 3.1gb 0b 0b 593.7mb 0b 35.6kb 0b 0b 0b 0b 1.3gb 0b 0b 34.3mb 1.1gb
JRNDtNelTTyw0feYTaVhWw localhost 127.0.0.1 elastic-dataplease 3.2gb 0b 0b 453.2mb 0b 36.2kb 0b 0b 0b 0b 1.3gb 0b localhost 69mb 1.3gb
i0aDuLkoQTaz6O2MzSpkmg 0b 127.0.0.1 elastic-logstash 3.4gb 368b 0b 298.8mb 6.1mb 32.1kb 0b 0b 0b 0b 1.2gb 0b 0b 124.5mb 1.7gb
4ye4HbzdQMGX31B45vh8PA localhost 127.0.0.1 elastic-data 3.3gb 0b 0b 103.4mb 0b 38.3kb 0b 0b 0b 0b 1.3gb 0b localhost 212.6mb 1.7gb
{
"order" : 0,
"template" : "logstash-*",
"settings" : {
"index.refresh_interval" : "10s"
},
"mappings" : {
"_default_" : {
"dynamic_templates" : [ {
"string_fields" : {
@rexroof
rexroof / vpnc-script
Last active June 30, 2019 21:33 — forked from dzderic/vpnc-script
A custom OpenConnect script to set DNS using `networksetup` on OSX, which makes it work with things that don't read from `/etc/resolv.conf`. Only change by Rex was to move the provided DNS servers to be first in the search path.
#!/bin/sh
#
# Originally part of vpnc source code:
# © 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al.
# © 2009-2012 David Woodhouse <dwmw2@infradead.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

Keybase proof

I hereby claim:

  • I am rexroof on github.
  • I am rexroof (https://keybase.io/rexroof) on keybase.
  • I have a public key ASBwB2lYzauyaWt4B4CSL78URh9ZCNazMrd93ha4ahfKkgo

To claim this, I am signing this object: