Skip to content

Instantly share code, notes, and snippets.

View jbraeuer's full-sized avatar

Jens Braeuer jbraeuer

View GitHub Profile
### Keybase proof
I hereby claim:
* I am jbraeuer on github.
* I am jbraeuer (https://keybase.io/jbraeuer) on keybase.
* I have a public key whose fingerprint is 0E1F 4502 1895 CBC0 2A27 0D41 738E F790 E641 B931
To claim this, I am signing this object:
import javax.net.ssl.SSLSocket;
import javax.net.ssl.SSLSocketFactory;
import java.io.*;
/** Establish a SSL connection to a host and port, writes a byte and
* prints the response. See
* http://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services
*/
public class SSLPoke {
public static void main(String[] args) {
{"@source":"lumberjack://precise-amd64//var/log/syslog","@tags":["_grokparsefailure"],"@fields":{"syslog_severity_code":5,"syslog_facility_code":1,"syslog_facility":"user-level","syslog_severity":"notice"},"@timestamp":"2013-03-13T13:01:01.499Z","@source_host":"precise-amd64","@source_path":"//var/log/syslog","@message":"2013-03-13T10:45:38+00:00 localhost vagrant: fjsajaaksp..ld..ls","@type":"syslog"}HTTP/1.1 400 Bad Request
Content-Type: text/plain; charset=UTF-8
Content-Length: 71
No handler found for uri [/logstash-2013.03.13/syslog] and method [GET]POST /logstash-2013.03.13/syslog HTTP/1.1
host: localhost
connection: keep-alive
content-length: 403
{"@source":"lumberjack://precise-amd64//var/log/syslog","@tags":["_grokparsefailure"],"@fields":{"syslog_severity_code":5,"syslog_facility_code":1,"syslog_facility":"user-level","syslog_severity":"notice"},"@timestamp":"2013-03-13T13:01:01.499Z","@source_host":"precise-amd64","@source_path":"//var/log/syslog","@message":"2013-03-13T10:45:38+00:00 localhost va
@jbraeuer
jbraeuer / .gitignore
Last active December 13, 2015 17:18 — forked from karmi/.gitignore
Elasticsearch/Ruby/Tire Helloworld: Lets index your GMail inbox. See http://ephemera.karmi.cz/post/5510326335/gmail-elasticsearch-ruby
.DS_Store
*.log
Gemfile.lock
@jbraeuer
jbraeuer / package-graphite.sh
Created February 1, 2012 08:43
Install graphite 0.9.9 on Ubuntu 11.10 using PACKAGES
#! /bin/bash
#
# This script needs "fpm". If you dont have it,
# run "gem install fpm"
#
# You also need to "apt-get install python-setuptools" (otherwise fpm fails)
clean() {
rm -rf whisper-0.9.9 carbon-0.9.9 graphite-web-0.9.9
@jbraeuer
jbraeuer / check_aws_status.rb
Created January 25, 2012 08:24
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
#