Skip to content

Instantly share code, notes, and snippets.

View hugespoon's full-sized avatar

Joseph Martin hugespoon

View GitHub Profile

Keybase proof

I hereby claim:

  • I am hugespoon on github.
  • I am hugespoon (https://keybase.io/hugespoon) on keybase.
  • I have a public key whose fingerprint is 787C 6CFF 06D6 E23A EAB1 97AE 082F E60F F9AF 75CE

To claim this, I am signing this object:

INFO[0000] Creating SSH key...
INFO[0005] Getting Host IP
INFO[0024] Waiting for host to become available
debconf: unable to initialize frontend: Dialog
debconf: (Dialog frontend will not work on a dumb terminal, an emacs shell buffer, or without a controlling terminal.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
@hugespoon
hugespoon / gist:81c24b1ce99aa7a65381
Created March 9, 2015 21:17
docker-machine -D create -d softlayer.... output
DEBU[0355] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 22 -i /Users/hugespoon/.docker/machine/machines/docker-test/id_rsa root@158.85.86.14 [ -f "$(which docker)" ] && [ -f "/etc/default/docker" ] || exit 1
DEBU[0356] executing: ssh -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -p 22 -i /Users/hugespoon/.docker/machine/machines/docker-test/id_rsa root@158.85.86.14 if [ ! -e /usr/bin/docker ]; then curl -sSL https://get.docker.com | sh -; fi
input {
file {
type => "syslog"
path => [ "/your/paths/here", "/more/paths" ]
sincedb_path => "/sincedbpath"
}
}
@hugespoon
hugespoon / file_gz.rb
Created January 20, 2015 20:27
Gzip file input plugin, hacky/dirty/etc but seemingly works alright....
def run(queue)
require 'zlib'
@tail = FileWatch::Tail.new(@tail_config)
@tail.logger = @logger
@path.each { |path| @tail.tail(path) }
hostname = Socket.gethostname
@tail.subscribe do |path|
@logger.debug? && @logger.debug("Received path", :path => path)
File.open(path) do |f|
require 'fog'
require 'fog/softlayer'
compute = Fog::Compute[:softlayer]
kp = compute.key_pairs.by_label('mysshkey')
puts kp.inspect
$ cat /home/core/heapster/hosts
{"port":4194,"hosts":{"0c5f3515fd274f86a593db05da973e97":"198.23.91.40","1ed3152ad45340f5989c496f4335050a":"198.23.91.39","20deb1d55a0f4bec85755db74e2a4083":"198.23.91.37","391d640241ef45298cef19c479206426":"198.23.91.38","4c347bf3d67a49f7bbcccab1ff10aae8":"198.23.91.41"}}
I1216 21:01:32.043090 00006 heapster.go:18] /usr/bin/heapster --sink influxdb --sink_influxdb_host 198.23.91.39:8086
I1216 21:01:32.043335 00006 heapster.go:19] Heapster version 0.4
I1216 21:01:33.045738 00006 influxdb.go:180] Database creation failed - Server returned (409): database k8s exists
input {
file {
codec => plain { format => "UTF-8" }
path => ["/home/jsmartin/projects/proxy.log"]
type => "proxy-log"
start_position => "beginning"
}
}
filter {
@hugespoon
hugespoon / gist:13ba259c30d2152db64c
Created October 12, 2014 15:30
neutron/server.log
RROR neutron.agent.linux.ovsdb_monitor [-] Error received from ovsdb monitor: 2014-10-12T15:25:34Z|00001|fatal_signal|WARN|terminating with signal 15 (Terminated)
2014-10-12 10:25:35.448 7926 CRITICAL neutron [-] Trying to re-send() an already-triggered event.
2014-10-12 10:25:37.635 14740 WARNING neutron.agent.securitygroups_rpc [req-5f1339a3-b89f-4b9b-b2a3-dd798cfad0cb None] Driver configuration doesn't match with enable_security_group
2014-10-12 10:25:38.351 14740 WARNING neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Device 6cee4990-8cdb-42c4-839a-d151b178ac58 not defined on plugin
2014-10-12 10:25:38.455 14740 WARNING neutron.plugins.openvswitch.agent.ovs_neutron_agent [-] Device 6094ff5f-38f0-41fd-b127-606a2747a858 not defined on plugin