By Noah Zoschke
https://github.com/nzoschke/gistdeck
Turn a gist into a presentation
| package main | |
| import ( | |
| "fmt" | |
| "syscall" | |
| //~ "time" | |
| "unsafe" | |
| "golang.org/x/sys/windows" | |
| ) |
| # Example packet: | |
| % echo -n '<123>Aug 4 07:54:35 foo bar: { "hello": "world" }' | nc -vu 127.0.0.1 9514 | |
| % bin/logstash --version | |
| logstash 5.0.0-alpha4 | |
| % bin/logstash -f logstash-config-broken.conf | |
| Pipeline main started | |
| { |
| curl http://tachyon.vektra.io/install.sh > it.sh && test $(openssl sha1 < it.sh) = "23fb0450b152dfaa8331dd37c3a4c13d4de9dbb8" && bash it.sh |
| require 'logstash-output-elasticsearch-ec2_jars.rb' | |
| module LogStash::Outputs::ElasticSearch::Ec2 | |
| def self.included(base) | |
| base.extend(self) | |
| base.register | |
| end | |
| def register |
| #!/bin/bash | |
| #curl -XPUT 'http://logmon.myworkplace.local:9200/_template/template_logstash/' -d ' | |
| curl -XPUT 'http://localhost:9200/_template/template_logstash/' -d ' | |
| { | |
| "template": "logstash-*", | |
| "settings": { | |
| "index": { | |
| "query": { |
By Noah Zoschke
https://github.com/nzoschke/gistdeck
Turn a gist into a presentation
| nightfall(~/projects/homebrew) % uname -a | |
| Linux nightfall 2.6.35-28-generic #49-Ubuntu SMP Tue Mar 1 14:39:03 UTC 2011 x86_64 GNU/Linux | |
| nightfall(~/projects/homebrew) % bin/brew install wget | |
| Warning: Xcode is not installed! Builds may fail! | |
| ==> Downloading http://ftp.gnu.org/gnu/wget/wget-1.12.tar.bz2 | |
| File already downloaded and cached to /home/jls/Library/Caches/Homebrew | |
| ==> Downloading patches | |
| ######################################################################## 100.0% | |
| ==> Patching |
| #!/usr/bin/ruby | |
| # | |
| # This script installs to /usr/local only. To install elsewhere you can just | |
| # untar https://github.com/mxcl/homebrew/tarball/master anywhere you like. | |
| # | |
| # | |
| # 30th March 2010: | |
| # Added a check to make sure user is in the staff group. This was a problem | |
| # for me, and I think it was due to me migrating my account over several | |
| # versions of OS X. I cannot verify that for sure, and it was tested on |